Run Whisper using onnxruntime in C++ with sherpa-onnx #1583
csukuangfj
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Thanks for your great work. I can't find much information how to run Whisper on Android using your jniLibs. Do you have an example somewhere? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FYI: We have managed to run Whisper using onnxruntime in C++ with sherpa-onnx, which is a sub-project of Next-gen Kaldi.
It supports Linux, macOS, Windows, Raspberry Pi, Android, iOS, etc.
It also provides various bindings for other languages, e.g., C API, Python API, Golang API, C# API, Swift API, Kotlin API, etc.
You can try it using the following colab notebook
https://github.com/k2-fsa/colab/blob/master/sherpa-onnx/sherpa_onnx_whisper_models.ipynb
or try it from within your browser by visiting
![whisper-hf](https://private-user-images.githubusercontent.com/5284924/258843422-0a018fb2-bcaf-4bdf-9265-3546802ab2b8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDYzMTYsIm5iZiI6MTczOTEwNjAxNiwicGF0aCI6Ii81Mjg0OTI0LzI1ODg0MzQyMi0wYTAxOGZiMi1iY2FmLTRiZGYtOTI2NS0zNTQ2ODAyYWIyYjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTMwMDE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTY4MDFhM2UzMGUxOGQ1MWJlNjk2ZjQ5ZDAxMmJjZjc2MjEyNzM5NWU1OGExYTU2ODI3MzIxZjZjNDJlNTBhYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.b8x1rN3pSL35pTmpfWNX0zAZzvYd2X0Adk50Ws1ZEFg)
https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition
Documentation is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/whisper/index.html
Beta Was this translation helpful? Give feedback.
All reactions