Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- text_to_speech.py +2 -2
text_to_speech.py
CHANGED
|
@@ -441,8 +441,8 @@ def process_voice_config(voice_config):
|
|
| 441 |
edge_female_count = 0
|
| 442 |
|
| 443 |
# Pitch variations for multiple Edge TTS speakers of same gender
|
| 444 |
-
male_pitches = [0, -
|
| 445 |
-
female_pitches = [0,
|
| 446 |
|
| 447 |
for speaker_id, config in voice_config.items():
|
| 448 |
# Convert string speaker_id to int if needed
|
|
|
|
| 441 |
edge_female_count = 0
|
| 442 |
|
| 443 |
# Pitch variations for multiple Edge TTS speakers of same gender
|
| 444 |
+
male_pitches = [0, -50, 50] # Default, deeper, higher
|
| 445 |
+
female_pitches = [0, 45, -45] # Default, higher, deeper
|
| 446 |
|
| 447 |
for speaker_id, config in voice_config.items():
|
| 448 |
# Convert string speaker_id to int if needed
|