netease-youdao / EmotiVoice

EmotiVoice 😊: a Multi-Voice and Prompt-Controlled TTS Engine
Apache License 2.0
6.63k stars 556 forks source link

增加的openaiapi.py怎么用,我是用docker直接运行的,想用api不清楚端口是哪个,求解 #87

Closed zsanjin-p closed 6 months ago

zsanjin-p commented 6 months ago

看到 #60 增加api功能,目前我用docker部署的,目前只知道8501端口,但是api的端口不清楚,问一下怎么弄

zsanjin-p commented 6 months ago

post这个路径后/v1/audio/speech返回的是403,不知道是不是有设置默认的apikey?还是什么原因吗

syq163 commented 6 months ago

Before attempting to use 'v1/audio/speech', please follow the steps outlined in the 'OpenAI-compatible-TTS API' section. Note that 'apikey' is not necessary for this, but it is required if you intend to use 'The EmotiVoice HTTP API'.

zsanjin-p commented 6 months ago

OpenAI

Before attempting to use 'v1/audio/speech', please follow the steps outlined in the 'OpenAI-compatible-TTS API' section. Note that 'apikey' is not necessary for this, but it is required if you intend to use 'The EmotiVoice HTTP API'.

So it means that the Docker installation method cannot be used for APIs, and an API service must be installed and run in a Python environment in order to use the API, right?

syq163 commented 6 months ago

Yes, currently Docker is primarily intended for experiencing the demo page, but we can also include the 'OpenAI-compatible-TTS API' in the Docker image.

lonngxiang commented 1 month ago

Yes, currently Docker is primarily intended for experiencing the demo page, but we can also include the 'OpenAI-compatible-TTS API' in the Docker image.

how to use OpenAI-compatible-TTS API?