Skip to content
Discussion options

You must be logged in to vote

Short version: drop lang_code from your request body (or set it to "a"). Passing "lang_code": "en" is what triggers the 500. nginx is not the cause here.

Your log shows the real failure:

kokoro_v1 | Generation failed: ('en', {'a': 'American English', 'b': 'British English', 'e': 'es', 'f': 'fr-fr', 'h': 'hi', 'i': 'it', 'p': 'pt-br', 'j': 'Japanese', 'z': 'Mandarin Chinese'})
... "POST /v1/audio/speech HTTP/1.1" 500 Internal Server Error

lang_code has to be a single letter, one of a b e f h i p j z. There is no "en". Under the hood the kokoro package does this when it builds a pipeline:

lang_code = ALIASES.get(lang_code, lang_code)
assert lang_code in LANG_CODES, (lang_code, LANG_CODES)

A…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by remsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants