Spaces:
Running
Running
Update generate_audio_edgetts.py
Browse files
generate_audio_edgetts.py
CHANGED
@@ -81,10 +81,3 @@ class EdgeTTSGenerator:
|
|
81 |
self.save_audio(audio_data)
|
82 |
return self.output_audio_path
|
83 |
|
84 |
-
# Run the audio generation asynchronously
|
85 |
-
async def main():
|
86 |
-
generator = TTSGenerator("path/to/transcript.pkl", "output_audio.mp3")
|
87 |
-
await generator.generate_audio()
|
88 |
-
|
89 |
-
# Run the main function
|
90 |
-
await main()
|
|
|
81 |
self.save_audio(audio_data)
|
82 |
return self.output_audio_path
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|