Skip to content

Commit 2dcafc2

Browse files
committed
add beta status to tts & america english only support docs for tts
1 parent a9eb500 commit 2dcafc2

4 files changed

Lines changed: 35 additions & 10 deletions

File tree

Documentation/TTS/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Text-To-Speech (TTS) Code Examples
22

3+
> **⚠️ Beta:** The TTS system is currently in beta and only supports American English. Additional language support is planned for future releases.
4+
35
Quick recipes for running the Kokoro synthesis stack.
46

57
## CLI quick start

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ Offline mode also reports RTFx using the model's per-chunk processing time.
287287

288288
## Text‑To‑Speech (TTS)
289289

290+
> **⚠️ Beta:** The TTS system is currently in beta and only supports American English. Additional language support is planned for future releases.
291+
290292
- Model: Kokoro (CoreML unified model)
293+
- Language: American English (beta)
291294
- G2P: Dictionary first, then eSpeak NG (CEspeakNG) for OOV words
292295
- Output: 24 kHz mono WAV
293296

Sources/FluidAudio/TextToSpeech/TtsConstants.swift

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,41 @@
11
import Foundation
22

3+
/// Constants for the TTS (Text-to-Speech) system.
4+
///
5+
/// - Note: **Beta:** The TTS system is currently in beta and only supports American English.
6+
/// While voice identifiers for other languages are included in the model, only American English
7+
/// voices are currently tested and supported. Additional language support is planned for future releases.
38
public enum TtsConstants {
49

510
/// Voice identifier we regression-test and ship by default.
11+
/// This is the recommended American English voice for production use.
612
public static let recommendedVoice = "af_heart"
713

814
/// Canonical voice identifiers bundled with the Kokoro CoreML release.
9-
/// Only `recommendedVoice` is covered by automated QA; the rest are experimental.
15+
///
16+
/// - Important: Only American English voices (af_*, am_*) are currently supported and tested.
17+
/// Only `recommendedVoice` is covered by automated QA; all other voices are experimental.
18+
/// Non-English voices are present in the model but are not yet quality-assured for production use.
1019
public static let availableVoices: [String] = [
11-
// American English
20+
// American English (supported, beta)
1221
"af_alloy", "af_aoede", "af_bella", "af_heart", "af_jessica", "af_kore", "af_nicole", "af_nova",
1322
"af_river", "af_sarah", "af_sky", "am_adam", "am_echo", "am_eric", "am_fenrir", "am_liam",
1423
"am_michael", "am_onyx", "am_puck", "am_santa",
15-
// British English
24+
// British English (experimental, not tested)
1625
"bf_alice", "bf_emma", "bf_isabella", "bf_lily", "bm_daniel", "bm_fable", "bm_george", "bm_lewis",
17-
// Spanish (LATAM)
26+
// Spanish (LATAM) (experimental, not tested)
1827
"ef_dora", "em_alex", "em_santa",
19-
// French
28+
// French (experimental, not tested)
2029
"ff_siwis",
21-
// Hindi
30+
// Hindi (experimental, not tested)
2231
"hf_alpha", "hf_beta", "hm_omega", "hm_psi",
23-
// Italian
32+
// Italian (experimental, not tested)
2433
"if_sara", "im_nicola",
25-
// Japanese
34+
// Japanese (experimental, not tested)
2635
"jf_alpha", "jf_gongitsune", "jf_nezumi", "jf_tebukuro", "jm_kumo",
27-
// Brazilian Portuguese
36+
// Brazilian Portuguese (experimental, not tested)
2837
"pf_dora", "pm_alex", "pm_santa",
29-
// Mandarin Chinese
38+
// Mandarin Chinese (experimental, not tested)
3039
"zf_xiaobei", "zf_xiaoni", "zf_xiaoxiao", "zf_xiaoyi", "zm_yunjian", "zm_yunxi", "zm_yunxia",
3140
"zm_yunyang",
3241
]

Sources/FluidAudio/TextToSpeech/TtsManager.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
import Foundation
22
import OSLog
33

4+
/// Manages text-to-speech synthesis using the Kokoro CoreML model.
5+
///
6+
/// - Note: **Beta:** The TTS system is currently in beta and only supports American English.
7+
/// Additional language support is planned for future releases.
8+
///
9+
/// Example usage:
10+
/// ```swift
11+
/// let manager = TtSManager()
12+
/// try await manager.initialize()
13+
/// let audioData = try await manager.synthesize(text: "Hello, world!")
14+
/// ```
415
@available(macOS 13.0, iOS 16.0, *)
516
public final class TtSManager {
617

0 commit comments

Comments
 (0)