Repository navigation
|
So, I tried providing a mixed dialect output to Whisper-base (mix of English and Hindi) and as expected it performed poorly. Does whisper really tag language based on first 30s of audio (at least what gemini gave me the answer)? Are there any models that do it in a different way? |
Replies: 3 comments 1 reply
|
Yes, that's how the reference If you don't pass Lines 143 to 156 in 8609812 So with English/Hindi code-switching, whichever language dominates the first 30 s is used for everything after. A few things you can try:
|
|
Dynamic Tagging is possible right like training a frozen layer which may shift activations or output if it detects a change in language? Or am I just coping atp? |
|
Thanks !!!!!!! |
Yes, that's how the reference
transcribe()works.If you don't pass
language, it detects the language once, on the first 30-second window only (pad_or_trim(mel, N_FRAMES)thenmodel.detect_language()), and keeps that language for the whole file:whisper/whisper/transcribe.py
Lines 143 to 156 in 8609812