Skip to content

Commit 9a02830

Browse files
authored
Update README.md
1 parent 79251a6 commit 9a02830

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,15 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \
8686

8787
### Speech Synthesis
8888
```bash
89-
curl -X POST "http://localhost:8000/v1/audio/speech" \
90-
-H "Content-Type: application/json" \
91-
-H "Authorization: Bearer YOUR_KEY" \
92-
-d '{
93-
"model": "melotts_zh-cn",
94-
"input": "Hello world!",
95-
"voice": "alloy"
96-
}'
89+
curl -X POST "http://localhost:8001/v1/audio/speech" \
90+
-H "Content-Type: application/json" \
91+
-H "Authorization: Bearer YOUR_KEY" \
92+
-d '{
93+
"model": "melotts_zh-cn",
94+
"input": "Hello world!",
95+
"voice": "alloy"
96+
}' \
97+
--output output.mp3
9798
```
9899

99100
## Required Libraries:

0 commit comments

Comments
 (0)