DEV Community

Cover image for ๐ŸŽ™๏ธVoiceMathโž•: Speak, Solve, Master Math! ๐Ÿง 
ANIRUDDHA
ANIRUDDHA

Posted on

๐ŸŽ™๏ธVoiceMathโž•: Speak, Solve, Master Math! ๐Ÿง 

This is a submission for the AssemblyAI Challenge: Really Rad Real-Time.

๐ŸŽ™๏ธVoiceMath โž•โœ–๏ธ โž–โž—

What I Built ๐Ÿš€

๐ŸŽ‰ VoiceMath is an interactive voice-based math quiz application that enhances learning through speech recognition.

๐ŸŽ™๏ธ It uses the AssemblyAI Real-Time Speech-to-Text API to transcribe user responses and creates a dynamic quiz experience.

โœจ With glowing animations, score tracking, and seamless voice interaction, itโ€™s a fun way to practice math skills!


Demo ๐ŸŒŸ

๐Ÿš€ Live App: VoiceMath Live Demo

๐Ÿ“‚ GitHub Repository: VoiceMath Source Code

Screenshots ๐Ÿ“ธ

๐ŸŽฎ Quiz Section

Starting of Quiz Screenshot
Description: Interactive Quiz Interface

Ongoing Quiz Screenshot
Description: Ongoing quiz interface with real-time voice inputs.

Result Page Screenshot
Description: Results Page Design

๐Ÿ“š Practice Section

Practice Screenshot
Description: Practice mode for users to improve their math skills.

๐ŸŒŸ Leaderboard

Leaderboard Screenshot
Description: A detailed leaderboard showcasing user rankings.

๐Ÿ‘ค Profile Page

Profile Screenshot
Description: User profile section displaying personalized stats


Journey โœจ

Implementation Highlights ๐Ÿ’ก

๐ŸŽ™๏ธ Real-Time Speech Recognition:

Leveraged AssemblyAI's Streaming API for real-time transcription of user answers during the quiz.

๐Ÿ’ซ Interactive Animations:

Used Framer Motion for dynamic button animations and transitions, and React Confetti for celebration effects.

๐Ÿง  Quiz Logic:

Designed a 10-question dynamic math quiz where questions are generated on the fly.

๐Ÿ‘ Enhanced User Feedback:

Utilized sonner library for instant feedback with toasts on correct/incorrect answers.

๐Ÿ”Š Voice Features:

Added text-to-speech functionality for reading out quiz questions.

Tools Used ๐Ÿ› ๏ธ

๐ŸŽจ Frontend: React.js, TypeScript, Tailwind CSS

๐ŸŒ APIs: AssemblyAI Real-Time Speech-to-Text

๐ŸŽ‰ Animation: Framer Motion, React Confetti

๐Ÿ”” Feedback: Sonner (toast notifications)


Demo Features ๐ŸŽฏ

๐ŸŽค Real-time voice input for answering quiz questions.

โœจ Beautiful UI with glowing animations and transitions.

๐ŸŽ‰ Celebratory effects upon quiz completion.

๐Ÿ”Š Question narration via browser's speech synthesis.

๐Ÿ“Š Score and high-score tracking to keep users engaged.

๐Ÿ† Leaderboard to compete with friends and other users.

๐Ÿ‘ค Personalized profile with user stats and achievements.

๐Ÿ“š Practice mode for honing skills in a relaxed setting.


Journey ๐ŸŒ

๐ŸŽ‰ The development of VoiceMath was an exciting challenge!

๐ŸŽ™๏ธ Integrating AssemblyAIโ€™s Streaming API was straightforward with detailed documentation. I used the API to capture real-time audio input and transcribe it into text for evaluating quiz answers.

๐Ÿ’ซ A focus on user interactivity led to implementing Framer Motion for smooth animations and creating an engaging visual design.

๐Ÿ”Š Adding voice narration via the browser's Speech Synthesis API enriched accessibility and created a delightful experience.

๐ŸŒŸ This project qualifies for additional prompts as it uses AssemblyAIโ€™s Streaming API for its core functionality, creating a truly interactive real-time application.


Thanks for Reading! ๐Ÿ’ก

โค๏ธ Made with love by Aniruddha Adak

Top comments (0)