Supertonic-3: 70-character chunks break sentences up. Longer text windows for TextEncoder/DurationPredictor? (Plus a download clash on case-insensitive disks.)

Abierto
#1,191 0 comentarios 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
22/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
swift

Línea de trabajo

Start with Supertonic3Constants.maxChunkLengthLatin (70) and the chunker that uses it, then check the TextEncoder_v2 and DurationPredictor_v2 model export that fixes text length. The download clash is in ModelHub.download(.supertonic3, …) and requiredFiles(veVariant:), where Config.json and config.json collide on case-insensitive volumes. Done means the chunk cap is configurable with a test for longer segments, the download succeeds on macOS, and the docs match the code's 70/57 caps and 0.05 s silence.

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

Descripción

Hi FluidInference team, and thanks again for the quick vocoder fix in #1135. We're now trialling Supertonic-3 in the same iOS article reader, through Supertonic3Manager(directory:computeUnits: .cpuAndNeuralEngine, vectorEstimator: .aneBucketed(.int4)) at main e63b5230, on an iPhone 18 Pro (iOS 27.2).

What's great

  • 50–83× real time for 20–25 s paragraphs; +111 MB loaded; 0.2 s to load once compiled.
  • Intelligibility, measured with Apple's speech recogniser on a paragraph full of numbers: 3–11% word error across the ten voices, against 5% for Kokoro af_heart. German and Spanish samples about 5%.
  • No pieces cut off mid-sound in about 400 we measured.

1. Choppy delivery from the 70-character chunks

Supertonic3Constants.maxChunkLengthLatin is 70, so most article sentences (100–200 characters) are split at commas or between words, and each piece is synthesised on its own, with its own intonation and a 0.05 s gap. In listening tests this is the deciding problem: "the most jarring part is the disjointed delivery… it breaks the sentence and paragraph flow constantly." Our shorter sentences (the German, French and Spanish samples) sound noticeably more fluent.

Could TextEncoder_v2 and DurationPredictor_v2 be exported with longer fixed text lengths, say T = 256 and 512 buckets like the VectorEstimator's L buckets, with the chunker caps raised to match? At this speed there's plenty of headroom. In the meantime a configurable cap would help: plain-ASCII English at 110 characters plus the <en> tags still fits T = 128 (the docs still give 110/90).

2. Download fails on case-insensitive volumes (macOS, the iOS Simulator)

The repo's top level holds both Config.json (2 bytes) and config.json (77 bytes). ModelHub.download(.supertonic3, …) saves one, then fails on the other:

Supertonic3Error.downloadFailed("Error Domain=NSCocoaErrorDomain Code=516 "“config.json.partial” couldn’t be moved to “supertonic-3” because an item with the same name already exists." …)

We work around it by fetching requiredFiles(veVariant:) ourselves and passing that folder as directory. Removing Config.json, or downloading only the required files, would fix it.

3. Small documentation mismatches

  • The voice styles are at voice_styles/, not assets/voice_styles/.
  • The chunk caps are 70/57 in the code but 110/90 in Documentation/TTS/Supertonic3.md, and the default silence is 0.05 s in the code but 0.3 s in the docs.

Happy to test any builds. Thanks!

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.