| 627 | out.audio = minitts::cli::read_audio_buffer(*preset.voice_ref); |
| 628 | } |
| 629 | return out; |
| 630 | } |
| 631 | |
| 632 | void ServerState::load_voice_presets(LoadedModel & model) const { |
| 633 | for (const auto & [name, preset] : model.config.voice_presets) { |
| 634 | auto [it, inserted] = model.voice_presets.emplace(name, load_runtime_voice_preset(preset)); |
| 635 | if (!inserted) { |
| 636 | throw std::runtime_error("duplicate runtime voice preset for model " + model.config.id + ": " + name); |
| 637 | } |
nothing calls this directly
no test coverage detected