| 312 | << " samples=" << output.audio.samples.size() |
| 313 | << "\n"; |
| 314 | } |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | if (!result.speech_segments.empty()) { |
| 319 | const auto json = speech_segments_to_json(result.speech_segments); |
| 320 | if (segments_out.has_value()) { |
| 321 | if (!segments_out->parent_path().empty()) { |
| 322 | std::filesystem::create_directories(segments_out->parent_path()); |
| 323 | } |
| 324 | std::ofstream(*segments_out) << json; |
nothing calls this directly
no test coverage detected