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

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

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

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

評価

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

調査の方向性

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.

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

説明

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!

主要言語
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 を短くまとめたダイジェスト。