Skip to content

Commit bb9309f

Browse files
sangmin7648claude
andcommitted
Fix STT language detection by switching from hardcoded Korean to auto-detect
Whisper was forced to 'ko' which caused English speech to be transcribed (translated) into Korean. Setting language to 'auto' lets Whisper detect the spoken language correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 37d22b0 commit bb9309f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/stt/whisper.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ func (w *Whisper) Transcribe(ctx context.Context, samples []float32, initialProm
5454
params := C.whisper_full_default_params(C.WHISPER_SAMPLING_BEAM_SEARCH)
5555
params.beam_search.beam_size = 5
5656

57-
// Set language to Korean
58-
lang := C.CString("ko")
57+
lang := C.CString("auto")
5958
defer C.free(unsafe.Pointer(lang))
6059
params.language = lang
6160
params.translate = C.bool(false)

0 commit comments

Comments
 (0)