Skip to content

Commit 3d83313

Browse files
authored
Fixed python code
Added missing "e." in front of "result".
1 parent 9cc44af commit 3d83313

File tree

1 file changed

+3
-3
lines changed
  • articles/ai-services/speech-service/includes/how-to/recognize-speech-results

1 file changed

+3
-3
lines changed

articles/ai-services/speech-service/includes/how-to/recognize-speech-results/python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ This code snippet shows how to get the offset and duration from a `Recognizing`
3030
```python
3131
def recognizing_handler(e : speechsdk.SpeechRecognitionEventArgs) :
3232
if speechsdk.ResultReason.RecognizingSpeech == e.result.reason and len(e.result.text) > 0 :
33-
print("Recognized: {}".format(result.text))
34-
print("Offset in Ticks: {}".format(result.offset))
35-
print("Duration in Ticks: {}".format(result.duration))
33+
print("Recognized: {}".format(e.result.text))
34+
print("Offset in Ticks: {}".format(e.result.offset))
35+
print("Duration in Ticks: {}".format(e.result.duration))
3636
```
3737

3838
### Recognized offset and duration

0 commit comments

Comments
 (0)