Category : speech

I have this code: ref class SimSpeak { public: int id = 0; System::String^ speech; static SpeechSynthesizer^ speechSynthesizer = gcnew SpeechSynthesizer(); static cli::array<InstalledVoice^>^ voiceCollection = gcnew cli::array<InstalledVoice^>(10); static int idcounter = 0; SimSpeak(System::String^ ispeech) : speech(ispeech) { id = idcounter; idcounter++; }; void get_voices() { voiceCollection = speechSynthesizer->GetInstalledVoices(); } void speak() { speechSynthesizer->Speak(speech); } }; ..

Read more

How can I give feedback to Windows 10 SpeechRecognitionEngine about the delivered result. The SpeechRecognized event provides a number of possible understood alternatives in SpeechRecognizedEventArgs and I would like to tell it which is "the right one" by a c#-Program. Something like: private void OnSpeechInput(object sender, SpeechRecognizedEventArgs e) { int i = … e.Result.Alternates[i].Accept(); … ..

Read more