diff --git a/edge-tts/edge-tts_first.py b/edge-tts/edge-tts_first.py new file mode 100644 index 0000000..0868376 --- /dev/null +++ b/edge-tts/edge-tts_first.py @@ -0,0 +1,10 @@ +#pip install edge-tts + +import asyncio +import edge_tts + +async def speak(): + tts = edge_tts.Communicate("Hello World", voice="en-US-JennyNeural") + await tts.save("output.mp3") + +asyncio.run(speak()) \ No newline at end of file diff --git a/edge-tts/output.mp3 b/edge-tts/output.mp3 new file mode 100644 index 0000000..2ce2f12 Binary files /dev/null and b/edge-tts/output.mp3 differ diff --git a/pyttsx3/pyttsx3_first.py b/pyttsx3/pyttsx3_first.py new file mode 100644 index 0000000..6cb0464 --- /dev/null +++ b/pyttsx3/pyttsx3_first.py @@ -0,0 +1,8 @@ + +#pip install pyttsx3 +import pyttsx3 + +engine = pyttsx3.init() +engine.setProperty('rate', 150) # sebesség +engine.say("Hello World") +engine.runAndWait() \ No newline at end of file