rany2 / edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
https://pypi.org/project/edge-tts/
GNU General Public License v3.0
4.24k stars 447 forks source link

add voice-style support. #135

Closed dioxide closed 10 months ago

dioxide commented 10 months ago

Is it possible to add "voice-style" support ?

For example: Voice: zh-CN-YunxiNeural Styles: ['narration-relaxed', 'embarrassed', 'fearful', 'cheerful', 'disgruntled', 'serious', #'angry', 'sad', 'depressed', 'chat', 'assistant', 'newscast']

Maybe in parameter like this: edge-playback --style= newscast --voice zh-CN-YunxiNeural --text "Hello!"

rany2 commented 10 months ago

Setting voice-style is not possible anymore. Previously this package had full feature parity with Azure Cognitive Services but now the server refuses to generate audio if you're using features/voices/etc not directly available from the Edge browser. See https://github.com/rany2/edge-tts#custom-ssml