File size: 941 Bytes
5d20485 413a32c 20179eb 2cf21b9 5d20485 0cb2349 516fa76 0cb2349 967da4c 0cb2349 aafadd4 38764ad 0cb2349 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
---
license: apache-2.0
library_name: unity-sentis
pipeline_tag: automatic-speech-recognition
---
# Whisper-Tiny model in Unity Sentis Format
This is the [Whisper Tiny](https://huggingface.co/openai/whisper-tiny) model tested to work in Unity 2023.
## How to Use
* Open a new scene in Unity 2023
* Import package ``com.unity.sentis`` from the package manager.
* Put the `RunWhisper.cs` on the Main Camera
* Put the *.sentis files and the `vocab.json` in the Assets/StreamingAssets folder
* Add a 16kHz mono audio file up to 30 seconds long to your project and drag on to the audioClip field.
* **IMPORTANT:** The audio must be 16kHz. In the audio inspector select "Force Mono". And "Decompress on Load".
* You can add a step to convert 44kHz or 22kHz audio to 16kHz with [this model](https://huggingface.co/unity/sentis-audio-frequency-to-16khz)
When you press play the transcription of the audio will be displayed in the console window. |