Is it possible to detect the spoken language?
silvioprog opened this issue · 2 comments
Hi.
I have been developing this free transcription website using the model vosk-model-en-us-0.42-gigaspeech
, so it should accept only English videos, however, I've noticed some people sending videos in Portuguese, Spanish, Japanese and so on, and I would like to block it.
So, it that possible to detect if the audio (extracted from the video) is really in English language? (Something like whisper.detect_language())
TIA for any help!
There is no problem to use whisper for initial language identification step, you can also use other models like
https://huggingface.co/speechbrain/lang-id-voxlingua107-ecapa
@nshmyrev After a couple of tests, I decided to go with speechbrain/lang-id-voxlingua107-ecapa. Thanks a lot for this excellent suggestion!