diff --git a/articles/ai-services/speech-service/includes/how-to/recognize-speech-results/python.md b/articles/ai-services/speech-service/includes/how-to/recognize-speech-results/python.md index c5f7c7491fb..18035aeacb2 100644 --- a/articles/ai-services/speech-service/includes/how-to/recognize-speech-results/python.md +++ b/articles/ai-services/speech-service/includes/how-to/recognize-speech-results/python.md @@ -30,9 +30,9 @@ This code snippet shows how to get the offset and duration from a `Recognizing` ```python def recognizing_handler(e : speechsdk.SpeechRecognitionEventArgs) : if speechsdk.ResultReason.RecognizingSpeech == e.result.reason and len(e.result.text) > 0 : - print("Recognized: {}".format(result.text)) - print("Offset in Ticks: {}".format(result.offset)) - print("Duration in Ticks: {}".format(result.duration)) + print("Recognized: {}".format(e.result.text)) + print("Offset in Ticks: {}".format(e.result.offset)) + print("Duration in Ticks: {}".format(e.result.duration)) ``` ### Recognized offset and duration