title: SpeakFlow AI
emoji:
colorFrom: blue
colorTo: teal
sdk: docker
app_port: 5000
pinned: false
SpeakFlow AI
AI-Powered Speech Stuttering Detection System
SpeakFlow AI analyzes uploaded or recorded speech audio and detects whether it contains normal speech or stuttering patterns, using MFCC feature extraction and a Random Forest classifier.
Features
Audio upload & live in-browser recording
ML-based stutter detection (40 MFCC features + Random Forest)
Confidence & fluency scoring on every prediction
Downloadable PDF report of each analysis
Searchable analysis history
User accounts (sign up, log in, edit profile, change password)
Admin dashboard — user management, analytics charts, CSV export
The datasets were preprocessed and combined to create a binary classification dataset for distinguishing between Fluent Speech and Stuttering Speech.
Note: The datasets are not redistributed in this repository. Please download them from their respective official sources and ensure compliance with their licenses before use.
Running This Space
This Space runs a Flask backend that serves the ML prediction API. On startup it will be available at the URL shown in the Space's embedded app window.
Note: This app was originally built to run with a separate local frontend (index.html + http.server) talking to 127.0.0.1:5000. When deployed here, the frontend's API base URL points at this Space's backend instead of localhost.
Admin Access
An admin account is configured in the login flow to access the admin dashboard (user management, analytics, CSV export).
Demo project notice: User accounts, sessions, and analysis history are stored in browser localStorage, not a real database, and passwords are not hashed. This project is for academic/demo purposes only — not intended for production use with real user data.
Model Details
Feature extraction: 40 MFCCs averaged over time (Librosa)