Enhance VoiceChatBot with Greetings, Commands, Logging, and Improved UX#23
Open
annuaicoder wants to merge 1 commit into
Open
Enhance VoiceChatBot with Greetings, Commands, Logging, and Improved UX#23annuaicoder wants to merge 1 commit into
annuaicoder wants to merge 1 commit into
Conversation
gunthercox
reviewed
Mar 23, 2026
gunthercox
left a comment
Owner
There was a problem hiding this comment.
This appears to be too many extraneous changes for what is intended to be a simple example. I would prefer to keep the code here minimal to showcase how to implement speech recognition, rather then communication features.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces several minor but impactful improvements to the existing VoiceChatBot:
✅ New Features
Startup Greeting
Bot now greets the user with a randomized friendly message when launched.
Basic Command Handling
Recognizes simple commands like:
"time" → announces the current time
"joke" → tells a random pre-defined joke
Conversation Logging
All user inputs and bot responses are logged to chat_log.txt for later review.
Randomized Greetings
Adds variation to bot greetings to make interactions feel more natural.
Graceful Fallback
Provides a polite response if speech recognition fails or the bot cannot generate an answer.
User Feedback in Console
Prints recognized speech to the console for clarity during interaction.
⚡ Improvements
Minor UX enhancements for smoother interaction.
Maintains full compatibility with macOS (say) and Linux (festival) TTS.
🛠 Next Steps / Suggestions
Add wake word detection (“Hey bot”) to prevent continuous listening.
Integrate more advanced TTS for natural-sounding speech.
Consider context-aware multi-turn conversation with memory.