ultimate_alarm_clock
ultimate_alarm_clock copied to clipboard
Implement Voice Recognition and phrase generation Feature to Turn Off Alarm
Description
Description
Functionality Overview:
The Voice Recognition Challenge integrates with the alarm app, requiring users to say a specific phrase or answer a question correctly to turn off the alarm. This feature will use PocketSphinx, an open-source speech recognition system, to provide accurate and efficient voice recognition capabilities.
User Impact:
- Hands-Free Convenience: Allowing users to stop the alarm with their voice offers a hands-free and intuitive method, especially beneficial for those who find it difficult to interact with their device immediately after waking up.
- Customizable Phrases: Users can personalize their experience by setting custom phrases or questions, making the wake-up process more engaging and tailored to individual preferences.
- Improved Accessibility: This feature enhances accessibility for users with physical disabilities, providing an easier method to deactivate the alarm without needing to physically interact with the device.
- Cost-Effective Solution: Utilizing PocketSphinx ensures there are no additional costs for cloud-based API usage, making it a cost-effective enhancement to the app.
I want to work on this issue, so please consider assigning it to me.
The overall flow of the proposed functionality is as follows:
+-------------------------------+ | Start | +-------------------------------+ | v +-------------------------------+ | Alarm Rings | +-------------------------------+ | v +-------------------------------+ | User Speaks Custom Phrase | +-------------------------------+ | v +-------------------------------+ | PocketSphinx Processes Voice | +-------------------------------+ | v +-------------------------------+ | Phrase Recognized? | +-----------------+-------------+ | Yes | No v v +-------------------------------+ +-------------------------------+ | Alarm Turns Off | | Prompt User to Try Again | +-------------------------------+ +-------------------------------+
Screenshots
No response
@MarkisDev @AryanSarafDev please can you guys assign this task to me
@jaivsh I’ve assigned this task to you! Have you already implemented it? If not, could you provide a brief summary of how you plan to execute the workflow you explained? This way, we can save time in case any adjustments are needed.
Are you still working on this? @jaivsh
Hi @AryanSarafDev, sure! I was researching the existing codebase and have done the following till now:
- Used Google tts and used it for getting input from the user. It would automatically get triggered weather in background or inside the app activity class to note the user's voice.
- Creating a matching UI card for the voice recognition feature.
- Created a regix for matching if the string returned by the google tts library has certain words, like snooze, turn off, etc..
- Accordingly tts would ask to confirm.
Problem: Till now i've done the following, but i am not able to change the default ISAR database, so that voiceEnabled(on/off) is not showing up in the database. I added this variable in the isar and alarm models. So i was dealing with the same. The screen remains stuck with a circular loading screen showing up continously, and the updated isar variable isnt seen anywhere if i print it.
@jaivsh Have you checked the way we've implemented this for other toggleable features such as the smart dismissal ones?