Skip to content

Commit

Permalink
Merge pull request #128 from toverainc/rk/settings-doc-tweaks
Browse files Browse the repository at this point in the history
Updated comments in settings.py to make a few of them clearer.
  • Loading branch information
kristiankielhofner committed Oct 24, 2023
2 parents cb554bd + 554b0b8 commit 75e6c04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ class APISettings(BaseSettings):
description: str = "High Performance Language Inference API"
version: str = "1.0"

# Note: More beams is more accurate but slower.
# default beam_size - 5 is lib default, 1 for greedy
beam_size: int = 1
# default beam size for longer transcriptions
long_beam_size: int = 3
# Audio duration in ms to activate "long" mode
# Audio duration in ms to activate "long" mode. Any audio longer than this will use long_beam_size.
long_beam_size_threshold: int = 12000
model_threads: int = 10

Expand Down Expand Up @@ -41,7 +42,7 @@ class APISettings(BaseSettings):
# SV threshold
sv_threshold: float = 0.75

# The default whisper model to use
# The default whisper model to use. Options are "tiny", "base", "small", "medium", "large"
whisper_model_default: str = 'medium'

# Default TTS format to use
Expand Down

0 comments on commit 75e6c04

Please sign in to comment.