mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
11 lines
307 B
Python
11 lines
307 B
Python
import asyncio
|
|
import edge_tts
|
|
|
|
async def list_voices():
|
|
voices = await edge_tts.VoicesManager.create()
|
|
en_gb_voices = voices.find(Language="en", Locale="en-GB")
|
|
for v in en_gb_voices:
|
|
print(f"{v['ShortName']} ({v['Gender']})")
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(list_voices())
|