How to deploy a custom trained ASR model on Android #5425
Replies: 4 comments 21 replies
-
Thanks for your question. |
Beta Was this translation helpful? Give feedback.
-
You have two ways:
|
Beta Was this translation helpful? Give feedback.
-
I think that it should be fine. Try testing the model with a different file: import librosa
from espnet_onnx import Speech2Text
speech2text = Speech2Text(tag_name='asr_model')
y, sr = librosa.load('/export/corpus01/LibriSpeech/test-clean/1089/134686/1089-134686-0000.flac', sr=16000)
nbest = speech2text(y)
print(nbest[0][0]) |
Beta Was this translation helpful? Give feedback.
-
I tried testing the model with an audio file and it generated the following error... 2023-10-14 16:31:04.5390720 [E:onnxruntime:, sequential_executor.cc:514 onnxruntime::ExecuteKernel] Non-zero status code returned while running Gather node. Name:'/make_pad_mask/Gather' Status Message: indices element out of data bounds, idx=1043 must be within the inclusive range [-512,511] I tried using the audio file i have attached in a zip file. |
Beta Was this translation helpful? Give feedback.
-
Dear Team,
Is it possible to deploy a custom trained ESPNET ASR model on Android?
If yes, could you please advise on how to do it?
PS. I am using ESPnet 2.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions