| 137 | if (task.mode != runtime::RunMode::Offline) { |
| 138 | throw std::runtime_error("Stable Audio only supports offline sessions"); |
| 139 | } |
| 140 | if (task.task != runtime::VoiceTaskKind::AudioGeneration) { |
| 141 | throw std::runtime_error("Stable Audio supports only the gen task"); |
| 142 | } |
| 143 | return std::make_unique<StableAudioSession>(task, options, assets_); |
| 144 | } |
nothing calls this directly
no test coverage detected