Repository navigation
文字起こしのエンジンに Haas-ja-v1.0 を選べるようにする - #150
Merged
Merged
Conversation
sherpa-onnx-node の OfflineRecognizer(nemo_transducer)と Silero VAD で、 有志の量子化版(oboroge0/Haas-ja-v1.0-onnx-quantized)を動かす。 VAD で切り出した発話区間だけを認識し、文末と間で分けて録音の時刻に戻す。 テキストで判断する関門は whisper と共用にし、日本語以外の録音は whisper に任せる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
実機で「進捗」が「進<0xE6><0x8D><0x97>」のまま残っていた。sherpa-onnx は全体の text では 戻すが、文に分けて組み立てるのに使うトークンの列はそのまま届く。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 発話区間の前後に 0.25 秒の余白を足して認識する。VAD が遅れて検出した語頭が削れ、 「ありがとうございます」が「視聴者ございます」になっていた - 確信度の下限 -1 と除外語「む」「むぅ」を入れる。公開コーパスの人の声では普通の文は -0.53 より上で、無音のクリップの作り話「下がり、」は -1.41 だった - npm run eval:transcription に haas の構成を足し(モデルがあるときだけ)、基準を取り直す - ADR-049 と CLAUDE.md に、変換版を選んだ理由と sherpa-onnx-node を上げるときの確かめ方を書く Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
文字起こしのエンジンに Haas-ja-v1.0(日本語専用、Parakeet-TDT 系)を選べるようにする。既定は whisper のまま(ADR-049)。
oboroge0/Haas-ja-v1.0-onnx-quantized、約 480MB)を、話者識別で既に使っているsherpa-onnx-nodeのnemo_transducerで動かす。新しい同梱バイナリは無く、Windows でも動く作り<0xE6>)は UTF-8 に戻すsegmentFilters.tsに切り出し)。Haas は確信度の下限 -1 と除外語「む」「むぅ」を足すjaのときだけ Haas を使い、en/autoは whisper で起こす(transcriptionEngineOf)haas-ja(6 ファイルをまとめて取得)評価
npm run eval:transcriptionにhaasの構成を足した(モデルがあるときだけ)。合成音声では whisper との差は表記の揺れの範囲で、作り話は両方 0 字。baseline.jsonを取り直した(macOS 26.6.2 → 27.0.1 の声の変化も含む)確認
tests/infrastructure/haas-session.test.ts(OMR_HAAS_MODEL_DIR指定時のみ。CI では skip)🤖 Generated with Claude Code