I have installed the x86 SDK and added the Microsoft.Speech.dll to my project. The project is set to x86.
When trying to create a instance of SpeechSynthesizer
I get
Retrieving the COM class factory for component with CLSID {D941651C-44E6-4C17-BADF-C36826FC3424} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
What more can cause those then wrong target platform?
I resolved these issues a few minutes ago:
-Download and using Microsoft Speech SDK 32 bit (By this way you can use in both platforms)
And the most important is to install these files :
-In Microsoft Speech SDK:
-In Microsoft Speech Platform - Runtime Languages:
That done.