|
1 | 1 | import Foundation |
2 | 2 |
|
| 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. |
3 | 8 | public enum TtsConstants { |
4 | 9 |
|
5 | 10 | /// Voice identifier we regression-test and ship by default. |
| 11 | + /// This is the recommended American English voice for production use. |
6 | 12 | public static let recommendedVoice = "af_heart" |
7 | 13 |
|
8 | 14 | /// 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. |
10 | 19 | public static let availableVoices: [String] = [ |
11 | | - // American English |
| 20 | + // American English (supported, beta) |
12 | 21 | "af_alloy", "af_aoede", "af_bella", "af_heart", "af_jessica", "af_kore", "af_nicole", "af_nova", |
13 | 22 | "af_river", "af_sarah", "af_sky", "am_adam", "am_echo", "am_eric", "am_fenrir", "am_liam", |
14 | 23 | "am_michael", "am_onyx", "am_puck", "am_santa", |
15 | | - // British English |
| 24 | + // British English (experimental, not tested) |
16 | 25 | "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) |
18 | 27 | "ef_dora", "em_alex", "em_santa", |
19 | | - // French |
| 28 | + // French (experimental, not tested) |
20 | 29 | "ff_siwis", |
21 | | - // Hindi |
| 30 | + // Hindi (experimental, not tested) |
22 | 31 | "hf_alpha", "hf_beta", "hm_omega", "hm_psi", |
23 | | - // Italian |
| 32 | + // Italian (experimental, not tested) |
24 | 33 | "if_sara", "im_nicola", |
25 | | - // Japanese |
| 34 | + // Japanese (experimental, not tested) |
26 | 35 | "jf_alpha", "jf_gongitsune", "jf_nezumi", "jf_tebukuro", "jm_kumo", |
27 | | - // Brazilian Portuguese |
| 36 | + // Brazilian Portuguese (experimental, not tested) |
28 | 37 | "pf_dora", "pm_alex", "pm_santa", |
29 | | - // Mandarin Chinese |
| 38 | + // Mandarin Chinese (experimental, not tested) |
30 | 39 | "zf_xiaobei", "zf_xiaoni", "zf_xiaoxiao", "zf_xiaoyi", "zm_yunjian", "zm_yunxi", "zm_yunxia", |
31 | 40 | "zm_yunyang", |
32 | 41 | ] |
|
0 commit comments