ariym/whisper-node

Is this support zh-cn ?out put is []

Closed this issue · 4 comments

mycode:

import {whisper} from 'whisper-node';

console.log('whisper',whisper)
const transcript = await whisper("./mycloning.wav");

console.log(transcript); 

why the output is [],not support chinese or need option?

image

replace with english wav not working also,what shoul i do

Me neither. It doesn't work even though I try to transcribe with base.en and tiny.en.

ariym commented

Me neither. It doesn't work even though I try to transcribe with base.en and tiny.en.

base.en and tiny.en are optimized for English (hence the .en)

ariym commented

I added added the language option today in whisper-node@v1.1.1 but it expects 'chinese' instead of 'zh-cn'

You may also use the 'auto' option and it will detect which language.