mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
Update README.md
This commit is contained in:
parent
ded92c96ad
commit
3b1b0843d6
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ List available voices:
|
||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.get("http://localhost:8880/audio/voices")
|
response = requests.get("http://localhost:8880/v1/audio/voices")
|
||||||
voices = response.json()["voices"]
|
voices = response.json()["voices"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ Generate speech:
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
"http://localhost:8880/audio/speech",
|
"http://localhost:8880/v1/audio/speech",
|
||||||
json={
|
json={
|
||||||
"model": "kokoro", # Not used but required for compatibility
|
"model": "kokoro", # Not used but required for compatibility
|
||||||
"input": "Hello world!",
|
"input": "Hello world!",
|
||||||
|
|
Loading…
Add table
Reference in a new issue