mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
Fixed workflow tts feature audition (#4867)
This commit is contained in:
parent
41e536109b
commit
d058a234ba
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ const TextToSpeech = ({
|
|||
{ languageInfo?.example && (
|
||||
<AudioBtn
|
||||
value={languageInfo?.example}
|
||||
voice={voiceItem?.value}
|
||||
noCache={false}
|
||||
isAudition={true}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user