cloud0day3 commited on
Commit
d548dfe
·
verified ·
1 Parent(s): 0cece76

Antalia-2 Mini 1.0.0

Browse files
.gitattributes CHANGED
@@ -33,3 +33,12 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ antalia_mini-1.0.0-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
37
+ samples/01-greeting.wav filter=lfs diff=lfs merge=lfs -text
38
+ samples/02-appointment.wav filter=lfs diff=lfs merge=lfs -text
39
+ samples/03-amount.wav filter=lfs diff=lfs merge=lfs -text
40
+ samples/04-phone.wav filter=lfs diff=lfs merge=lfs -text
41
+ samples/05-cargo.wav filter=lfs diff=lfs merge=lfs -text
42
+ samples/06-question.wav filter=lfs diff=lfs merge=lfs -text
43
+ samples/07-english.wav filter=lfs diff=lfs merge=lfs -text
44
+ samples/08-long.wav filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Antalia-2 Mini
2
+ Copyright 2026 PatientDesk AI
3
+
4
+ The code, the text normaliser and the model weights are licensed under the Apache License,
5
+ Version 2.0 (see LICENSE).
6
+
7
+ This package includes PatientDesk AI's Turkish text normaliser (antalia_mini/text/normalize.py,
8
+ antalia_mini/text/foreign.py, antalia_mini/text/data/lexicon.json, antalia_mini/text/data/tr_vocab.json),
9
+ released under the same licence. Vendored verbatim from turkish-tts commit 3ed2e60 (2026-10-07).
10
+
11
+ At run time the normaliser uses the CMU Pronouncing Dictionary through the `cmudict` package
12
+ (Copyright Carnegie Mellon University, BSD 2-Clause licence); it is a dependency, not included here.
13
+
14
+ The model weights were trained on synthetic speech generated with VoxCPM2 (OpenBMB, Apache-2.0).
15
+
16
+ The model reimplements published methods: monotonic alignment search (Glow-TTS, Kim et al. 2020;
17
+ Matcha-TTS, Mehta et al. 2024), flow matching (Lipman et al. 2023), shortcut models (Frans et al. 2024),
18
+ adaLN-single (PixArt-alpha, Chen et al. 2023), ConvNeXt (Liu et al. 2022), Vocos (Siuzdak 2023),
19
+ HiFi-GAN's multi-period discriminator (Kong et al. 2020), UnivNet's multi-resolution discriminator
20
+ (Jang et al. 2021), RoPE (Su et al. 2021), SwiGLU (Shazeer 2020). No code from those projects is included.
README.md ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - tr
4
+ license: apache-2.0
5
+ library_name: antalia-mini
6
+ pipeline_tag: text-to-speech
7
+ tags:
8
+ - text-to-speech
9
+ - tts
10
+ - turkish
11
+ - flow-matching
12
+ - cpu
13
+ ---
14
+
15
+ # Antalia-2 Mini
16
+
17
+ **Türkçe özet.** Antalia-2 Mini, tek sesli, küçük bir Türkçe metinden konuşmaya (TTS) modelidir: toplam
18
+ 7,6 milyon parametre, 48 kHz çıkış, sıradan bir işlemcide gerçek zamandan çok daha hızlı. Ham metni alır;
19
+ sayıları, tarihleri, saatleri, tutarları, kısaltmaları ve metindeki İngilizce ya da marka adlarını kendi
20
+ normalleştiricisiyle okunuşa çevirir. Ses sentetik bir erkek sesidir (Antalia-2'nin sesi): gerçek bir
21
+ kişinin sesi değildir ve eğitim verisinde gerçek konuşmacı kaydı yoktur. Kod ve model ağırlıkları
22
+ Apache-2.0 lisanslıdır. Kurulum:
23
+ `pip install https://huggingface.co/cloud0day3/antalia-mini/resolve/main/antalia_mini-1.0.0-py3-none-any.whl`
24
+ (PyPI'ye çıktığında `pip install antalia-mini` de çalışacak).
25
+
26
+ ---
27
+
28
+ Antalia-2 Mini (version 1.0.0) is a small Turkish text-to-speech model with one voice. It has 7.62M parameters in total
29
+ (acoustic model 3.69M, vocoder 3.93M), produces 48 kHz audio, and runs well faster than real time on a
30
+ CPU. It takes raw Turkish text: a text normaliser inside the package turns numbers, dates, times,
31
+ amounts, initialisms, web addresses and English or brand words into the way a Turkish speaker says them.
32
+
33
+ The voice is a synthetic male voice (Antalia-2's voice), not a real person, and the training data
34
+ contains no recordings of real speakers. The code and the weights are licensed under Apache-2.0. Its
35
+ predecessor, Antalia-1, is at [cloud0day3/antalia-1](https://huggingface.co/cloud0day3/antalia-1).
36
+
37
+ ## Quickstart
38
+
39
+ ```bash
40
+ pip install https://huggingface.co/cloud0day3/antalia-mini/resolve/main/antalia_mini-1.0.0-py3-none-any.whl
41
+ ```
42
+
43
+ The wheel is in this repository; `pip install antalia-mini` will work once the package is on PyPI.
44
+ Python 3.10 or newer; the dependencies are PyTorch, NumPy, safetensors, soundfile and cmudict.
45
+
46
+ ```python
47
+ from antalia_mini import Antalia
48
+
49
+ tts = Antalia() # downloads the weights (~31 MB) once; uses a CUDA GPU if there is one, else the CPU
50
+ speech = tts.say("Randevunuz 14 Ekim Salı günü saat 15:30'da.", path="randevu.wav", seed=0)
51
+ print(speech.duration, speech.sample_rate, speech.seed)
52
+
53
+ # several texts at once (batched on a GPU)
54
+ speeches = tts.say(["Merhaba.", "Siparişiniz yola çıktı."], seed=0)
55
+
56
+ # streaming: the first sentence is synthesised first, then the rest, a few sentences at a time
57
+ for chunk in tts.stream(long_text):
58
+ play(chunk) # float32 numpy array at tts.sample_rate
59
+
60
+ # telephone or ASR pipelines: 24000, 16000 or 8000 Hz (resampled from 48 kHz)
61
+ tts8k = Antalia(sample_rate=8000)
62
+
63
+ # Apple Silicon: the CPU is the default; the GPU is an option
64
+ tts_mps = Antalia(device="mps")
65
+ ```
66
+
67
+ Command line: `antalia-mini "Merhaba, size nasıl yardımcı olabilirim?" -o merhaba.wav`.
68
+
69
+ Options of `say()`: `seed` (the same text, seed and settings give the same audio; without a seed a random
70
+ one is drawn and returned in `speech.seed`), `speed` (1.0 = the voice's own pace, higher is faster),
71
+ `steps` (flow-matching steps, default 4; 8 can be slightly more accurate and takes 1.5-2x longer),
72
+ `cfg` (classifier-free guidance, default 2.0). `Antalia.normalize(text)` shows the exact text the
73
+ model reads. The model runs in fp32; `Antalia(variant="fp16")` downloads the half-size weights file
74
+ (converted back to fp32 when loaded; the audio is practically identical).
75
+
76
+ A light bass reduction is applied by default; pass `eq=False` (to `Antalia`, `say` or `stream`, or
77
+ `--no-eq` on the command line) for the raw output. It is a 90 Hz high-pass and a -5 dB low shelf at
78
+ 210 Hz, designed for the chosen output rate, followed by a fixed +0.54 dB make-up gain (so average
79
+ loudness stays about the same; there is no per-utterance loudness normalisation) and a soft peak limiter
80
+ that keeps the output below full scale. `stream()` carries the filter state across chunks, so the joined
81
+ chunks are identical to `say()`'s output.
82
+
83
+ ## Samples
84
+
85
+ Raw input text, seed 0, 4 steps, cfg 2.0, default output EQ.
86
+
87
+ | | Text | Audio |
88
+ |---|---|---|
89
+ | Greeting | Merhaba, size nasıl yardımcı olabilirim? | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/01-greeting.wav"></audio> |
90
+ | Date and time | Randevunuz 14 Ekim Salı günü saat 15:30'da, Dr. Ayşe Yılmaz ile. | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/02-appointment.wav"></audio> |
91
+ | Amount | Toplam tutar 1.250,75 TL. Ödemeyi 3 taksitle yapabilirsiniz. | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/03-amount.wav"></audio> |
92
+ | Phone and e-mail | Bize 0212 555 12 34 numarasından veya destek@ornek.com adresinden ulaşabilirsiniz. | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/04-phone.wav"></audio> |
93
+ | Date | Kargonuz yola çıktı; tahmini teslimat tarihi 9 Ekim 2026, Perşembe. | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/05-cargo.wav"></audio> |
94
+ | Question | Siparişinizi iptal etmek mi istiyorsunuz, yoksa teslimat adresini mi değiştirmek istiyorsunuz? | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/06-question.wav"></audio> |
95
+ | Brand word | Toplantı bağlantısını WhatsApp üzerinden ve e-posta ile gönderdik. | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/07-english.wav"></audio> |
96
+ | Long sentence | İstanbul'un iki yakasını birbirine bağlayan köprüler, her gün yüz binlerce kişinin işe, okula ve evine ulaşmasını sağlıyor; ancak yoğun saatlerde trafik, yolculuk süresini kimi zaman iki katına çıkarabiliyor. | <audio controls src="https://huggingface.co/cloud0day3/antalia-mini/resolve/main/samples/08-long.wav"></audio> |
97
+
98
+ ## Evaluation
99
+
100
+ Freya-TR-Eval ([freyavoice/freya-tr-eval](https://huggingface.co/datasets/freyavoice/freya-tr-eval)), all
101
+ 495 sentences, raw text in. Protocol, following EMA Lightning's card and Freya's reference scorer:
102
+
103
+ - intelligibility: each clip is resampled to 8 kHz and back to 16 kHz (band matching), transcribed by
104
+ faster-whisper large-v3 (fp16, beam 5, language tr, other options at their defaults); reference and
105
+ transcript get Freya's Turkish normalisation; WER and CER are computed over the whole set with jiwer;
106
+ - naturalness: UTMOS22-strong, mean over clips, on the full band (resampled to 16 kHz) and on the
107
+ 8 kHz band (the same band-matched audio the WER uses);
108
+ - 3 seeds per system unless noted; WER gives the mean, with the lowest and highest seed in brackets;
109
+ - Antalia-2 Mini with cfg 2.0 and its default settings otherwise; EMA Lightning reproduced on our
110
+ harness with the same protocol.
111
+
112
+ | System | Parameters | WER % | CER % | UTMOS | UTMOS (8 kHz band) |
113
+ |---|---|---|---|---|---|
114
+ | **Antalia-2 Mini 1.0.0**, 4 steps (default) | 7.62M | 1.30 (1.25–1.35) | 0.30 | 3.20 | 3.03 |
115
+ | Antalia-2 Mini 1.0.0, 8 steps | 7.62M | 1.33 (1.23–1.40) | 0.29 | 3.19 | 3.03 |
116
+ | EMA Lightning 1.0.1 (our run) | 8.6M | 1.00 (0.89–1.17) | 0.20 | 3.30 | 2.88 |
117
+ | VoxCPM2 speaking the same voice (the teacher; 1 seed) | much larger | 0.92 | 0.20 | 3.42 | 3.25 |
118
+
119
+ EMA Lightning is still ahead on WER, CER and full-band UTMOS. Antalia-2 Mini is smaller (7.62M vs
120
+ 8.6M parameters), faster on a CPU (below), and scores higher on UTMOS in the 8 kHz band, the band a
121
+ phone call carries. 8 steps gives no measurable gain over the default 4 here. EMA Lightning's own card
122
+ reports 0.92 / 0.18 / ~3.30 on the same protocol. The teacher row is the system that generated Antalia-2
123
+ Mini's training audio, given for reference; it is not a small model. None of the evaluation sentences,
124
+ or near-duplicates of them, were in the training text.
125
+
126
+ ## Size and speed
127
+
128
+ | | Antalia-2 Mini | EMA Lightning 1.0.1 |
129
+ |---|---|---|
130
+ | Parameters | 7.62M (acoustic 3.69M + vocoder 3.93M) | 8.6M |
131
+ | Weights | 30.5 MB fp32, 15.3 MB fp16 | |
132
+ | Output | 48 kHz (24 / 16 / 8 kHz by resampling) | |
133
+ | RTF, NVIDIA H200, batch 1 | 0.0116 | 0.0105 (plain PyTorch, same GPU) |
134
+ | RTF, NVIDIA H200, batch 16 | 0.0010 | |
135
+ | RTF, CPU, 16 cores (x86 server) | 0.021 | 0.123 |
136
+ | RTF, Apple M5 CPU, 2 threads (this package) | 0.015 | |
137
+ | Time to first audio, `stream()`, Apple M5 CPU | 0.05 s | |
138
+ | RTF, Apple M5 GPU, `device="mps"` | 0.0054 | |
139
+
140
+ RTF is synthesis time divided by audio duration (lower is faster; 0.01 means one second of speech takes
141
+ 10 ms), 4 steps, cfg 2.0, at batch 1 after a warm-up unless noted. On a GPU, single-request speed is about
142
+ the same as EMA Lightning's; on a CPU, Antalia-2 Mini is about 6 times faster on the same 16 cores. The
143
+ Apple M5 numbers go through this package's API (text normalisation and the output EQ included) and were
144
+ measured with other applications running, so a quiet machine may be a little faster. On Apple Silicon the
145
+ package uses 2 CPU threads by default, which measured faster than 4 or more; elsewhere set
146
+ `Antalia(threads=N)` to taste.
147
+
148
+ ## Model
149
+
150
+ | Part | What | Parameters |
151
+ |---|---|---|
152
+ | Text encoder | character embeddings, 3 ConvNeXt blocks, 1 self-attention block with RoPE (d=192) | 0.83M |
153
+ | Duration predictor | 3 convolutions; trained on durations from monotonic alignment search (no external aligner) | 0.17M |
154
+ | Mel generator | 5 DiT blocks (d=192, adaLN-single) over pairs of 128-band log-mel frames at 93.75 Hz; flow matching with shortcut self-consistency, so the one model samples in 1, 2, 4 or 8 steps; classifier-free guidance | 2.69M |
155
+ | Vocoder | Vocos-style ConvNeXt stack (d=256, 8 blocks) predicting an n_fft 2048 / hop 512 STFT, one inverse STFT to 48 kHz; fine-tuned on the generator's own mels | 3.93M |
156
+
157
+ The model reads characters, not phonemes: Turkish spelling is close to pronunciation, and the
158
+ normaliser handles the cases where it is not. The methods are reimplemented from the papers: monotonic
159
+ alignment search (Glow-TTS, Matcha-TTS), flow matching (Lipman et al., 2023), shortcut models (Frans et
160
+ al., 2024), adaLN-single (PixArt-α), ConvNeXt, Vocos, HiFi-GAN and UnivNet discriminators (training only).
161
+
162
+ ## Voice
163
+
164
+ One voice: a synthetic male voice (Antalia-2's voice), not a real person. The model has no speaker
165
+ input and cannot clone voices.
166
+
167
+ ## Training data
168
+
169
+ About 1,578 hours of synthetic speech, all in Antalia-2's voice, generated with
170
+ [VoxCPM2](https://huggingface.co/openbmb/VoxCPM2) (OpenBMB, Apache-2.0) from a reference of that voice. No
171
+ recordings of real speakers were used. The text came from:
172
+
173
+ - Turkish Wikipedia (CC BY-SA 4.0) and FineWeb-2 Turkish (ODC-By 1.0);
174
+ - customer-service style sentences (appointments, banking, retail, deliveries) written with a
175
+ language model (Qwen3);
176
+ - templates for numbers, dates, times, amounts, phone numbers and codes;
177
+ - all of it passed through the same normaliser the package uses, and sentences overlapping
178
+ Freya-TR-Eval removed.
179
+
180
+ Every generated clip was checked automatically (Whisper large-v3 transcript against the text, UTMOS,
181
+ and similarity to the voice) and dropped if it failed.
182
+
183
+ ## Text normaliser
184
+
185
+ The normaliser is PatientDesk AI's Turkish serving normaliser, released here under the same licence.
186
+ It spells out cardinal and ordinal numbers, decimals, percentages, dates, times, ranges, amounts in
187
+ lira and other currencies, phone numbers, e-mail and web addresses and common abbreviations, reads
188
+ initialisms with Turkish letter names, and respells English and brand words the way they are said in
189
+ Turkish (using the CMU Pronouncing Dictionary and a reviewed brand lexicon). `Antalia.normalize(text)`
190
+ shows its output.
191
+
192
+ ## Limitations
193
+
194
+ - One voice, one speaking style; no emotion or style control beyond speed.
195
+ - Turkish only. English words inside Turkish sentences are respelled; whole English sentences are not
196
+ supported.
197
+ - Short interjections on their own ("Evet.", "Hı hı.", "Tamam!") are its weakest area: they can come out
198
+ flat or rushed. In running text they are packed together with neighbouring sentences, which helps.
199
+ - Readings follow the normaliser. Roman numerals ("XIX. yüzyıl"), ordinals written before names
200
+ ("2. Abdülhamit"), unusual formats, rare abbreviations and some foreign names can be read wrongly;
201
+ check `Antalia.normalize(text)` when a reading matters.
202
+ - Long inputs are split into sentence-sized chunks (up to about 18 seconds each) and joined with short
203
+ pauses; prosody does not carry across chunks.
204
+ - The numbers above are automatic metrics on one benchmark, not listening tests.
205
+
206
+ ## Responsible use
207
+
208
+ - Tell listeners when they are hearing a synthetic voice.
209
+ - Do not use the model to impersonate real people or to make speech that could be mistaken for a
210
+ real person's statement.
211
+ - Do not use it for fraud, harassment, or deceptive calls.
212
+
213
+ ## License
214
+
215
+ The code, the text normaliser and the model weights are all licensed under Apache-2.0 (see LICENSE and
216
+ NOTICE in this repository). The `cmudict` dependency is BSD-licensed.
217
+
218
+ ## Credits
219
+
220
+ - [VoxCPM2](https://huggingface.co/openbmb/VoxCPM2) by OpenBMB, which generated the training audio.
221
+ - [Freya-TR-Eval](https://huggingface.co/datasets/freyavoice/freya-tr-eval) and Freya's reference scorer,
222
+ for the benchmark.
223
+ - [EMA Lightning](https://pypi.org/project/ema-lightning/), the Turkish model we compare against.
224
+ - The CMU Pronouncing Dictionary, through the `cmudict` package.
225
+ - Turkish Wikipedia and FineWeb-2 for the training text.
226
+
227
+ ## Citation
228
+
229
+ ```bibtex
230
+ @misc{antalia_mini_2026,
231
+ title = {Antalia-2 Mini: a small Turkish text-to-speech model},
232
+ version = {1.0.0},
233
+ author = {{PatientDesk AI}},
234
+ year = {2026},
235
+ howpublished = {\url{https://huggingface.co/cloud0day3/antalia-mini}}
236
+ }
237
+ ```
acoustic.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab66075623c4dd78c54c5322c6b71137ce677c8922350446f01a959884caa910
3
+ size 7383130
acoustic.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb81fc0c1d4950777eb779fe41f90b563bc4968986040251a99ad849985f2a72
3
+ size 14757148
antalia_mini-1.0.0-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b1b146c533d9d940f5c2dfbf6dfdde3d38a4efb7dad8bfb3ea022b7eed87dd4
3
+ size 1392754
config.json ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "antalia-mini",
3
+ "format_version": 1,
4
+ "version": "1.0.0",
5
+ "sample_rate": 48000,
6
+ "acoustic": {
7
+ "n_symbols": 47,
8
+ "n_mels": 128,
9
+ "d_text": 192,
10
+ "text_convnext": 3,
11
+ "text_hidden": 384,
12
+ "text_attn": 1,
13
+ "heads": 4,
14
+ "d_dur": 128,
15
+ "d_gen": 192,
16
+ "gen_blocks": 5,
17
+ "gen_hidden": 512,
18
+ "d_time": 128,
19
+ "stack": 2,
20
+ "cond_drop": 0.1,
21
+ "shortcut_frac": 0.25,
22
+ "shortcut_levels": 7,
23
+ "mel_mean": -5.9,
24
+ "mel_std": 2.6,
25
+ "max_dur_frames": 60
26
+ },
27
+ "vocoder": {
28
+ "n_mels": 128,
29
+ "dim": 256,
30
+ "hidden": 768,
31
+ "layers": 8,
32
+ "n_fft": 2048,
33
+ "hop": 512,
34
+ "sample_rate": 48000
35
+ },
36
+ "symbols": [
37
+ "<pad>",
38
+ "<bos>",
39
+ "<eos>",
40
+ " ",
41
+ ".",
42
+ ",",
43
+ "?",
44
+ "!",
45
+ "'",
46
+ "-",
47
+ ":",
48
+ ";",
49
+ "a",
50
+ "b",
51
+ "c",
52
+ "ç",
53
+ "d",
54
+ "e",
55
+ "f",
56
+ "g",
57
+ "ğ",
58
+ "h",
59
+ "ı",
60
+ "i",
61
+ "j",
62
+ "k",
63
+ "l",
64
+ "m",
65
+ "n",
66
+ "o",
67
+ "ö",
68
+ "p",
69
+ "q",
70
+ "r",
71
+ "s",
72
+ "ş",
73
+ "t",
74
+ "u",
75
+ "ü",
76
+ "v",
77
+ "w",
78
+ "x",
79
+ "y",
80
+ "z",
81
+ "â",
82
+ "î",
83
+ "û"
84
+ ],
85
+ "defaults": {
86
+ "steps": 4,
87
+ "cfg": 2.0,
88
+ "speed": 1.0,
89
+ "temperature": 1.0
90
+ },
91
+ "params": {
92
+ "acoustic": 3686977,
93
+ "vocoder": 3933954,
94
+ "total": 7620931
95
+ },
96
+ "source": {
97
+ "bundle": "bundle.pt",
98
+ "note": "final-ac-main-short bundle: ac-main-short + voc-wide-ft-gen s301k"
99
+ },
100
+ "files": {
101
+ "acoustic.safetensors": {
102
+ "bytes": 14757148,
103
+ "sha256": "fb81fc0c1d4950777eb779fe41f90b563bc4968986040251a99ad849985f2a72"
104
+ },
105
+ "vocoder.safetensors": {
106
+ "bytes": 15742616,
107
+ "sha256": "4c4be9edd920b86f7caf6c6a0b112af9d16b2ac4af9d0554857bcdcb21996b6a"
108
+ },
109
+ "acoustic.fp16.safetensors": {
110
+ "bytes": 7383130,
111
+ "sha256": "ab66075623c4dd78c54c5322c6b71137ce677c8922350446f01a959884caa910"
112
+ },
113
+ "vocoder.fp16.safetensors": {
114
+ "bytes": 7874644,
115
+ "sha256": "a533bfd2e6baa0f2eb2ff955db2fb8f10ceb344ee34a2725e2405f05f1b7e134"
116
+ }
117
+ }
118
+ }
samples/01-greeting.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afc095474fc57280c8720033f024aba485b2c144c2ad12c0224cd70c9b31fdca
3
+ size 219180
samples/02-appointment.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7418dcd4ee701bd4733f0ac53ff89d57ac4183d17d82f495b089db50640292be
3
+ size 454700
samples/03-amount.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97a423cc9da4c897c81e6cfe6c4ede3d06e8c19479451863fe1309a94fb21d42
3
+ size 517420
samples/04-phone.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2ffaf882d4fd01bf15785217dc368fecaace3253ad7abe7c614cc227f403bf3
3
+ size 784428
samples/05-cargo.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5284e602c5cfb2ced3afd5405a722b3f898ccc1d6c97157fbec0d00f07a64f50
3
+ size 530476
samples/06-question.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbd5b47a8cde5ab7e70e856790a6a9fac423fcbf29ba77c315ccd41b60678f78
3
+ size 534572
samples/07-english.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9212a1e255d22c7550729b5651940de028130ee2677da7cba5df168ee89ba010
3
+ size 348204
samples/08-long.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9c1b7a96f17f980ac68271ac048890883a5b0cacda59d8a806af3b6db93680d
3
+ size 1191980
samples/samples.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 0,
3
+ "steps": 4,
4
+ "cfg": 2.0,
5
+ "weights": {
6
+ "bundle": "bundle.pt",
7
+ "note": "final-ac-main-short bundle: ac-main-short + voc-wide-ft-gen s301k"
8
+ },
9
+ "samples": [
10
+ {
11
+ "file": "01-greeting.wav",
12
+ "text": "Merhaba, size nasıl yardımcı olabilirim?",
13
+ "model_text": "merhaba, size nasıl yardımcı olabilirim?",
14
+ "seconds": 2.28,
15
+ "seed": 0
16
+ },
17
+ {
18
+ "file": "02-appointment.wav",
19
+ "text": "Randevunuz 14 Ekim Salı günü saat 15:30'da, Dr. Ayşe Yılmaz ile.",
20
+ "model_text": "randevunuz on dört ekim salı günü saat on beş otuzda, doktor ayşe yılmaz ile.",
21
+ "seconds": 4.74,
22
+ "seed": 0
23
+ },
24
+ {
25
+ "file": "03-amount.wav",
26
+ "text": "Toplam tutar 1.250,75 TL. Ödemeyi 3 taksitle yapabilirsiniz.",
27
+ "model_text": "toplam tutar bin iki yüz elli lira yetmiş beş kuruş. ödemeyi üç taksitle yapabilirsiniz.",
28
+ "seconds": 5.39,
29
+ "seed": 0
30
+ },
31
+ {
32
+ "file": "04-phone.wav",
33
+ "text": "Bize 0212 555 12 34 numarasından veya destek@ornek.com adresinden ulaşabilirsiniz.",
34
+ "model_text": "bize sıfır iki yüz on iki, beş yüz elli beş, on iki, otuz dört numarasından veya destek et ornek nokta kom adresinden ulaşabilirsiniz.",
35
+ "seconds": 8.17,
36
+ "seed": 0
37
+ },
38
+ {
39
+ "file": "05-cargo.wav",
40
+ "text": "Kargonuz yola çıktı; tahmini teslimat tarihi 9 Ekim 2026, Perşembe.",
41
+ "model_text": "kargonuz yola çıktı; tahmini teslimat tarihi dokuz ekim iki bin yirmi altı, perşembe.",
42
+ "seconds": 5.53,
43
+ "seed": 0
44
+ },
45
+ {
46
+ "file": "06-question.wav",
47
+ "text": "Siparişinizi iptal etmek mi istiyorsunuz, yoksa teslimat adresini mi değiştirmek istiyorsunuz?",
48
+ "model_text": "siparişinizi iptal etmek mi istiyorsunuz, yoksa teslimat adresini mi değiştirmek istiyorsunuz?",
49
+ "seconds": 5.57,
50
+ "seed": 0
51
+ },
52
+ {
53
+ "file": "07-english.wav",
54
+ "text": "Toplantı bağlantısını WhatsApp üzerinden ve e-posta ile gönderdik.",
55
+ "model_text": "toplantı bağlantısını whatsapp üzerinden ve e-posta ile gönderdik.",
56
+ "seconds": 3.63,
57
+ "seed": 0
58
+ },
59
+ {
60
+ "file": "08-long.wav",
61
+ "text": "İstanbul'un iki yakasını birbirine bağlayan köprüler, her gün yüz binlerce kişinin işe, okula ve evine ulaşmasını sağlıyor; ancak yoğun saatlerde trafik, yolculuk süresini kimi zaman iki katına çıkarabiliyor.",
62
+ "model_text": "istanbul'un iki yakasını birbirine bağlayan köprüler, her gün yüz binlerce kişinin işe, okula ve evine ulaşmasını sağlıyor; ancak yoğun saatlerde trafik, yolculuk süresini kimi zaman iki katına çıkarabiliyor.",
63
+ "seconds": 12.42,
64
+ "seed": 0
65
+ }
66
+ ]
67
+ }
vocoder.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a533bfd2e6baa0f2eb2ff955db2fb8f10ceb344ee34a2725e2405f05f1b7e134
3
+ size 7874644
vocoder.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c4be9edd920b86f7caf6c6a0b112af9d16b2ac4af9d0554857bcdcb21996b6a
3
+ size 15742616