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

Abierto
#1,182 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
20/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
swift

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Swift
Estrellas
3k
Forks
451
Merge medio
1 d 19 h
PR fusionados (30 d)
87

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FluidInference/FluidAudio

Todos los issues de FluidInference/FluidAudio

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.