rspeechpy
0.1
เอ็นจิ้นข้อความพูดด้วยเสียงที่เป็นจริงได้รับการพัฒนาทั้งหมดใน Python และขับเคลื่อนโดย Microsoft Azure เป็นแพ็คเกจ Python
pip3 install rspeechpypip install rspeechpy import asyncio
from rspeechpy import Engine
# Declaration
speech = Engine ()
async def example ():
names = await speech . giveVoicesList ()
for name in names :
print ( name [ 'FriendlyName' ]) # Describe voice's name & language.
print ( name [ 'ShortName' ]) # Return "key" to use that voice.
# Running
app = asyncio . get_event_loop ()
app . run_until_complete ( example ()) import asyncio
from rspeechpy import Engine
# Declaration
speech = Engine ()
async def example ():
await speech . setVoice ( 'es-ES-ElviraNeural' )
await speech . setRate ( 5 )
await speech . setPitch ( 5 )
await speech . setVolume ( 5 )
text = "Hola esto es una prueba de texto a voz"
await speech . synthesize ( text , 'audio.mp3' )
# Running
app = asyncio . get_event_loop ()
app . run_until_complete ( example ())เอกสารเพิ่มเติม
| พารามิเตอร์ | พิมพ์ | คำอธิบาย |
|---|---|---|
api_key | string | ไม่ต้องการ |
ใบอนุญาต MIT