Asked by:
Class not registered Exception while initializing a new instance of SpeechRecognizer Class

Question
-
Hi,
in my Windows 8.1 Store App with HTML/Javascript I want to use Bing Speech Recognition Control.
But when I call the contructor of Bing.Speech.Recognizer Class with the language and the authorization Parameters a WinRT "Class not registered" error occurs.What could be the reason for this problem?
I am using Visual Studio 2013.4 by the way.
Thanks in advance.
- Edited by Forbes14 Thursday, December 11, 2014 1:07 PM
Thursday, December 11, 2014 10:42 AM
All replies
-
You need to follow all the steps here:
https://visualstudiogallery.msdn.microsoft.com/521cf616-a9a8-4d99-b5d9-92b539d9df82
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)Friday, December 12, 2014 7:10 PMModerator -
Hi Jeff,
thank you very much for your answer.
I am afraid, I followed all these steps.
The error occurs when I want to initialize a new Instance of SpeechRecognizer (in this example, in the last line):
// Apply credentials from the Windows Azure Data Marketplace.
var credentials = new Bing.Speech.SpeechAuthorizationParameters();
credentials.clientId = "<YOUR CLIENT ID>";
credentials.clientSecret = "<YOUR CLIENT SECRET>";// Initialize the speech recognizer.
var SR = new Bing.Speech.SpeechRecognizer("en-US", credentials);Even in the Voice Translator Sample the same error occurs, at the same line.
Could it be a Visual-Studio problem?Monday, December 15, 2014 12:02 PM -
It sounds to me like you did not download or the Bing Speech component did not succeed.
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)Tuesday, December 16, 2014 7:38 PMModerator -
I have found the reason for this problem.
It was the update 4 for Visual Studio.
A complete reinstall (without update 4) helped.Thursday, January 22, 2015 8:29 AM -
Wait, you're saying Update 4 for Visual Studio broke this? I'm having the same problem.Tuesday, March 10, 2015 7:37 PM
-
I'm having the same on Windows 10 10061. Investigating...
Yves Dolce
Thursday, April 23, 2015 10:11 PM