Skip to content

Commit fd631c6

Browse files
committed
Optimizations
1 parent 5435f26 commit fd631c6

27 files changed

Lines changed: 592 additions & 584 deletions

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The Korean voice pack provides full support for native Korean speakers using Edg
7171

7272
### Polish (pl-PL)
7373

74-
Files are generated using [ElevenLabs](https://elevenlabs.io/app/speech-synthesis/text-to-speech) voice synthesis.
74+
Files are generated using [ElevenLabs](https://elevenlabs.io/app/speech-synthesis/text-to-speech) voice synthesis. There are 10k tokens available for free.
7575

7676
Voice: Sarah
7777

@@ -80,48 +80,55 @@ ElevenMultilingual v2.
8080
#### One file at a time
8181

8282
Ubuntu commands to prepare wav file from mp3:
83+
8384
- Normal way:
84-
```
85-
ffmpeg -i ElevenLabs_2025-09-03T16_24_21_Sarah_pre_sp100_s50_sb75_se0_b_m2.mp3 -ar 32000 -ac 1 -sample_fmt s16 engstp.wav
86-
```
85+
86+
```bash
87+
ffmpeg -i ElevenLabs_2025-09-03T16_24_21_Sarah_pre_sp100_s50_sb75_se0_b_m2.mp3 -ar 32000 -ac 1 -sample_fmt s16 engstp.wav
88+
```
8789

8890
- To cut out words added for correct accent (0.5sec from beginning):
89-
```
90-
ffmpeg -ss 0.5 -i ElevenLabs_2025-09-03T16_24_21_Sarah_pre_sp100_s50_sb75_se0_b_m2.mp3 -ar 32000 -ac 1 -sample_fmt s16 engstp.wav
91-
```
91+
92+
```bash
93+
ffmpeg -ss 0.5 -i ElevenLabs_2025-09-03T16_24_21_Sarah_pre_sp100_s50_sb75_se0_b_m2.mp3 -ar 32000 -ac 1 -sample_fmt s16 engstp.wav
94+
```
9295

9396
- Many files at once from the same folder:
94-
```
95-
for f in *.mp3; do
97+
98+
```bash
99+
for f in *.mp3; do
96100
ffmpeg -i "$f" -ar 32000 -ac 1 -sample_fmt s16 "${f%.mp3}.wav"
97-
done
98-
```
101+
done
102+
```
99103

100104
#### Automated way
101105

102-
```
106+
```bash
103107
sudo apt update
104108
sudo apt install libportaudio2 portaudio19-dev libasound-dev -y
105109
pip install elevenlabs python-dotenv
106110
```
107111

108112
If You don't have venv
109-
```
113+
114+
```bash
110115
python3 -m venv .venv
111116
source .venv/bin/activate
112117
```
113118

114119
Optionally add Your languages to array:
115-
```
120+
121+
```bash
116122
languages = [
117123
("voices/pl-PL.csv", "EXAVITQu4vr4xnSDxMaL", "pl"),
118124
# Add other languages here
119125
]
120126
```
121127

122128
And finally run script to generate all the files. Script is smart and skips already generated files to don't use tokens from ElevenLabs.
123-
```
124-
python3 generate-elevenlabs.py
129+
130+
```bash
131+
python3 voice-gen-elevenlabs.py
125132
```
126133

127134
## Voices
@@ -198,4 +205,3 @@ After you have installed SPX, you will also need to [create a Microsoft Azure ac
198205
## Contributing
199206

200207
See [CONTRIBUTING.md](CONTRIBUTING.md)
201-

SOUNDS/pl/SYSTEM/0167.wav

-13.1 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0168.wav

9.8 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0169.wav

-4.9 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0170.wav

11.4 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0171.wav

-8.16 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0172.wav

4.9 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0173.wav

3.27 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0174.wav

6.53 KB
Binary file not shown.

SOUNDS/pl/SYSTEM/0175.wav

8.16 KB
Binary file not shown.

0 commit comments

Comments
 (0)