Merge pull request #2 from nnn112358/dev

Fixes in  README.md,requirements.txt
This commit is contained in:
Abandon-ht
2025-04-16 10:37:17 +08:00
committed by GitHub
2 changed files with 12 additions and 10 deletions
+10 -9
View File
@@ -12,7 +12,7 @@ pip install -r requirements.txt
3. Start the server:
```bash
python main.py
python3 api_server.py
```
## Supported Endpoints
@@ -86,14 +86,15 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \
### Speech Synthesis
```bash
curl -X POST "http://localhost:8000/v1/audio/speech" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"model": "melotts",
"input": "Hello world!",
"voice": "alloy"
}'
curl -X POST "http://localhost:8001/v1/audio/speech" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"model": "melotts_zh-cn",
"input": "Hello world!",
"voice": "alloy"
}' \
--output output.mp3
```
## Required Libraries:
+2 -1
View File
@@ -5,4 +5,5 @@ aiohttp
pydub
numpy
python-multipart
uvicorn
uvicorn
tiktoken