|
Any sample C# speech recognition source code with speech input through fourier transforms anywhere? Thanks all.
|
|
|
|
|
Many, many moons ago on http://research.microsoft.com[^] the Speech SDK was posted with some COM controls that made interaction with TTS and STT engines easy. Much of this went into Microsoft Agent.
Recently, Microsoft created its Speach Server[^] which uses the newer Speech SDK and technology for voice technologies (their answer to VoiceML, I guess). Unfortunately, it doesn't seem to leverage the same component-based technology that previous versions did so that you could use it with, say, a Windows Forms application. You could, however, use the older, stable versions (4.0 I think? ...it's been a while since I've used the Speech SDK in anything) to create RCWs (runtime-callable wrappers) from the COM components and use that.
The Microsoft Speech API is pretty good and has a much smaller footprint than IBM's ViaVoice and the (not extinct?) DragonDictate, plus it can easily be bundled with applications and, IIRC, is royalty free (it was, after all, free to download and develop on anyway).
There was a lot of sample code with previous versions, though it was in VB and C++. But since you'd be creating RCWs, the VB code would be close to what you need, which is just instantiating the components, calling methods, and getting/setting properties in much the same way the VB samples would. There was also pretty decent documentation with it.
See http://research.microsoft.com/srg/[^] for more information and downloads.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Maybe I should write up a little article on wrapping the Speech API to be used in .NET as I did for the Imagine Cup project?
- Nick Parker My Blog | My Articles
|
|
|
|
|
Sounds like a good idea.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I should probably do it up after our FAQ article is done. Once graduation rolls around I don't think it will take too long for us to put together the article (FAQ article).
- Nick Parker My Blog | My Articles
|
|
|
|
|
|
Hello,
I want to know more about Custom-Proxies
Can you please give me a detail explanation of Custom-Proxies
and a brief implementation example.
Thank You.
|
|
|
|
|
See Extending RealProxy[^] in the .NET Framework SDK for more information.
Basically, on a ContextBoundObject you can attribute your class with aProxyAttribute -derivative to specify the type of a RealProxy derivative class that will proxy calls (even creation calls a la new ) to your object.
For instance, if you wanted to implement a singleton pattern in your application using a ContextBoundObject , you would override RealProxy.Invoke and determine if the message is an IConstructionCallMethod and either create the single instance of the class or return an existing instance (basically).
To gain more in-depth knowledge, I suggest you read "Microsoft .NET Remoting" from MS Press[^] or "Advanced .NET Remoting" from Ingo Rammer[^].
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Bonjour,
Windows NT/2000/Xp. My service is running but i want to make some actions when i move mouse in CTRL-ALT-DEL windows or when i hit a key on my keyboard.
How to do this ?
Please help.
Thanks.
|
|
|
|
|
phil63 wrote:
My service is running but i want to make some actions when i move mouse in CTRL-ALT-DEL windows or when i hit a key on my keyboard.
You want to to do something when Windows is displaying the login box? What do you mean by "OR when I kit a key"? When do you want this to happen? What do you want to happen?
Your service cannot interact with the keyboard and mouse since it is running on a different desktop, not the one your seeing on the screen.
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
Your service cannot interact with the keyboard and mouse since it is running on a different desktop, not the one your seeing on the screen.
Unless it's marked to interact with the desktop, in which case it either uses the desktop session (creates it if necessary) of the specified login (if the account has "Log in locally" rights), or the current desktop if logged in as LocalSystem (SYSTEM).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hye
"Your service cannot interact with the keyboard and mouse since it is running on a different desktop, not the one your seeing on the screen."
but this desktop may have a name because the system (gina ?) can intercept CTRL+ALT+DEL sequence and then display the winlogon dialog box.
And i have already seen, at work, a service witch do that and i know (developper said) it is without hook .
thanks
|
|
|
|
|
You're going to have to do it with the hook, unless you want to write your own GINA.DLL...
You could always ask the developer you know how he did it...
RageInTheMachine9532
|
|
|
|
|
"You could always ask the developer you know how he did it..."
He says that this tip is a little bit 'sensitive' so ...
But the hooks remain good idea i mean.
Thanks
|
|
|
|
|
You can use a system hook, although I warn you that poorly implemented code can lead to massive performance degradation.
See Using Hooks from C#[^] or any of the other articles[^] on using system hooks from .NET.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
In C++ you can use __asm{ -blocks for inline assembly language.
Is there a way to include inline IL assembly language in C# code? I can't find anything about asm- or ilasm-blocks in the documentation.
|
|
|
|
|
|
Nishant S wrote:
http://www.gotdotnet.com/team/csharp/learn/faq/
Clickety[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event[^].
|
|
|
|
|
C# does not yet support inline assembly code.
RageInTheMachine9532
|
|
|
|
|
Just a thought.... Does Managed C++ support it?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event[^].
|
|
|
|
|
Sure, it supports inline assembly, but NOT inline IL. I wasn't able to find anything on it...
RageInTheMachine9532
|
|
|
|
|
Why would you wan't to write IL code inside C# code? It gets translatated to IL, so I really don't see a benefit from doing this ...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hand optimization is the only reason I can think of...
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
Hand optimization is the only reason I can think of...
Without proper knowledge of the JIT, you can never be sure if your hand-optimized IL will be actually faster than the "compiled" one. Probably will be, but you can't be 100% sure...
I see dumb people
|
|
|
|
|
Don't have to tell me that. Writing IL by hand isn't the easiest thing in world to do since you have to keep in mind that the instructions don't translate one for one with machine instructions.
But, the only way to find out is to try...
RageInTheMachine9532
|
|
|
|