💡 Inspiration

Small and local shopkeepers often juggle multiple tasks — serving customers, managing stock, and keeping records — usually without digital tools. Many still track inventory manually, which is error-prone and time-consuming. We wanted to bring AI-powered convenience to local businesses, making technology accessible even to those who aren’t tech-savvy. Inspired by smart assistants like Alexa and ChatGPT, we envisioned a simple, voice-driven tool that helps shopkeepers manage their stores effortlessly — just by talking.

🏗️ How We Built It

We built Smart Inventory Voice Assistant as a full-stack web application combining AI, voice technology, and cloud computing:

Frontend: React.js with the Web Speech API for microphone access and text-to-speech output.

Backend: Firebase Cloud Functions (Node.js) as our serverless logic layer.

Database: Firebase Firestore for real-time inventory tracking and updates.

AI & NLP: Hugging Face BART and DistilBERT models for intent classification and entity recognition.

Voice AI: Integrated Google Speech-to-Text for command transcription and Google Text-to-Speech for natural responses.

Deployment: Hosted on Firebase Hosting, with continuous integration and security via Firebase Authentication.

🧩 What We Learned

We learned how to:

Integrate AI inference APIs into real-world products using serverless functions.

Combine voice interaction and natural language understanding to create seamless user experiences.

Manage real-time data syncs across Firebase, ensuring fast, reliable updates.

Optimize intent parsing using confidence scores 𝑝 ( 𝑦 ∣ 𝑥 ) p(y∣x) to choose the best classification label from Hugging Face’s outputs.

Mathematically, we can define the assistant’s decision as:

𝑦

^

arg ⁡ max ⁡ 𝑦 ∈ 𝑌 𝑃 ( 𝑦 ∣ 𝑥 ) y ^ ​

=arg y∈Y max ​

P(y∣x)

where 𝑥 x is the spoken query and 𝑌 Y is the set of all possible intents.

⚙️ Challenges We Faced

Latency: Balancing real-time speech recognition and API inference calls without making the user wait.

Noise Handling: Filtering background noise for clearer transcriptions in busy shop environments.

NLP Precision: Training the AI to accurately understand local languages, accents, and colloquial shop terms.

Data Consistency: Ensuring simultaneous voice commands didn’t create race conditions in Firestore updates.

🚀 Outcome

The result is a hands-free, multilingual inventory assistant that lets shopkeepers update, query, and track stock in seconds — all by voice. It bridges the gap between traditional commerce and modern AI, empowering local businesses to thrive in the digital age.

Built With

  • 18
  • 3d
  • ai-powered
  • and
  • animations
  • api
  • authentication
  • backend
  • browser
  • build
  • client-side
  • cloud
  • command
  • component
  • css
  • database
  • dev
  • edge
  • firebase
  • firestore
  • for
  • form
  • framer
  • framework
  • frontend
  • functions
  • gemini
  • google
  • hook
  • icon
  • key
  • libraries
  • library
  • lovable
  • lucide
  • management
  • motion
  • nosql
  • notifications
  • processing
  • product
  • react
  • react-three/fiber
  • recognition
  • router
  • routing
  • safety
  • server
  • services
  • shadcn/ui
  • sonner
  • speech
  • storage
  • styling
  • supabase)
  • system
  • tailwind
  • toast
  • tool
  • transitions
  • type
  • typescript
  • ui
  • user
  • utility-first
  • vite
  • voice
  • web
Share this project:

Updates