Kokoro ANE (legacy) speaks ~3.5 dB quieter than reference Kokoro since KokoroTail_v2: COLA correction applied twice?

オープン
#1,182 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
swift

調査の方向性

Start by reproducing the level gap with fluidaudiocli tts using the kokoro-ane backend and the af_heart voice, then compare the RMS against the kokoro-onnx v1.0 reference on the same sentence. The payload does not name the source files for the COLA normalisation, so the first step is to locate the KokoroTail_v2 change in the model and conversion code. Done means the team has decided whether the ~1/1.5× level is intended headroom or a double-applied correction, and the output level or its documentation matches that decision.

索引モデルが issue の本文から書いたものです。

説明

Summary

fluidaudiocli tts --backend kokoro-ane at v0.18.4 (e0c6103) produces speech about 3.5–4 dB below the reference Kokoro-82M (kokoro-onnx kokoro-v1.0.onnx, CPU) on the same text and voice. A build from early August 2026 (pre-KokoroTail_v2) was about 4 dB above the reference. The model card says KokoroTail_v2 fixed a COLA normalisation bug where "output was 1.5× reference". 1.5× is +3.5 dB. The new output reads as about 1/1.5× reference, so the correction may have been applied twice.

Measurements

macOS 27.2.1, Apple M4, 24 kHz mono. RMS in dBFS over the whole clip, short sentence (~5 s):

voice Aug build (KokoroTail, KokoroProsody) kokoro-onnx v1.0 v0.18.4 (Tail_v2, Prosody_v2)
af_heart −18.1 −22.1 −25.9
bm_george −14.1 −20.8 −24.5
am_michael −18.6 −23.2 −27.3
af_nicole −18.9 −22.0 −25.7

The ~24 s paragraph shows the same pattern for all eight English voice packs. Durations match within 2%, there are no NaNs, and ASR on the v0.18.4 output is clean. Only the level differs. #963 also reports the corrected body at −24 dB for af_heart.

Text

The river was quiet that morning, and nobody spoke until the boats came in.

fluidaudiocli tts "<text>" --backend kokoro-ane --voice af_heart --output out.wav

Question

Is the ~1/1.5× level intended (e.g. headroom), or should KokoroTail_v2 match the reference level?

主要言語
Swift
スター
3k
フォーク
451
平均マージ
1日 19時間
マージ済み PR(30日)
87

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FluidInference/FluidAudio のほかの issue

FluidInference/FluidAudio の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。