File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
articles/ai-services/speech-service/includes/how-to/recognize-speech-results Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ This code snippet shows how to get the offset and duration from a `Recognizing`
30
30
``` python
31
31
def recognizing_handler (e : speechsdk.SpeechRecognitionEventArgs) :
32
32
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))
36
36
```
37
37
38
38
### Recognized offset and duration
You can’t perform that action at this time.
0 commit comments