fix: Voice to text, text to voice form cannot obtain data after collecting nodes (#3742)
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled

This commit is contained in:
shaohuzhang1 2025-07-25 11:44:51 +08:00 committed by GitHub
parent ceea85e2d8
commit 0651f3d68c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class BaseSpeechToTextNode(ISpeechToTextNode):
def save_context(self, details, workflow_manage):
self.context['answer'] = details.get('answer')
self.context['result'] = details.get('answer')
if self.node_params.get('is_result', False):
self.answer_text = details.get('answer')

View File

@ -37,6 +37,7 @@ def bytes_to_uploaded_file(file_bytes, file_name="generated_audio.mp3"):
class BaseTextToSpeechNode(ITextToSpeechNode):
def save_context(self, details, workflow_manage):
self.context['answer'] = details.get('answer')
self.context['result'] = details.get('result')
if self.node_params.get('is_result', False):
self.answer_text = details.get('answer')
@ -73,4 +74,5 @@ class BaseTextToSpeechNode(ITextToSpeechNode):
'content': self.context.get('content'),
'err_message': self.err_message,
'answer': self.context.get('answer'),
'result': self.context.get('result')
}