haru-4b-asr-streaming-ja
A Japanese automatic speech recognition (ASR) model fine-tuned from Haru-4B, a full-duplex spoken dialogue foundation model.
One set of weights covers two modes, chosen by the system prompt:
- Streaming: each word is written a fixed delay after it is spoken. The delay can be set from 400 ms to 2400 ms.
- Offline: the transcript of each utterance is written right after the utterance ends.
Results on JSUT
Character error rate (CER, %) on 4,486 utterances of JSUT basic5000 after text normalization, greedy decoding. Lower is better.
| Mode | Delay | CER |
|---|---|---|
| Streaming | 400 ms | 7.85 |
| Streaming | 933 ms | 7.46 |
| Streaming | 1600 ms | 6.77 |
| Streaming | 2400 ms | 6.40 |
| Offline | — | 4.96 |
How it works
Haru-4B sums three streams into one position of the language model per frame: the user's audio (a latent of the VibeVoice acoustic tokenizer), the model's own audio and the model's text. This model keeps the user's audio as the input, keeps its own audio silent, and writes the transcript into its text stream:
- While nothing is due, it writes the padding token.
- A word becomes due a fixed delay after it is fully spoken. The model then writes the end-of-padding token, which Haru uses to start speaking, followed by the word's tokens, one per frame, and keeps writing while further words are due.
- The system prompt names the delay in milliseconds, or asks for offline transcription.
The training targets follow Delayed Streams Modeling (Kyutai) and Voxtral Realtime (Mistral): a word is never written before it has been heard, and one model handles every delay.
Usage
git clone https://github.com/higurashi-ai/Haru
pip install -e ./Haru/haru soundfile scipy
python transcribe.py speech.wav --delay-frames 7 # streaming, 933 ms delay (3-18 frames = 400-2400 ms)
python transcribe.py speech.wav --offline # one transcript after the speech ends
transcribe.py loads the model with Haru's load_model, encodes the audio with the model's codec and
steps through it frame by frame, as a live stream would. The system prompts are:
<|im_start|>system
音声認識:ユーザーの発話を、遅れ933ミリ秒で、句読点を付けて日本語の文字で書き起こす。<|im_end|>
<|im_start|>system
音声認識:ユーザーの発話を、話し終えてから、句読点を付けて日本語の文字で書き起こす。<|im_end|>
Limitations
- The fine-tuning was light and simple: a short run with little tuning of the recipe. The model may not bring out the full ASR ability of Haru-4B, and more careful training could improve it.
- Rarely, a short backchannel such as 「なるほど。」 is written before the transcript (1 of 4,486 JSUT utterances at a 933 ms delay), a trace of the dialogue model.
- The model is fine-tuned for transcription; its dialogue ability was not kept or evaluated.
License
Apache License 2.0, as for Haru-4B.
- Downloads last month
- 29
Model tree for Atotti/haru-4b-asr-streaming-ja
Base model
higurashi-ai/Haru-4B