Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎧 CLI Tool README

This project provides a simple command-line interface (CLI) for running audio inference, testing a model, or launching a Flask server.


📦 Features

  • Run inference on a single audio file
  • Batch test the model on a directory of audio files
  • Launch a Flask API server

🚀 Installation

  1. Clone the repository:
git clone <your-repo-url>
cd <your-repo-folder>
  1. Install dependencies:
pip install -r requirements.txt

🛠️ Usage

Run the CLI using:

python src/cli.py [OPTIONS]

🔍 Options

Option Description
--infer Path to a single audio file for inference
--test Run model tests on a folder of audio files
--audio_location Path to folder containing audio files (required with --test)
--server Launch the Flask server

🎯 Examples

1. Run Inference on a Single File

python src/cli.py --infer path/to/audio.wav

2. Run Model Tests on a Folder

python src/cli.py --test --audio_location path/to/audio_folder
  • Validates the folder path
  • Sets AUDIO_LOCATION as an environment variable
  • Executes:
python src/model_test.py

⚠️ Note: --audio_location is required when using --test.


3. Launch Flask Server

python src/cli.py --server
  • Starts the Flask server by running:
python src/flask_server.py

About

An Automatic Speech Recognition System for the Kabyle language.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages