| 209 | } |
| 210 | |
| 211 | void append_audio(std::vector<float> & output, const runtime::AudioBuffer & chunk) { |
| 212 | if (chunk.sample_rate != 24000 || chunk.channels != 1) { |
| 213 | throw std::runtime_error("VibeVoice generated chunk has unexpected audio format"); |
| 214 | } |
| 215 | output.insert(output.end(), chunk.samples.begin(), chunk.samples.end()); |
| 216 | } |
| 217 | |
| 218 | } // namespace |
| 219 |
no test coverage detected