Other tts solutions
This commit is contained in:
10
edge-tts/edge-tts_first.py
Normal file
10
edge-tts/edge-tts_first.py
Normal 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
BIN
edge-tts/output.mp3
Normal file
Binary file not shown.
8
pyttsx3/pyttsx3_first.py
Normal file
8
pyttsx3/pyttsx3_first.py
Normal 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()
|
||||||
Reference in New Issue
Block a user