Add tts document&fix bug (#2156)

Co-authored-by: luowei <glpat-EjySCyNjWiLqAED-YmwM>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Yeuoly <45712896+Yeuoly@users.noreply.github.com>
This commit is contained in:
Charlie.Wei 2024-01-24 23:04:14 +08:00 committed by GitHub
commit fd5c45ae10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 106 additions and 7 deletions

View file

@ -56,7 +56,6 @@ class AudioService:
raise ProviderNotSupportTextToSpeechServiceError()
try:
audio_response = model_instance.invoke_tts(content_text=text.strip(), user=end_user, streaming=streaming)
return audio_response
return model_instance.invoke_tts(content_text=text.strip(), user=end_user, streaming=streaming)
except Exception as e:
raise e