Skip to main content

Create hindi language dataset for Speech Recognition from youtube

Project description

yt_audio_collector

yt_audio_collector is a genuine, lightweight library for creating hindi dataset for speech recognition from youtube.

Documentation

Detailed documentation about the usage of the library can be found at yt_audio_collector. This is recommended for most cases. If you want to hastily download a single video, the quick start guide below might be what you're looking for.

Description

YouTube is the most popular video-sharing platform in the world and as a machine learning engineer or AI engineer, you may encounter a situation where you want to script something to create datasets for training speech recognition models in any particular language for this we need audio and transcripts in that language. For this, I present to you: yt_audio_collector.

Quickstart

This guide covers the most basic usage of the library. For more detailed information, please refer to yt_audio_collector.io.

Installation

yt_audio_collector requires an installation of Python 3.6 or greater, as well as pip. (Pip is typically bundled with Python installations.)

To install from PyPI with pip:

$ python -m pip install yt_audio_collector

Sometimes, the PyPI release becomes slightly outdated. To install from the source with pip:

$ python -m pip install git+https://github.com/Nagalakshmi136/yt_audio_collector

Using yt_audio_collector in a Python script

 >>> from yt_audio_collector.system_1.fetch_youtube_data import FetchValidYouTubeData
 >>> yt_data = FetchValidYouTubeData()
 >>> video_ids = yt_data.get_valid_video_ids('cricket news in hindi')
 >>> from yt_audio_collector.system_2.preprocess_audio import PreProcessAudio
 >>> PreProcessAudio(source_path, destination_path, background_sound).preprocess_audio()

Cloning the repository

Clone the repository through the terminal using the command below:

git clone https://github.com/Nagalakshmi136/yt_audio_collector.git

create conda enviroment with the following command:

$ conda create --name yt-collector python=3.9

If poetry not available install poetry:

$ sudo apt install poetry

Install required pacakages from poetry with the following command:

$ poetry install

To execute the code run the command:

$ python main.py

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

yt_audio_collector-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

yt_audio_collector-0.1.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file yt_audio_collector-0.1.0.tar.gz.

File metadata

  • Download URL: yt_audio_collector-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.0

File hashes

Hashes for yt_audio_collector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74e542ec180fa1034df6ed484175430eacad811b6563730fffc21958e4c1c805
MD5 0bd9bfac80b7c30581b79d673743eae7
BLAKE2b-256 dc146aba2747a8f3cc8a871d8083a0e6d262c706919c4f49d8ad66795cb50083

See more details on using hashes here.

File details

Details for the file yt_audio_collector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yt_audio_collector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecba29a8e94b326dfacba35754cb1386f48db16a8978ac9590369a1f615960f6
MD5 c23fdc9e501812c3b0500fd280a35a56
BLAKE2b-256 32e08f17f2fc416dbccb130986a23026c15a36693b7f65fbf90ec399d5da2a65

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