mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
Merge pull request #155 from Krurst/master
Update openai_compatible.py to fix lang_code
This commit is contained in:
commit
af654d59aa
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ async def stream_audio_chunks(
|
||||||
voice=voice_name,
|
voice=voice_name,
|
||||||
speed=request.speed,
|
speed=request.speed,
|
||||||
output_format=request.response_format,
|
output_format=request.response_format,
|
||||||
lang_code=request.lang_code or request.voice[0],
|
lang_code=request.lang_code or settings.default_voice_code or voice_name[0].lower(),
|
||||||
normalization_options=request.normalization_options
|
normalization_options=request.normalization_options
|
||||||
):
|
):
|
||||||
# Check if client is still connected
|
# Check if client is still connected
|
||||||
|
|
Loading…
Add table
Reference in a new issue