You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,30 @@ habibi-tts_infer-gradio
31
31
32
32
## CLI Usage
33
33
```bash
34
-
# Single test with CLI
35
-
# TODO
34
+
# Default using the Unified model (recommanded)
35
+
habibi-tts_infer-cli \
36
+
--ref_audio "assets/MSA.mp3" \
37
+
--ref_text "كان اللعيب حاضرًا في العديد من الأنشطة والفعاليات المرتبطة بكأس العالم، مما سمح للجماهير بالتفاعل معه والتقاط الصور التذكارية." \
38
+
--gen_text "أهلًا، يبدو أن هناك بعض التعقيدات، لكن لا تقلق، سأرشدك بطريقة سلسة وواضحة خطوة بخطوة."
39
+
40
+
# Assign the dialect ID, rather than inferred from given reference prompt (UNK, by default)
41
+
# (best use matched dialectal content with ID: MSA, SAU, UAE, ALG, IRQ, EGY, IRQ, OMN, TUN, LEV, SDN, LBY)
42
+
habibi-tts_infer-cli --dialect MSA
43
+
44
+
# Alternatively, use `.toml` file to config, see `src/habibi_tts/infer/example.toml`
45
+
habibi-tts_infer-cli -c YOUR_CUSTOM.toml
46
+
47
+
# Check more CLI features with
48
+
habibi-tts_infer-cli --help
36
49
```
37
50
51
+
> [!NOTE]
52
+
> Some dialectal audio samples are provided under `src/habibi_tts/assets`, see the relevant [README.md](https://github.com/SWivid/Habibi-TTS/blob/main/src/habibi_tts/assets/README.md) for usage and more details.
MP3 files are from ElevenLabs voice library, named same as Voice ID, WAV files are from [Habibi benchmark](https://huggingface.co/datasets/SWivid/Habibi).
3
+
1. MP3 files are from ElevenLabs voice library, named same as Voice ID, WAV files are from [Habibi benchmark](https://huggingface.co/datasets/SWivid/Habibi). See the [Habibi paper](https://arxiv.org/abs/2601.13802) for more details.
4
+
2. The terminology does not reflect any official classification for Arabic. Each sample is just for example, only reflects a part of the corresponding ID.
4
5
5
-
### MSA
6
+
7
+
### MSA (Modern Standard Arabic)
6
8
```bash
7
9
# MSA.mp3 (JjTirzdD7T3GMLkwdd3a)
8
10
"كان اللعيب حاضرًا في العديد من الأنشطة والفعاليات المرتبطة بكأس العالم، مما سمح للجماهير بالتفاعل معه والتقاط الصور التذكارية."
9
11
```
10
12
11
-
### SAU
13
+
### SAU (Najdi, Hijazi, Gulf, etc.)
12
14
```bash
13
15
# Najdi.wav (6k_SBA_22_2-seg_410_975-416_518)
14
16
"تكفى طمني انا اليوم ماني بنايم ولا هو بداخل عيني النوم الين اتطمن عليه."
@@ -20,32 +22,50 @@ MP3 files are from ElevenLabs voice library, named same as Voice ID, WAV files a
20
22
"وين تو الناس متى تصحى ومتى تفطر وتغير يبيلك ساعة يعني بالله تروح الشغل الساعة عشره."
21
23
```
22
24
23
-
### UAE
25
+
### UAE (Emirati)
24
26
```bash
25
27
# UAE.wav (13_segment_108)
26
28
"قمنا نشتريها بشكل متكرر أو لما نلقى ستايل يعجبنا وحياناً هذا الستايل ما نحبه."
27
29
```
28
30
29
-
### ALG
31
+
### ALG (Algerian & Algerian Saharan)
30
32
```bash
31
33
# ALG.wav (yCfWAGx6aTw-162)
32
34
"أنيا هكا باغية ناكل هكا أني ن نشوف فيها الحاجة هذيكا."
33
35
```
34
36
35
-
### IRQ
37
+
### IRQ (Mesopotamian & North Mesopotamian)
36
38
```bash
37
39
# IRQ.wav (P9zYhlu5pzw-613)
38
40
"يعني ااا ما نقدر ناخذ وقت أكثر، ااا لأنه شروط كلش يحتاجلها وقت."
39
41
```
40
42
41
-
### EGY
43
+
### EGY (Egyptian, Saidi, etc.)
42
44
```bash
43
45
# EGY.mp3 (IES4nrmZdUBHByLBde0P)
44
46
"ايه الكلام. بقولك ايه. استخدم صوتي في المحادثات. استخدمه هيعجبك اوي."
45
47
```
46
48
47
-
### MAR
49
+
### MAR (Moroccan or Darija)
48
50
```bash
49
51
# MAR.mp3 (OfGMGmhShO8iL9jCkXy8)
50
52
"إذا بغيتي شي صوت باللهجة المغربية للإعلانات ديالك هذا أحسن واحد غادي تلقاه."
0 commit comments