15,917,538 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by TheRorooo (Top 5 by date)
TheRorooo
19-May-19 17:23pm
View
Well, thanks a lot. I have something that works and I can experiment with now. The current approach with spaces works, but I might try using the hypothesized text after releasing the push to talk button once I get to implementing that. The biggest issue with the current approach really is that you can't take a break at all when naming those things and I don't think there is any way to customize the time it waits.
Anyway, I am new to this website, but very impressed so far. Was searching for a solution for a long time and wasn't able to get an answer on Stack Overflow. But then I decided to try asking here after I stumbled upon your speech recognition guide which helped me discover the .Append function :)
TheRorooo
19-May-19 17:11pm
View
Thanks for the suggestion. Including an empty string in Choices threw an error, but including a space seems to actually work. I am not very familiar with the BabbleTimeout property although I tried messing with I earlier. If I understand correctly that's the time the recognizer waits after it doesn't hear anything before it finishes recognition. Does a zero value make it wait infinitely in this case? But still maybe for my push to talk usage the approach, I suggested earlier might be better because this way the speech recognizer doesn't stop when I make a break when naming those things. Thanks either way.
TheRorooo
19-May-19 16:47pm
View
Works pretty well so far. The only thing that would be useful in some situations for me and can't find a way to do it so far is having an instruction followed by naming some amount of specified phrases that could be from one to all of them. I could probably append the same options multiple times, but then the recognition doesn't stop. As I plan to use push to talk for this project anyway maybe I could have it just take the current hypothesized speech after releasing the button. This approach would probably also enable me to have optional phrases at the end of the instruction. If you have any better ideas, please let me know.
TheRorooo
19-May-19 16:30pm
View
Okay, I think I got what you meant. Didn't know you could use a whole GrammarBuilder inside of Choices! This looks very promising from some initial testing :) Thank you very much.
TheRorooo
19-May-19 16:07pm
View
Thank you for your reply. Maybe I didn't explain myself well. I am currently using a combination of Choices and .Append as you suggest. My problem is that let's say I have .Apppend 3 times and I want a fourth or even fifth optional one. It would also be the best for me to change the order of the next appends based on the phrase recognized from the first one as I currently would need to include the phrases in both. I also don't think this is really a tree structure as once you branch to one phrase you still have an option for all the same phrases in the next append which ideally you shouldn't. Or actually reading you comment one more time, do you mean you can include a whole grammar builder as one of the choices and try to make a tree-like structure that way?