Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zsanjin-p opened this issue Dec 31, 2023 · 5 comments

Comments

@zsanjin-p
Copy link

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

@zsanjin-p
Copy link
Author

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

@syq163
Copy link
Collaborator

syq163 commented Jan 1, 2024

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
Copy link
Author

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
Copy link
Collaborator

syq163 commented Jan 2, 2024

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants