| 488 | throw std::runtime_error("Seed-VC BigVGAN fixed chunk synthesis received invalid dimensions"); |
| 489 | } |
| 490 | const int64_t graph_frames = active_frames + 2 * overlap_frames; |
| 491 | if (graph_frames < active_frames) { |
| 492 | throw std::runtime_error("Seed-VC BigVGAN fixed chunk graph size is invalid"); |
| 493 | } |
| 494 | |
| 495 | std::vector<float> waveform; |
| 496 | waveform.reserve(static_cast<size_t>(frames * hop_size)); |
| 497 | std::vector<float> chunk_mel(static_cast<size_t>(channels * graph_frames), 0.0F); |
| 498 | for (int64_t position = 0; position < frames; position += active_frames) { |
no test coverage detected