Other tts solutions

This commit is contained in:
2026-05-17 17:27:02 +02:00
parent 3fd400af8c
commit 79d78a32a1
3 changed files with 18 additions and 0 deletions

View File

@ -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())

BIN
edge-tts/output.mp3 Normal file

Binary file not shown.

8
pyttsx3/pyttsx3_first.py Normal file
View File

@ -0,0 +1,8 @@
#pip install pyttsx3
import pyttsx3
engine = pyttsx3.init()
engine.setProperty('rate', 150) # sebesség
engine.say("Hello World")
engine.runAndWait()