a8851625 / Faster-Whisper-Openai-Api

faster-whisper-openai-api 是一个基于 Faster-Whisper 模型的音频转录服务,支持将音频文件转录为文本,并提供多种输出格式,参考 OpenAI api。
3 stars 0 forks source link

How to change the Whisper model? #1

Open zhy844694805 opened 3 months ago

zhy844694805 commented 3 months ago

After testing, the model currently used by your project automatically transcribes and translates the input language into English. My input languages are Japanese, Chinese, and Korean, but after transcription, the output language is always English.

a8851625 commented 3 months ago

You should try modifying the parameter language = request.form.get('language', None).

It supports the following parameters: ( "af", "am", "ar", "as", "az", "ba", "be", "bg", "bn", "bo", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "es", "et", "eu", "fa", "fi", "fo", "fr", "gl", "gu", "ha", "haw", "he", "hi", "hr", "ht", "hu", "hy", "id", "is", "it", "ja", "jw", "ka", "kk", "km", "kn", "ko", "la", "lb", "ln", "lo", "lt", "lv", "mg", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "ne", "nl", "nn", "no", "oc", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "sn", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "tg", "th", "tk", "tl", "tr", "tt", "uk", "ur", "uz", "vi", "yi", "yo", "zh", "yue", )