Skip to content

Commit

Permalink
Merge pull request #155 from Krurst/master
Browse files Browse the repository at this point in the history
Update openai_compatible.py to fix lang_code
  • Loading branch information
remsky authored Feb 13, 2025
2 parents 728e18b + f585185 commit af654d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/routers/openai_compatible.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def stream_audio_chunks(
voice=voice_name,
speed=request.speed,
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
):
# Check if client is still connected
Expand Down

0 comments on commit af654d5

Please sign in to comment.