KoljaB / AIVoiceChat

Low latency ai companion voice talk in 60 lines of code using faster_whisper and elevenlabs input streaming
238 stars 46 forks source link

Setting up Whisper for language other than English? #8

Open ackoi opened 9 months ago

ackoi commented 9 months ago

Couldn't quite find how to do this, the transcription always ends up in English. Any tips? Thanks!

KoljaB commented 9 months ago

In this line switch language parameter from transcribe method to your language shortcut.

I'd recommend using this tool

Edit: just saw you also need to switch the detection model. So in line 11 change from tiny.en to base, medium or large-v2