feat(stt): beam-search decoding + no prev-text conditioning for accuracy
Whisper was decoding with beam_size=1 (greedy), the least accurate setting, which hurt recognition on short/accented/noisy Discord-mic speech. Switch the default to beam search (5, Whisper's own default) and stop conditioning on the previous clip's transcript (which causes repetition/drift on isolated short utterances rather than helping). Both are env-tunable (STT_BEAM_SIZE, STT_CONDITION_ON_PREV) so accuracy/latency can be traded without a code change; wired into docker-compose and documented in .env.example.
This commit is contained in:
@@ -97,6 +97,9 @@ services:
|
||||
PLANNER_ENABLED: ${PLANNER_ENABLED:-0}
|
||||
# Lock STT to Korean (skip Whisper auto-detect).
|
||||
STT_LANGUAGE: ${STT_LANGUAGE:-ko}
|
||||
# Whisper decode accuracy: beam search (5) over greedy (1) lifts recognition
|
||||
# on short/noisy Discord speech. Lower to 1 for minimum latency.
|
||||
STT_BEAM_SIZE: ${STT_BEAM_SIZE:-5}
|
||||
VOICE_SILENCE_MS: ${VOICE_SILENCE_MS:-600}
|
||||
BRIDGE_URL: http://127.0.0.1:8765
|
||||
# Split-deployment role: full (default, all-in-one), browser (only the
|
||||
|
||||
Reference in New Issue
Block a user