Community Center | Not monitored
Tag not monitored by Microsoft.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
VOICES = ['en-US-AndrewNeural','es-US-AlonsoNeural','en-GB-RyanNeural' ]
TEXT = "Hi Ladies and Gentleman"
VOICE = VOICES[0] # Choose a valid index from the VOICES list
OUTPUT_FILE = "test.mp3"
RATE = "-1%" # Decrease the speech rate by 25%
async def amain() -> None:
communicate = edge_tts.Communicate(TEXT, VOICE, rate=RATE)
await communicate.save(OUTPUT_FILE)
loop = asyncio.get_event_loop_policy().get_event_loop()
try:
loop.run_until_complete(amain())
finally:
loop.close()
Tag not monitored by Microsoft.