Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Closed
zsanjin-p opened this issue Dec 31, 2023 · 6 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?

@xushilundao
Copy link

解析配置文件这个逻辑是代码处理的,所以如果不知道后台对配置文件的处理,我们根本不知道key是该配还是不该配。所以还请作者如果不想开源代码,给出详细的文档解释或者打出日志供调试,而不是一句”你需要有网络开放经验“,一句糊弄过去。

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

No branches or pull requests

4 participants