question

EduardoGomez-1870 avatar image
0 Votes"
EduardoGomez-1870 asked ·

dictation button problems

Hello

I am getting a weird error, when I press the button again, to stop the recorder. I was following the Microsoft sample code.
This is the error I am getting: The text associated with this error code could not be found

This is the code that I have

and this is happening, when I click the button again.

link text

I also want to keep what I have written


if someone can help me, I would appreciate it

windows-uwp
· 17
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you following the code from Scenario_ContinuousDictation.xaml.cs in SpeechRecognitionAndSynthesis official sample? If it is, by checking this official sample, before stoping the recorder, it adds the detection of speechRecognizer state. If its state is not equal to Idle, you can use StopAsunc() to stop it. But if its state is equal to Idle which indicates that speech recognition is not active and the speech recognizer is not capturing (listening for) audio input, if you still use StopAsync() to stop it, it will throw the exception. First, you can check if this error is caused by this. Then if you still receive this error, can you provide a simple sample that can be reproduced to test? In addition, I'm confused about this sentence "I also want to keep what I have written", what does it mean?





0 Votes 0 ·

It meant that I want to concatenate what I have, with what I spoke

0 Votes 0 ·

but I dont understand, I am disposing the speechSyntetizer and turning the button of, it shouldn't not do throw that error

0 Votes 0 ·

Did you receive the error when you triggered the ContinuousRecognitionSession_CompletedAsync() method and stopped the speechRecognizer? If it is, as I explained, the speech recognition is not active and the speech recognizer is not capturing audio input, if you still use StopAsync() to stop it, it will throw the exception. If not, can you show more details about which behavior caused this error? And can you provide a simple sample that can be reproduced?

0 Votes 0 ·
Show more comments

0 Answers