Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: SpVoice Class Not Registered error message at runtime


This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Jan 16, 2016 7:40 PM Last Post By: Trevor Powell
Trevor Powell

Posts: 4
Registered: 8/31/02
SpVoice Class Not Registered error message at runtime  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 14, 2016 5:35 PM
In Seattle, I imported the Microsoft Speech Object Library 5.4

Using the TSpVoice component I try to call spVoice.speak and get Class Not Registered message

I can run an app (32 bit previously developed with D6) on that same computer which calls, spVoice and it works correctly

I can take the Seattle app and run it on other computers (Win7 & Win 10) and it runs perfectly

Why does it give a Class Not registered error only on this computer?

It is built with a 32 bit target platform (same as the D6 app).

The computer is running Windows 10 Pro 64 bit O/S

I am not able to understand what needs to be registered. Or how. Frankly I just down understand the error message. The app can return information about available voices, gender, names etc, it just cannot speak any of them

Thanks for any advice
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: SpVoice Class Not Registered error message at runtime
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 15, 2016 11:48 AM   in response to: Trevor Powell in response to: Trevor Powell
Trevor wrote:

Why does it give a Class Not registered error only on this computer?

Hard to say. Try using SysInternals Process Monitor (https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx)
to watch how COM searches the Registry for the SpVoice registration when
running your app versus the D6 app.

I am not able to understand what needs to be registered. Or how.
Frankly I just down understand the error message. The app can return
information about available voices, gender, names etc, it just cannot
speak any of them

That is a different issue then. SpVoice itself is working fine, the problem
is likely with the particular Voice that you are trying to speak with. Does
your D6 app configure SpVoice to use the same Voice that your Seattle app
is trying to use? Sounds like SpVoice.Speak() is not able to instantiate
another COM object for its internal use when speaking.

--
Remy Lebeau (TeamB)
Trevor Powell

Posts: 4
Registered: 8/31/02
Re: SpVoice Class Not Registered error message at runtime  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2016 7:40 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Trevor wrote:

Why does it give a Class Not registered error only on this computer?

Hard to say. Try using SysInternals Process Monitor (https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx)
to watch how COM searches the Registry for the SpVoice registration when
running your app versus the D6 app.

I am not able to understand what needs to be registered. Or how.
Frankly I just down understand the error message. The app can return
information about available voices, gender, names etc, it just cannot
speak any of them

That is a different issue then. SpVoice itself is working fine, the problem
is likely with the particular Voice that you are trying to speak with. Does
your D6 app configure SpVoice to use the same Voice that your Seattle app
is trying to use? Sounds like SpVoice.Speak() is not able to instantiate
another COM object for its internal use when speaking.

--
Remy Lebeau (TeamB)

Thank you Remy
I have had some small progress. I uninstalled MS Speech SDK 5.1 and then after not being able to find the SAPI 5.4 SDK, nor the SAPI 5.4 Redistributables, I installed MS Speech Platform 11.
Now I no longer get the Class Not Registered error, but I only have two voices:
Microsoft Dave Desktop
Microsoft Zira Desktop
They both play the exact same voice (both male)

I note that MS Speech Platform 11 installs in a different Key in the HKLM Registry ('Software > Microsoft > Speech Server' > v11.0) whereas the default voices are in Key: 'Software > Microsoft > Speech'.

So I figure if I can just install the SAPI 5.4 Merge Modules or the SAPI 5.4 SDK, I'll have resolved my issue.

HOWEVER: No matter how much I have tried for the past two days, I simply cannot find how to download the SAPI 5.4 SDK. I can find plenty of information, documentation, how to install, but not the actual download.

One suggestion in a thread was: "Microsoft Speech SDK 5.4 or SAPI 5.4 is included in the "Windows SDK for Windows 7 and .NET Framework 4" package", so I downloaded and installed that, but that did not appear to be accurate advice.

Unless somebody knows exactly where this is, please don't just suggest go to the MSDN web site or do a Google search (!)

Thanks for any help anyone can offer.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02