- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to remove all UI code from the C++ Sample of Voice Recognition, my code was compiled fine, but it crasthed when I run it.
I used it as below
g_session = PXCSession::CreateInstance(); if (!g_session) { MessageBoxW(0, L"Failed to create an SDK session", L"Voice Recognition", MB_ICONEXCLAMATION | MB_OK); return 1; } // 1. Create Voice Recognition Start(nullptr);
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you add more code that you used, because it seems incomplete. Have you tried run voice recognition with samples from documentation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to use C# instead of C++, it's as simple as:
ICamera cam = Camera.Create(); cam.Speech.SpeechRecognized += (s, a) => { Console.WriteLine("-> " + a.Sentence); }; cam.Speech.EnableRecognition();
Download the nuget using: Install-Package SharpSenses.RealSense
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The C# code is what I expected, it is cute. Unfortunately my other codes are C++. I think C++ speech recognition code is not complicated. since I just need only Command not Dictionary.
I uploaded my modified voice_recognition.cpp and .h code. It is just tried to add predefined two commands "one", "two" inside. All GUI is disabled. I debugged and run it fine but in the end of the execution, it crashed. There may have something wrong in configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I put voice recognition to a new thread and added stop detection my voice code worked. However I can not capture the Command "one" that was set. The SPEECH_UNRECOGNIABLE and VOLUME_LOW were displayed.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page