-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling longform diarization, skeleton for punct-based alignment
- Loading branch information
Aleks
committed
Mar 31, 2024
1 parent
60e8ca7
commit 4422e79
Showing
8 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/wordcab_transcribe/services/longform_diarization/configs/general.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"name": "ClusterDiarizer", "num_workers": 1, "sample_rate": 16000, "batch_size": 64, "device": null, "verbose": true, "diarizer": {"manifest_filepath": "???", "out_dir": "???", "oracle_vad": false, "collar": 0.25, "ignore_overlap": true, "vad": {"model_path": "vad_multilingual_marblenet", "external_vad_manifest": null, "parameters": {"window_length_in_sec": 0.63, "shift_length_in_sec": 0.08, "smoothing": false, "overlap": 0.5, "onset": 0.5, "offset": 0.3, "pad_onset": 0.2, "pad_offset": 0.2, "min_duration_on": 0.5, "min_duration_off": 0.5, "filter_speech_first": true}}, "speaker_embeddings": {"model_path": "titanet_large", "parameters": {"window_length_in_sec": [1.9, 1.2, 0.5], "shift_length_in_sec": [0.95, 0.6, 0.25], "multiscale_weights": [1, 1, 1], "save_embeddings": true}}, "clustering": {"parameters": {"oracle_num_speakers": false, "max_num_speakers": 8, "enhanced_count_thres": 80, "max_rp_threshold": 0.25, "sparse_search_volume": 10, "maj_vote_spk_count": false, "chunk_cluster_count": 50, "embeddings_per_chunk": 10000}}, "msdd_model": {"model_path": null, "parameters": {"use_speaker_model_from_ckpt": true, "infer_batch_size": 25, "sigmoid_threshold": [0.7], "seq_eval_mode": false, "split_infer": true, "diar_window_length": 50, "overlap_infer_spk_limit": 5}}, "asr": {"model_path": null, "parameters": {"asr_based_vad": false, "asr_based_vad_threshold": 1.0, "asr_batch_size": null, "decoder_delay_in_sec": null, "word_ts_anchor_offset": null, "word_ts_anchor_pos": "start", "fix_word_ts_with_VAD": false, "colored_text": false, "print_time": true, "break_lines": false}, "ctc_decoder_parameters": {"pretrained_language_model": null, "beam_width": 32, "alpha": 0.5, "beta": 2.5}, "realigning_lm_parameters": {"arpa_language_model": null, "min_number_of_words": 3, "max_number_of_words": 10, "logprob_diff_threshold": 1.2}}}} | ||
{"name": "ClusterDiarizer", "num_workers": 1, "sample_rate": 16000, "batch_size": 64, "device": null, "verbose": true, "diarizer": {"manifest_filepath": null, "out_dir": null, "oracle_vad": false, "collar": 0.25, "ignore_overlap": true, "vad": {"model_path": "vad_multilingual_marblenet", "external_vad_manifest": null, "parameters": {"window_length_in_sec": 0.63, "shift_length_in_sec": 0.08, "smoothing": false, "overlap": 0.5, "onset": 0.5, "offset": 0.3, "pad_onset": 0.2, "pad_offset": 0.2, "min_duration_on": 0.5, "min_duration_off": 0.5, "filter_speech_first": true}}, "speaker_embeddings": {"model_path": "titanet_large", "parameters": {"window_length_in_sec": [1.9, 1.2, 0.5], "shift_length_in_sec": [0.95, 0.6, 0.25], "multiscale_weights": [1, 1, 1], "save_embeddings": true}}, "clustering": {"parameters": {"oracle_num_speakers": false, "max_num_speakers": 8, "enhanced_count_thres": 80, "max_rp_threshold": 0.25, "sparse_search_volume": 10, "maj_vote_spk_count": false, "chunk_cluster_count": 50, "embeddings_per_chunk": 10000}}, "msdd_model": {"model_path": null, "parameters": {"use_speaker_model_from_ckpt": true, "infer_batch_size": 25, "sigmoid_threshold": [0.7], "seq_eval_mode": false, "split_infer": true, "diar_window_length": 50, "overlap_infer_spk_limit": 5}}, "asr": {"model_path": null, "parameters": {"asr_based_vad": false, "asr_based_vad_threshold": 1.0, "asr_batch_size": null, "decoder_delay_in_sec": null, "word_ts_anchor_offset": null, "word_ts_anchor_pos": "start", "fix_word_ts_with_VAD": false, "colored_text": false, "print_time": true, "break_lines": false}, "ctc_decoder_parameters": {"pretrained_language_model": null, "beam_width": 32, "alpha": 0.5, "beta": 2.5}, "realigning_lm_parameters": {"arpa_language_model": null, "min_number_of_words": 3, "max_number_of_words": 10, "logprob_diff_threshold": 1.2}}}} |
2 changes: 1 addition & 1 deletion
2
src/wordcab_transcribe/services/longform_diarization/configs/meeting.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"name": "ClusterDiarizer", "num_workers": 1, "sample_rate": 16000, "batch_size": 64, "device": null, "verbose": true, "diarizer": {"manifest_filepath": "???", "out_dir": "???", "oracle_vad": false, "collar": 0.25, "ignore_overlap": true, "vad": {"model_path": "vad_multilingual_marblenet", "external_vad_manifest": null, "parameters": {"window_length_in_sec": 0.63, "shift_length_in_sec": 0.01, "smoothing": false, "overlap": 0.5, "onset": 0.9, "offset": 0.5, "pad_onset": 0, "pad_offset": 0, "min_duration_on": 0, "min_duration_off": 0.6, "filter_speech_first": true}}, "speaker_embeddings": {"model_path": "titanet_large", "parameters": {"window_length_in_sec": [3.0, 2.5, 2.0, 1.5, 1.0, 0.5], "shift_length_in_sec": [1.5, 1.25, 1.0, 0.75, 0.5, 0.25], "multiscale_weights": [1, 1, 1, 1, 1, 1], "save_embeddings": true}}, "clustering": {"parameters": {"oracle_num_speakers": false, "max_num_speakers": 8, "enhanced_count_thres": 80, "max_rp_threshold": 0.25, "sparse_search_volume": 30, "maj_vote_spk_count": false, "chunk_cluster_count": 50, "embeddings_per_chunk": 10000}}, "msdd_model": {"model_path": null, "parameters": {"use_speaker_model_from_ckpt": true, "infer_batch_size": 25, "sigmoid_threshold": [0.7], "seq_eval_mode": false, "split_infer": true, "diar_window_length": 50, "overlap_infer_spk_limit": 5}}, "asr": {"model_path": "stt_en_conformer_ctc_large", "parameters": {"asr_based_vad": false, "asr_based_vad_threshold": 1.0, "asr_batch_size": null, "decoder_delay_in_sec": null, "word_ts_anchor_offset": null, "word_ts_anchor_pos": "start", "fix_word_ts_with_VAD": false, "colored_text": false, "print_time": true, "break_lines": false}, "ctc_decoder_parameters": {"pretrained_language_model": null, "beam_width": 32, "alpha": 0.5, "beta": 2.5}, "realigning_lm_parameters": {"arpa_language_model": null, "min_number_of_words": 3, "max_number_of_words": 10, "logprob_diff_threshold": 1.2}}}} | ||
{"name": "ClusterDiarizer", "num_workers": 1, "sample_rate": 16000, "batch_size": 64, "device": null, "verbose": true, "diarizer": {"manifest_filepath": null, "out_dir": null, "oracle_vad": false, "collar": 0.25, "ignore_overlap": true, "vad": {"model_path": "vad_multilingual_marblenet", "external_vad_manifest": null, "parameters": {"window_length_in_sec": 0.63, "shift_length_in_sec": 0.01, "smoothing": false, "overlap": 0.5, "onset": 0.9, "offset": 0.5, "pad_onset": 0, "pad_offset": 0, "min_duration_on": 0, "min_duration_off": 0.6, "filter_speech_first": true}}, "speaker_embeddings": {"model_path": "titanet_large", "parameters": {"window_length_in_sec": [3.0, 2.5, 2.0, 1.5, 1.0, 0.5], "shift_length_in_sec": [1.5, 1.25, 1.0, 0.75, 0.5, 0.25], "multiscale_weights": [1, 1, 1, 1, 1, 1], "save_embeddings": true}}, "clustering": {"parameters": {"oracle_num_speakers": false, "max_num_speakers": 8, "enhanced_count_thres": 80, "max_rp_threshold": 0.25, "sparse_search_volume": 30, "maj_vote_spk_count": false, "chunk_cluster_count": 50, "embeddings_per_chunk": 10000}}, "msdd_model": {"model_path": null, "parameters": {"use_speaker_model_from_ckpt": true, "infer_batch_size": 25, "sigmoid_threshold": [0.7], "seq_eval_mode": false, "split_infer": true, "diar_window_length": 50, "overlap_infer_spk_limit": 5}}, "asr": {"model_path": "stt_en_conformer_ctc_large", "parameters": {"asr_based_vad": false, "asr_based_vad_threshold": 1.0, "asr_batch_size": null, "decoder_delay_in_sec": null, "word_ts_anchor_offset": null, "word_ts_anchor_pos": "start", "fix_word_ts_with_VAD": false, "colored_text": false, "print_time": true, "break_lines": false}, "ctc_decoder_parameters": {"pretrained_language_model": null, "beam_width": 32, "alpha": 0.5, "beta": 2.5}, "realigning_lm_parameters": {"arpa_language_model": null, "min_number_of_words": 3, "max_number_of_words": 10, "logprob_diff_threshold": 1.2}}}} |
2 changes: 1 addition & 1 deletion
2
src/wordcab_transcribe/services/longform_diarization/configs/telephonic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"name": "ClusterDiarizer", "num_workers": 1, "sample_rate": 16000, "batch_size": 64, "device": null, "verbose": true, "diarizer": {"manifest_filepath": "???", "out_dir": "???", "oracle_vad": false, "collar": 0.25, "ignore_overlap": true, "vad": {"model_path": "vad_multilingual_marblenet", "external_vad_manifest": null, "parameters": {"window_length_in_sec": 0.15, "shift_length_in_sec": 0.01, "smoothing": "median", "overlap": 0.5, "onset": 0.1, "offset": 0.1, "pad_onset": 0.1, "pad_offset": 0, "min_duration_on": 0, "min_duration_off": 0.2, "filter_speech_first": true}}, "speaker_embeddings": {"model_path": "titanet_large", "parameters": {"window_length_in_sec": [1.5, 1.25, 1.0, 0.75, 0.5], "shift_length_in_sec": [0.75, 0.625, 0.5, 0.375, 0.25], "multiscale_weights": [1, 1, 1, 1, 1], "save_embeddings": true}}, "clustering": {"parameters": {"oracle_num_speakers": false, "max_num_speakers": 8, "enhanced_count_thres": 80, "max_rp_threshold": 0.25, "sparse_search_volume": 30, "maj_vote_spk_count": false, "chunk_cluster_count": 50, "embeddings_per_chunk": 10000}}, "msdd_model": {"model_path": "diar_msdd_telephonic", "parameters": {"use_speaker_model_from_ckpt": true, "infer_batch_size": 25, "sigmoid_threshold": [0.7], "seq_eval_mode": false, "split_infer": true, "diar_window_length": 50, "overlap_infer_spk_limit": 5}}, "asr": {"model_path": "stt_en_conformer_ctc_large", "parameters": {"asr_based_vad": false, "asr_based_vad_threshold": 1.0, "asr_batch_size": null, "decoder_delay_in_sec": null, "word_ts_anchor_offset": null, "word_ts_anchor_pos": "start", "fix_word_ts_with_VAD": false, "colored_text": false, "print_time": true, "break_lines": false}, "ctc_decoder_parameters": {"pretrained_language_model": null, "beam_width": 32, "alpha": 0.5, "beta": 2.5}, "realigning_lm_parameters": {"arpa_language_model": null, "min_number_of_words": 3, "max_number_of_words": 10, "logprob_diff_threshold": 1.2}}}} | ||
{"name": "ClusterDiarizer", "num_workers": 1, "sample_rate": 16000, "batch_size": 64, "device": null, "verbose": true, "diarizer": {"manifest_filepath": null, "out_dir": null, "oracle_vad": false, "collar": 0.25, "ignore_overlap": true, "vad": {"model_path": "vad_multilingual_marblenet", "external_vad_manifest": null, "parameters": {"window_length_in_sec": 0.15, "shift_length_in_sec": 0.01, "smoothing": "median", "overlap": 0.5, "onset": 0.1, "offset": 0.1, "pad_onset": 0.1, "pad_offset": 0, "min_duration_on": 0, "min_duration_off": 0.2, "filter_speech_first": true}}, "speaker_embeddings": {"model_path": "titanet_large", "parameters": {"window_length_in_sec": [1.5, 1.25, 1.0, 0.75, 0.5], "shift_length_in_sec": [0.75, 0.625, 0.5, 0.375, 0.25], "multiscale_weights": [1, 1, 1, 1, 1], "save_embeddings": true}}, "clustering": {"parameters": {"oracle_num_speakers": false, "max_num_speakers": 8, "enhanced_count_thres": 80, "max_rp_threshold": 0.25, "sparse_search_volume": 30, "maj_vote_spk_count": false, "chunk_cluster_count": 50, "embeddings_per_chunk": 10000}}, "msdd_model": {"model_path": "diar_msdd_telephonic", "parameters": {"use_speaker_model_from_ckpt": true, "infer_batch_size": 25, "sigmoid_threshold": [0.7], "seq_eval_mode": false, "split_infer": true, "diar_window_length": 50, "overlap_infer_spk_limit": 5}}, "asr": {"model_path": "stt_en_conformer_ctc_large", "parameters": {"asr_based_vad": false, "asr_based_vad_threshold": 1.0, "asr_batch_size": null, "decoder_delay_in_sec": null, "word_ts_anchor_offset": null, "word_ts_anchor_pos": "start", "fix_word_ts_with_VAD": false, "colored_text": false, "print_time": true, "break_lines": false}, "ctc_decoder_parameters": {"pretrained_language_model": null, "beam_width": 32, "alpha": 0.5, "beta": 2.5}, "realigning_lm_parameters": {"arpa_language_model": null, "min_number_of_words": 3, "max_number_of_words": 10, "logprob_diff_threshold": 1.2}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters