Fixed workflow tts feature audition (#4867)

This commit is contained in:
Charlie.Wei 2024-06-03 00:22:14 +08:00 committed by GitHub
parent 41e536109b
commit d058a234ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class ChatMessageTextApi(Resource):
response = AudioService.transcript_tts(
app_model=app_model,
text=request.form['text'],
voice=request.form['voice'] if request.form.get('voice') else app_model.app_model_config.text_to_speech_dict.get('voice'),
voice=request.form['voice'],
streaming=False
)

View File

@ -47,6 +47,7 @@ const TextToSpeech = ({
{ languageInfo?.example && (
<AudioBtn
value={languageInfo?.example}
voice={voiceItem?.value}
noCache={false}
isAudition={true}
/>