Spaces:
Sleeping
Sleeping
Update generate_audio_edgetts.py
Browse files
generate_audio_edgetts.py
CHANGED
|
@@ -46,7 +46,7 @@ class EdgeTTSGenerator:
|
|
| 46 |
Returns:
|
| 47 |
AudioSegment: Generated audio segment.
|
| 48 |
"""
|
| 49 |
-
communicator = edge_tts.Communicate(text, voice_name
|
| 50 |
audio_bytes = b""
|
| 51 |
async for chunk in communicator.stream():
|
| 52 |
audio_bytes += chunk
|
|
|
|
| 46 |
Returns:
|
| 47 |
AudioSegment: Generated audio segment.
|
| 48 |
"""
|
| 49 |
+
communicator = edge_tts.Communicate(text, voice_name)
|
| 50 |
audio_bytes = b""
|
| 51 |
async for chunk in communicator.stream():
|
| 52 |
audio_bytes += chunk
|