Skip to content

Enhance VoiceChatBot with Greetings, Commands, Logging, and Improved UX#23

Open
annuaicoder wants to merge 1 commit into
gunthercox:masterfrom
annuaicoder:master
Open

Enhance VoiceChatBot with Greetings, Commands, Logging, and Improved UX#23
annuaicoder wants to merge 1 commit into
gunthercox:masterfrom
annuaicoder:master

Conversation

@annuaicoder

Copy link
Copy Markdown

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.

@gunthercox gunthercox left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants