Skip to main content

No project description provided

Project description

Yodi

This is the official repository for YodiV1, the speech recognition model for 10 words, in Ewè. The Yodi package is also useful for rapid inference on speech data, especially on the mini_speech datasets.

Yodi, Your Speech Recognition Model

Welcome to the Yodi Model! This model is designed to perform inference on audio files, providing a prediction of the audio command. Visit our Hugging Face page or contact contact@umbaji.org to access your model now !

Requirements

This project requires Python 3.6 or later. To install all the necessary packages run:

pip install -r requirements.txt

Project Contents

This project contains the following files:

  • yodi.py: The main Python script where the model is defined and used for prediction.

How to Run

Clone the repo (if installing via git):

git clone https://github.com/Umbaji/Yodi.git

Navigate to the cloned directory.

Run the script in the terminal:

python Yodi.py

Usage

First, make sure you load your audio into the appropriate test folder.

The Yodi class in yodi.py is initialized with the following parameters:

  • file_path: The path to the audio file for prediction.
  • version: The version of the model to use (default is “1”).
  • local: Whether to load the model locally or from a URL (default is True).
  • plot_specs: Whether to plot the inference results (default is False). After initializing a Yodi object, call the predict_from_path() method to get the prediction for the audio command.

You can also use it to train our model via the umni_speech dataset avaible on our github page :https://github.com/Umbaji/umni_speech

Example

Example

from pathlib import Path

if __name__ =="__main__":
    
DATASET_PATH = '~/umini_speech/test_set/'
data_dir = pathlib.Path(DATASET_PATH)

if not data_dir.exists():
        print("Dowload the test_set folder from the repo: https://github.com/Umbaji/Yodi.git")
        pass
        
yodi_instance = Yodi(file,version = "1", local = True,plot_specs = "True")
yodi_instance.predict_from_path()

If Yodi misses the prediction on your input that means that it has not enough data !

Contribute to leverage afircan language model by adding your input audio to our umini_speech dataset here : https://github.com/Umbaji/umni_speech

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yodi_umbaji-0.5.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yodi_umbaji-0.5.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file yodi_umbaji-0.5.1.tar.gz.

File metadata

  • Download URL: yodi_umbaji-0.5.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for yodi_umbaji-0.5.1.tar.gz
Algorithm Hash digest
SHA256 af73f7af5cd559d733457607299e6fb78b48d839e5fc9242a0baa7fa47311c89
MD5 b159769abb99a98944426e7a3ea63db2
BLAKE2b-256 198763a55661d2f97fc1bade9d8de87fe53f731429fcf76e3b9c2bed7aa75059

See more details on using hashes here.

File details

Details for the file yodi_umbaji-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: yodi_umbaji-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for yodi_umbaji-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 032242ad0ba0f7394b2cb87b123f2d16d03c8592e8d917fc23ea3f2690d53da4
MD5 1b17f435f1371cbd629abbc4748f86a1
BLAKE2b-256 7584798762db0e091ecdc83c1ed9fab41b71b2bcf44508e22b6d93ad191c1d85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page