add more typing

This commit is contained in:
rany2
2023-01-05 00:56:01 +02:00
parent efe0cbedde
commit c4c3dc5a13
12 changed files with 129 additions and 117 deletions

View File

@@ -9,7 +9,7 @@ import asyncio
import edge_tts
async def main():
async def main() -> None:
TEXT = "Hello World!"
VOICE = "en-GB-SoniaNeural"
OUTPUT_FILE = "test.mp3"

View File

@@ -11,7 +11,7 @@ import edge_tts
from edge_tts import VoicesManager
async def main():
async def main() -> None:
voices = await VoicesManager.create()
voice = voices.find(Gender="Male", Language="es")
# Also supports Locales