GithubHelp home page GithubHelp logo

yt_audio_scraper's Introduction

Audio scraper

It is an audio dataSet generator. For training Neural Networks

Just pass the video/playlist link (tested with youtube videos) and a dataSet will be generated with a .wav file per each pronounced word

In order to extract each word the video should have .vtt subtitles (automatically generated in Youtube). For better extractions, the videos should have clear and intelligible audio. Typically, with 70 ms silence between words.

Quick start

python setup.py develop
python audioscraper -i 'https://www.youtube.com/watch?v=fFb4zm5D0Hg' -l fr -o ./dataSet

Repo tree


├── audioscraper   --> package
│   ├── scraper    --> extracts the audio_words, generates the DataSet
│   ├── validator  --> validates and cleans extracted audo_words in DataSet
│   └── dictionary --> handles withe-list of most common audio_words per language
└── tests
    ├── test_audio_analyser.py
    ├── test_audio_subs_downloader.py
    ├── test_audio_words_generator.py
    ├── test_validator.py
    └── resources   --> resources for tests
        └── conversation.wav  --> resource to test validator.py
        └── dataSet  --> generated dataSet with test_audio_words_generator.py
            ├── one
            ├── two
            ├── three
            └── .scraped_videos_history.json  --> keeps register of scraped videos, to avoid data replication

TODOs:

  • Implement a proper logging class
  • Finish sub-pack dictionary. Consider also composed words (like j'ai)
  • Implement the validator.recognize_from_signal. To predict directly from audio-chunks, without creating the audio file
  • Fix audioscraper.validator for Google-cloud-speech

yt_audio_scraper's People

Contributors

oaurbanov avatar

Watchers

 avatar

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.