Skip to content

Commit

Permalink
chore: Update VAD parameters for better segmentation accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Aug 23, 2024
1 parent dcf368d commit a93cb6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/transcription-filter-properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ void add_buffered_output_group_properties(obs_properties_t *ppts)
obs_property_t *property,
obs_data_t *settings) {
UNUSED_PARAMETER(property);
UNUSED_PARAMETER(props);
const int segmentation_type = obs_data_get_int(settings, "buffer_output_type");
// set default values for the number of lines and characters per line
switch (segmentation_type) {
Expand Down
2 changes: 1 addition & 1 deletion src/whisper-utils/vad-processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,6 @@ void initialize_vad(transcription_filter_data *gf, const char *silero_vad_model_
#endif
// roughly following https://github.com/SYSTRAN/faster-whisper/blob/master/faster_whisper/vad.py
// for silero vad parameters
gf->vad.reset(new VadIterator(silero_vad_model_path, WHISPER_SAMPLE_RATE, 32, 0.5f, 200,
gf->vad.reset(new VadIterator(silero_vad_model_path, WHISPER_SAMPLE_RATE, 32, 0.5f, 100,
100, 100));
}

0 comments on commit a93cb6a

Please sign in to comment.