Skip to content

Commit 0cd9c8f

Browse files
committed
fix: fix the defect of multiple audio display errors
--bug=1050737 --user=王孝刚 【应用编排】-用两个组件分别生成两段语音,在MK演示中无法播放两段语音 https://www.tapd.cn/57709429/s/1635779
1 parent 24b77e2 commit 0cd9c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/text_to_speech_step_node/impl/base_text_to_speech_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def execute(self, tts_model_id, chat_id,
5757
}
5858
file_url = FileSerializer(data={'file': file, 'meta': meta}).upload()
5959
# 拼接一个audio标签的src属性
60-
audio_label = f'<audio src="{file_url}" controls style = "width: 300px; height: 43px" class ="border-r-4"/>'
60+
audio_label = f'<audio src="{file_url}" controls style = "width: 300px; height: 43px"></audio>'
6161
return NodeResult({'answer': audio_label, 'result': audio_label}, {})
6262

6363
def get_details(self, index: int, **kwargs):

0 commit comments

Comments
 (0)