以下是我从 Microsoft Azure 语音 SDK 文件中进行语音识别的输出。我想知道如何从这个输出中提取“文本”部分而不是完整的。
SpeechRecognitionEventArgs(session_id=e28f6907838640e191f214035d69f5e0, result=SpeechRecognitionResult(result_id=c27fa5b36bcd466f8162ca3c6ce5f935, text="你好早上好,我的名字是Arihant。有什么可以帮助你的吗?" , reason=ResultReason.Recognized))
取消 SpeechRecognitionCanceledEventArgs(session_id=e28f6907838640e191f214035d69f5e0, result=SpeechRecognitionResult(result_id=5681af6a81994a76a11b7e94307c7c2e, text="", reason=ResultReason.Canceled))
关闭 SessionEventArgs(session_id=e28f6907838640e191f214035d69f5e0)