The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Reply
 
LinkBack Thread Tools Display Modes
Old 04-05-2007, 04:44 PM   #1
Newbie
 
Join Date: Mar 2007
Posts: 8
SpeechController in C#

Hallo!

Did anybody tried the SpeechController in C#? Everytime I call "app.SpeechController.Speak("test")" I get the following exception.


System.Runtime.Remoting.RemotingException: ByRef value type parameter cannot be null.
at System.Runtime.Remoting.Proxies.RealProxy.Validate ReturnArg(Object arg, Type paramType)
at System.Runtime.Remoting.Proxies.RealProxy.Propagat eOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at StreetDeck.ISpeechController.Speak(String TextToSpeak)
at Project.Modules.MainMenu.ModuleSettings.btnCancel_ OnMouseClick(Int32 x, Int32 y) in ...

A first chance exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll
lschneider is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 04-05-2007, 05:05 PM   #2
Newbie
 
Join Date: Mar 2007
Posts: 8
I forgot something...

The return value for "app.SpeechController.IsVoiceCapable()" is "false". But what makes my client VoiceCapable?

Thank you,
Lars
lschneider is offline   Reply With Quote
Old 04-06-2007, 01:04 PM   #3
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
The Speak command is demonstrated in Example 2 in the building digitalmods tutorial
http://www.mp3car.com/wiki/index.php...for_StreetDeck

I have just verified that it is working.

You might be missing a dependancy or your error could be coming from something else your doing, but programmatically, there is no setup that you have to do to use the Speak command and your are calling it correctly.

You can also call the Microsoft Speech SDK directly. Just download it from here: http://www.microsoft.com/speech/techinfo/apioverview/
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
god_of_cpu is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 02:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics