A Streamlit application that transcribes audio locally using the Cohere Transcribe ONNX model (2B parameters, #1 on HF Open ASR Leaderboard).
Audio File / URL
|
v
librosa (load + resample to 16kHz)
|
v
CohereAsrProcessor (mel spectrogram + prompt tokens)
|
v
ONNX Encoder (Conformer) --> encoder hidden states
|
v
ONNX Decoder (autoregressive greedy + KV cache) --> token IDs
|
v
Tokenizer decode --> transcript text
Long audio is split into 30s chunks with 5s overlap, each chunk processed independently.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install git+https://github.com/huggingface/transformers.git
streamlit run app.py
Note: transformers must be installed from source for cohere_asr model support.
Arabic, Chinese, Dutch, English, French, German, Greek, Italian, Japanese, Korean, Polish, Portuguese, Spanish, Vietnamese
Python
100.0%
A Streamlit application that transcribes audio locally using the Cohere Transcribe ONNX model (2B parameters, #1 on HF Open ASR Leaderboard).
Audio File / URL
|
v
librosa (load + resample to 16kHz)
|
v
CohereAsrProcessor (mel spectrogram + prompt tokens)
|
v
ONNX Encoder (Conformer) --> encoder hidden states
|
v
ONNX Decoder (autoregressive greedy + KV cache) --> token IDs
|
v
Tokenizer decode --> transcript text
Long audio is split into 30s chunks with 5s overlap, each chunk processed independently.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install git+https://github.com/huggingface/transformers.git
streamlit run app.py
Note: transformers must be installed from source for cohere_asr model support.
Arabic, Chinese, Dutch, English, French, German, Greek, Italian, Japanese, Korean, Polish, Portuguese, Spanish, Vietnamese
Python
100.0%