EmotiVoice icon indicating copy to clipboard operation
EmotiVoice copied to clipboard

TTS API Support?

Open xxy012 opened this issue 1 year ago • 6 comments

It's a great project! Is there any plan to have a support API interface?

xxy012 avatar Nov 14 '23 02:11 xxy012

Thank you for your suggestion. Could you please specify the type of API? Are you referring to a web API, a Python API, or something else?

syq163 avatar Nov 15 '23 02:11 syq163

python api is enough like the demo, I think we can use it like a simple api

e = EmotiVoice()
e.generate_tts(“你好”, voice_id=200)
e.save("a.mp3")

yihong0618 avatar Nov 15 '23 02:11 yihong0618

OK, got it!

syq163 avatar Nov 15 '23 06:11 syq163

如何使用JSON api调用呢?

trainliang avatar Nov 16 '23 01:11 trainliang

python api is enough like the demo, I think we can use it like a simple api

e = EmotiVoice()
e.generate_tts(“你好”, voice_id=200)
e.save("a.mp3")

I think this API format is very convenient to use, but can the current version be used like this? I tried creating a new script to try this, but EmotiVoice() seems to have not been found.

mp075496706 avatar Nov 24 '23 02:11 mp075496706

Apologies, EmotiVoice currently does not have a Python API, but we are considering its inclusion in a future version. Additionally, we are actively developing an HTTP API to facilitate easy access without the need for environment setup.

syq163 avatar Nov 24 '23 03:11 syq163