Set whisper thread count based on the model

This commit is contained in:
2023-06-05 14:18:44 -04:00
parent ce1599466e
commit e979d1094c
2 changed files with 9 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ output_name_without_ext="$2"
model="$3"
threads=$4
# 4 seems to be the sweet spot.
# 4 seems to be the sweet spot for most models, except medium might be faster with 8.
default_thread_count=4
if [[ $input_wav == "" || $output_name_without_ext == "" || $model == "" ]]; then