Merge pull request #155 from Krurst/master

Update openai_compatible.py to fix lang_code
This commit is contained in:
remsky 2025-02-12 23:32:24 -07:00 committed by GitHub
commit af654d59aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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