【发布时间】:2021-06-30 06:26:25
【问题描述】:
以下是我从 Microsoft Azure 语音 SDK 文件中进行语音识别的输出。我想知道如何从这个输出中只提取“文本”部分而不是完整的。
SpeechRecognitionEventArgs(session_id=e28f6907838640e191f214035d69f5e0, result=SpeechRecognitionResult(result_id=c27fa5b36bcd466f8162ca3c6ce5f935, text="你好早上好,我叫 Arihant。有什么可以帮助你的吗?", reason= )
CANCELED SpeechRecognitionCanceledEventArgs(session_id=e28f6907838640e191f214035d69f5e0, result=SpeechRecognitionResult(result_id=5681af6a81994a76a11b7e94307c7c2e, text="", reason=ResultReason.Canceled))
关闭 SessionEventArgs(session_id=e28f6907838640e191f214035d69f5e0)
【问题讨论】:
-
这个输出是怎么产生的? SDK给你这个字符串?或者你是从一个对象输出它?
-
你能分享一下你的sn-p吗?
标签: python azure nlp speech-recognition azure-speech