I am trying to use asr offline Recognize to recognize some audio files as Mandarin.
In node js, no matter what audio file I pass, its alternatives length is always 0, but in python these audio files will return its transcript perfectly.
My code is on Google Drive: riva - Google Drive
May I ask if there is any error in any step?
Hi @jason.hung1
Thanks for sharing the detailed script and model files. It will help us debug the issue better.
We are currently looking into it and will update you as soon as possible.
To add a question, If the audio file is too large, has the error message (Error: 8 RESOURCE_EXHAUSTED: Received message larger than max will occur).Except to use smaller audio file, do you have any suggest solution to this question.
The sample rate of the audio file you shared is 48khz and the javascript you shared is hard-coding 16khz as the sample rate. Unless you are doing some resampling elsewhere, that will not work. Please specify the correct sample rate.