Run this model with HF Jobs

Run dena-ai/Haas-ja-v1.0-dialogue on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/dena-ai/Haas-ja-v1.0-dialogue. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/dena-ai/Haas-ja-v1.0-dialogue on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Haas-ja-v1.0 — fine-tuned for spoken dialogue

日本語の README / Japanese README

An automatic speech recognition (ASR) model fine-tuned from third-intelligence/Haas-ja-v1.0 for Japanese spoken dialogue. We strengthened the following for spoken dialogue:

  • It returns nothing for noise-only audio (so the AI does not respond when nobody has spoken)
  • It writes backchannels such as 「うーん」 (hmm) and 「ええ」 (right) as they are heard (so agreement 「うん」 and hesitation 「うーん」 stay distinct)
  • It transcribes numbers and backchannels by real speakers and conversational sentences more accurately

The architecture is unchanged, so speed and usage are the same as the original model.

For details, see our blog post (in Japanese).

Results

Reading CER (%, lower is better) and hallucinations on 40 noise-only clips, compared with the original model. Both go through Silero VAD before recognition.

Test set Utterances Original This model
Hallucinations on noise-only audio 40 6 0
Common Voice 300 1.0 1.1
FLEURS 300 2.2 2.1
ReazonSpeech (reference) 300 5.9 7.0
Backchannels (synthetic) 768 35.3 33.4
Conversational sentences (synthetic) 720 1.3 0.6
Noisy FLEURS 1,700 2.3 2.4

On short utterances by real speakers (selected from Common Voice, recognized without VAD), errors on backchannels and numbers dropped sharply.

Test set Original This model
Backchannels 32.4 18.9
Numbers 24.1 1.3

With synthetic voices not used in training, standalone 「うーん」 and 「ええ」 written as 「うん」 dropped from 23 to 1 and from 14 to 0 out of 48 each.

  • Reading CER: character error rate computed on katakana readings of the reference and the transcript, so orthographic variants such as 「子供/子ども」 are not counted as errors
  • Hallucinations: number of noise-only clips for which the model output at least one character. The clips are café, subway, street and kitchen noise from DEMAND; training used different noise types
  • ReazonSpeech: the references are broadcast captions that omit disfluencies, so it is a reference value. The original model was trained on Common Voice and ReazonSpeech
  • Backchannels, conversational sentences: synthetic speech of 6 voices reading 32 backchannels and short replies (e.g. 「うん。」, 「へえ。」) in 4 speaking styles, and 120 conversational sentences. Generated with a different TTS and voices from those used for training
  • Noisy FLEURS: 100 FLEURS utterances mixed with the same 4 noise types at SNR 20–0 dB

How to use

As with the original model, the haas-asr package is required. It uses flash-linear-attention, so Linux and an NVIDIA GPU are required.

pip install "haas-asr @ git+https://github.com/third-intelligence/Haas-ASR.git"
hf download dena-ai/Haas-ja-v1.0-dialogue \
  Haas-ja-v1.0-dialogue.nemo --local-dir models
import haas_asr  # registers the prediction network class with NeMo
from nemo.collections.asr.models import ASRModel

model = ASRModel.restore_from("models/Haas-ja-v1.0-dialogue.nemo", map_location="cuda")
audio = haas_asr.load_audio("speech.wav")
output = model.transcribe([audio])
print(output[0].text)

Training data

About 94k utterances, 169 hours in total.

Data Purpose
Synthetic backchannels Write backchannels as they are heard
Common Voice v27 Real voices; keep accuracy on ordinary sentences
FLEURS train Keep accuracy on read sentences
Noise-only audio (empty reference), about 10% of the data Return nothing for noise or unintelligible background speech
  • Synthetic speech was generated with Irodori TTS (v4.1-Small). Voices were created from text descriptions, not from recordings of real people. The scripts were used as references as is
  • Noise-only clips were cut from the 14 DEMAND noise types not used for evaluation and from the noise part of MUSAN
  • Speakers and sentences that appear in the Common Voice test set were excluded from training

Training procedure

A100, 400 s of audio per batch, learning rate 5e-5, bf16, 6,088 steps (4 epochs). The weights are the average of the last 4 checkpoints.

Limitations

Transcripts contain errors. In settings where errors can have serious consequences, such as medical, legal or contractual use, have a person check them.

Prohibited uses

Do not use this model in ways that violate laws or the rights of others.

License

Apache License 2.0, the same as the original model. The full text is in LICENSE in this repository. This model is a modified version of third-intelligence/Haas-ja-v1.0 by Third Intelligence, fine-tuned from its weights.

This model was built with the following:

Name Use License
third-intelligence/Haas-ja-v1.0 Base model Apache-2.0
Common Voice v27 Training data CC0 1.0
FLEURS Training data CC BY 4.0
DEMAND Training data (noise) CC BY 4.0
MUSAN Training data (noise) CC BY 4.0
Irodori-TTS-v4.1-Small Synthetic training speech MIT

Contact

Please use the Community tab of this repository.

Downloads last month
1,220
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for dena-ai/Haas-ja-v1.0-dialogue

Finetuned
(3)
this model
Quantizations
4 models

Dataset used to train dena-ai/Haas-ja-v1.0-dialogue

Space using dena-ai/Haas-ja-v1.0-dialogue 1