Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Stuttering Detection and Analysis

This repository provides notebooks and code for the detection and analysis of stuttering using machine learning and audio processing techniques.

Table of Contents

Overview

Stuttering is a speech disorder involving frequent disruptions in the flow of speech. This project applies advanced machine learning models—for both audio feature extraction and classification—to facilitate automatic stuttering detection. The repository contains Jupyter notebooks and utility functions for preparing data, extracting features, and building stuttering classifiers leveraging state-of-the-art libraries such as PyTorch, LibROSA, and HuggingFace Transformers.

Contents

Installation

Before running the notebooks, ensure you have Python 3.9+ and the following dependencies installed:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers==4.41.2 transformers_stream_generator einops accelerate
pip install matplotlib tiktoken pandas soundfile librosa scikit-learn

Some environments may require specific CUDA drivers for GPU acceleration (see notebook for details).

Usage

  1. Clone this repository:
    git clone https://github.com/Tampu/stuttering.git
    cd stuttering
  2. Install the dependencies as shown above.
  3. Open either notebook (stuttering_notebook_approach1.ipynb or stuttering_notebook_approach2.ipynb) in Jupyter Lab or Notebook.
  4. Follow the instructions within the notebook to process audio data and run the stuttering detection pipeline.

Both notebooks include sections for:

  • Audio feature extraction (using LibROSA, SoundFile)
  • Machine learning modeling (using PyTorch, Transformers)
  • Visualization (Matplotlib)
  • Model evaluation

Approaches

Approach 1

  • Provides baseline audio preprocessing and traditional machine learning classification.

Approach 2

  • Explores use of Gemini for stuttering event detection with additional feature engineering.
  • Utilities for exporting feature summaries to JSON for further analysis.

Contributing

Contributions are welcome! Please submit issues and pull requests to help improve data processing, modeling, or pipeline robustness.

License

This repository is provided under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages