Coder Social home page Coder Social logo

mp3_to_training_data's Introduction

mp3-to-training-data

This tool extracts sentences and split audio from mp3, mp3 and wav files so that they can be used as training data for speech-to-text and text-to-speech applications, e.g. https://github.com/padmalcom/Real-Time-Voice-Cloning-German

Buy Me A Coffee

Installation

Run

  • Run using python main.py --dir_or_mp3_file "E:\my_audio_directory" --out_dir "output" or python main.py --dir_or_mp3_file "E:\my_audio_file.mp3" --out_dir "output"

Output

  • The tool creates an output folder, called out[timestamp] if you haven't provided a folder name using --out_dir. This folder contains:
    • a metadata.csv with filenames (excluding extensions) and texts
    • a wavs folder containing:
      • audio split into sentences and a corresponding txt file for each wav file with its spoken content
    • a tmp folder that keeps track of all audio files that have already been processed.

Restartability

The tool is able to continue a process. Therefore, the last ID of the metadata.csv is read and used to continue the process and all wav files in the output/tmp directory are skipped. This can lead to a loss of some sentences when only a few sentences of a wav file have been transcribed.

Limitations

  • This tool has only been tested with german text.
  • All other languages require other models or even other implementations of stt and gramatical restauration.

mp3_to_training_data's People

Contributors

padmalcom avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

finardi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.