You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfilePath=`${RNFS.DocumentDirectoryPath}/whisper/ggml-tiny.en.bin`constsampleFilePath=`${RNFS.DocumentDirectoryPath}/youtube_audio_3LopI4YeC4I.wav`constwhisperContext=awaitinitWhisper({ filePath })constoptions={language: 'en'}const{ stop, promise }=whisperContext.transcribe(sampleFilePath,options)const{ result, segments }=awaitpromise// result: (The inference text result from audio file)console.log('---result---',result);console.log('---segments---',segments);
I got this print
---result---
---segments--- Array []
This audio file is a English content, and the pronunciation is pretty clear
I do not know why got this.
Actually, I met the same situation (n_segments = 0) when I use whisper.cpp.swift, it is fixed after I configured 'Copy Bundle Resources', but I do not why for this
Thanks, my process is to download the audio file in webm format, then use ffmpeg-kit-react-native to convert it into the same metadata as jfk.wav, it still doesn't work...
For this code
I got this print
---result---
---segments--- Array []
This audio file is a English content, and the pronunciation is pretty clear
I do not know why got this.
Thanks!
@jhen0409
The text was updated successfully, but these errors were encountered: