Replies: 5 comments
-
|
debug storage |
Beta Was this translation helpful? Give feedback.
-
|
debug system |
Beta Was this translation helpful? Give feedback.
-
|
debug session pools |
Beta Was this translation helpful? Give feedback.
-
|
When I call it via api called via postman |
Beta Was this translation helpful? Give feedback.
-
|
Short version: drop Your log shows the real failure:
lang_code = ALIASES.get(lang_code, lang_code)
assert lang_code in LANG_CODES, (lang_code, LANG_CODES)
The field is optional. When you leave it out, the server uses the first letter of the voice name, so Fix, just remove the line: {
"model": "kokoro",
"input": "hello world",
"voice": "af_heart",
"response_format": "mp3",
"speed": 1,
"stream": false
}Or if you want to be explicit, On the other two questions: Storage: for normal API use you do not need a host volume. The audio comes back in the HTTP response, and nginx: it is not involved in the 500. That error happens inside the app before any of your proxy settings matter. Two notes if you do streaming later though. You are gzipping The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I set up a docker compose
kokoro runs behind nginx:
As I have a smaller digital ocean droplet it works in the web interface but when I hit the api I cannot manage to download files.
In the web interface the download of mp3 is not working but wav works. I also see a javascript error in the console:
Can you help me and check if the nginx configuration is correctly set up for kokoro or if I missed something?
I am also wondering where the created audio files are stored and if I should link from the host system in docker compose (volumes)
Beta Was this translation helpful? Give feedback.
All reactions