| 807 | }, |
| 808 | "keep span outside source"); |
| 809 | } |
| 810 | |
| 811 | } // namespace |
| 812 | |
| 813 | int main() { |
| 814 | try { |
| 815 | test_fixed_chunks_plan_start_aligned_tail(); |
| 816 | test_fixed_chunks_plan_overlapping_windows(); |
| 817 | test_fixed_chunks_plan_centered_tail_and_copy_zero_pad(); |
| 818 | test_copy_planar_chunk_reflect_padding(); |
| 819 | test_overlap_add_and_normalize_shared_counter(); |
| 820 | test_fixed_chunks_validate_inputs(); |
| 821 | test_vad_chunks_sort_pad_and_merge(); |
| 822 | test_vad_chunks_clamp_padding_to_audio_bounds(); |
| 823 | test_vad_chunks_respect_max_when_merging(); |
| 824 | test_vad_chunks_merge_gap_boundary(); |
| 825 | test_vad_chunks_split_long_speech(); |
| 826 | test_vad_chunks_do_not_overlap_when_max_blocks_merge(); |
| 827 | test_vad_chunks_nested_segments_keep_full_coverage(); |
| 828 | test_vad_chunks_padding_overlap_merges_without_duplicate_coverage(); |
| 829 | test_vad_chunks_keep_large_silence_gap_outside_chunks(); |
| 830 | test_vad_chunks_close_run_split_at_max_without_losing_speech(); |
| 831 | test_vad_chunks_stress_mixed_unsorted_segments(); |
| 832 | test_vad_chunks_validate_inputs(); |
| 833 | test_vad_session_planner_runs_vad_internally(); |
| 834 | test_audio_chunk_mode_parser(); |
| 835 | test_slice_audio_buffer_preserves_channels(); |
| 836 | test_slice_audio_buffer_validate_inputs(); |
| 837 | test_chunk_word_timestamp_merge_offsets_and_clips(); |
| 838 | test_chunk_word_timestamp_merge_appends_multiple_chunks(); |
| 839 | test_chunk_word_timestamp_merge_keeps_non_overlapping_source_span(); |
| 840 | test_chunk_word_timestamp_merge_rejects_invalid_spans(); |
| 841 | std::cout << "audio_chunking_test passed\n"; |
| 842 | } catch (const std::exception & ex) { |
| 843 | std::cerr << "audio_chunking_test failed: " << ex.what() << "\n"; |
| 844 | return 1; |
| 845 | } |
| 846 | return 0; |
nothing calls this directly
no test coverage detected