Skip to content

Repository files navigation

πŸ§ͺ Model Test

HTML JavaScript Python ONNX AI Status

Model Test is the complete research and testing environment used during the development of the Aniquen Wake Word AI.

This repository contains every stage of the wake-word pipeline including browser inference, server inference, microphone recording, offline validation, ONNX model execution, audio preprocessing and debugging utilities.

It is designed for experimenting with keyword spotting models before deployment into production applications.


πŸ“‘ Table of Contents

  • Features
  • Screenshots
  • Technologies
  • Project Structure
  • Architecture
  • How It Works
  • Testing Workflow
  • Installation
  • Future Improvements
  • Contributing
  • License
  • Author

✨ Features

βœ… Browser Wake Word Detection

βœ… Server Wake Word Detection

βœ… ONNX Runtime Integration

βœ… Mel Spectrogram Generation

βœ… Embedding Extraction

βœ… Keyword Spotting Model

βœ… Live Microphone Streaming

βœ… WebSocket Communication

βœ… Offline Pipeline Testing

βœ… WAV Recording Utility

βœ… Automatic Audio Resampling

βœ… Float32 PCM Processing

βœ… Real-Time Detection Visualization

βœ… Debug Probability Logging

βœ… Research & Benchmark Environment


πŸ— Architecture

Microphone
      β”‚
      β–Ό
Browser
      β”‚
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Ί Recorder
      β”‚
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Ί Offline Test
      β”‚
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Ί Browser Pipeline
      β”‚
      └────────────► WebSocket
                          β”‚
                          β–Ό
                  FastAPI Server
                          β”‚
                Mel Spectrogram
                          β”‚
                    Embedding Model
                          β”‚
                  Wake Word Model
                          β”‚
                    Detection Result

πŸ“Έ Screenshots

Home Screen


Wake Word Detection


Offline Pipeline


Probability Logs


βš™ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)
  • Python
  • FastAPI
  • WebSocket API
  • ONNX Runtime Web
  • ONNX Runtime
  • NumPy

AI Models

  • Mel Spectrogram Model
  • Embedding Model
  • Hey Aniquen Wake Word Model

πŸ“‚ Project Structure

Model-Test/
β”‚
β”œβ”€β”€ index.html
β”œβ”€β”€ record.html
β”œβ”€β”€ test_offline.html
β”œβ”€β”€ script_server.js
β”œβ”€β”€ style.css
β”œβ”€β”€ recording.wav
β”‚
β”œβ”€β”€ embedding_model.onnx
β”œβ”€β”€ melspectrogram.onnx
β”œβ”€β”€ hey_Aniquen.onnx
β”‚
└── README.md

⚑ How It Works

Browser Pipeline

  1. Access microphone

↓

  1. Capture Float32 PCM audio

↓

  1. Resample to 16 kHz

↓

  1. Stream audio over WebSocket

↓

  1. Receive wake probability

↓

  1. Trigger wake-word animation

Offline Pipeline

  1. Load recording.wav

↓

  1. Generate Mel Spectrogram

↓

  1. Create Embeddings

↓

  1. Run Wake Word Model

↓

  1. Print probabilities

↓

  1. Verify detection threshold

Recording Utility

The recorder captures:

  • 16 kHz Mono Audio
  • Float32 PCM
  • WAV Export
  • Six-second Test Clips

These recordings are used for validating the AI models.


🧠 AI Pipeline

Audio

↓

Mel Spectrogram

↓

Embedding Network

↓

Context Window

↓

Wake Word Model

↓

Probability Score

↓

Detection

πŸ§ͺ Testing Workflow

The repository supports multiple testing modes.

Live Browser Test

Real-time microphone detection using WebSockets.


Offline Validation

Replay recorded audio and inspect probability values.


Recording Tool

Generate clean WAV recordings for model evaluation.


Server Integration

Test production server communication before deployment.


πŸš€ Installation

Clone the repository

git clone https://github.com/dhruvpandit46/Model-Test.git

Go inside the project

cd Model-Test

Run

Simply open

index.html

or

record.html

or

test_offline.html

using a local web server.


🎯 Future Improvements

  • Multiple wake words
  • Noise robustness evaluation
  • ROC Curve visualization
  • Accuracy benchmarking
  • False positive analysis
  • TensorFlow Lite support
  • WebGPU acceleration
  • Mobile optimization
  • Confidence heatmaps
  • Automatic dataset generation

🀝 Contributing

Contributions are welcome.

  1. Fork the repository

  2. Create your feature branch

  3. Commit your changes

  4. Push your branch

  5. Open a Pull Request


πŸ“œ License

Licensed under the MIT License.

MIT Β© 2026 Dhruv Pandit.

See the LICENSE file for full license details.


πŸ‘¨β€πŸ’» Author

Dhruv Pandit

GitHub

https://github.com/dhruvpandit46

LinkedIn

https://linkedin.com/in/dhruv-pandit-755786326

Instagram

https://instagram.com/dhruv_pandit2007


🌌 Aniquen Ecosystem

Repository Description
πŸ€– Aniquen AI Voice Assistant
🧠 aniquen-server Backend AI Inference Engine
πŸ§ͺ Model Test Wake Word Research & Testing Environment
🎀 Anique AI Voice Text-to-Speech Server
πŸ’¬ Anique AI Browser-Based AI Chatbot

⭐ Support

If you found this project useful,

please consider giving it a ⭐ on GitHub.

It helps support future development.

About

Development and testing environment for the Aniquen wake-word AI model. Includes ONNX inference, browser & server pipelines, audio recording tools, offline validation, and real-time wake-word detection experiments.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages