Skip to main content

Audio, Caption Crawler and Processor

Downloads and processes the audios and captions(subtitles) from Youtube videos for Speech AI

Requirements

  • Currently requires python >= 3.6
  • FFmpeg

To Use

  from accp import ACCP

  playlist_name=""
  playlist_url = ""

  accp = ACCP(playlist_name, playlist_url)
  accp.download_audio()    #download audio from youtube

  accp.download_caption()  #download captions from youtube

  accp.audio_split()       #split 

Results

  datasets
    |- playlist name
        |- metadata.csv
        |- alignment.json
        |- wavs
             ├── 1.wav
             ├── 2.wav
             ├── 3.wav
             └── ...

and metadata.csv should look like:

{
    0001.wav|그래서 사람들도 날 핍이라고 불렀다.,
    0002.wav|크리스마스 덕분에 부엌에 먹을게 가득했다.,
    0003.wav|조가 자신이 그 사람이라고 나섰다.,
    ...
}

and alignment.json should look like:

{
    "./datasets/playlist name/wavs/0001.wav": "그래서 사람들도 날 핍이라고 불렀다.",
    "./datasets/playlist name/wavs/0002.wav": "크리스마스 덕분에 부엌에 먹을게 가득했다.",
    "./datasets/playlist name/wavs/0003.wav": "조가 자신이 그 사람이라고 나섰다.",
}

Metadata

Release files for accp 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for accp 0.0.1
File Size Uploaded
accp-0.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for accp 0.0.1
File Interpreter ABI Platform
accp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / accp-0.0.1.tar.gz

Download URL accp-0.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b5fb30b39138d1c2af690599484500959746fd02e14cdd0b9fa18738dde4783d
BLAKE2b-256 checksum
How to use checksums
c8cf6b270eaeefeb074a6e972ef651fb44b33fe3edd36e46cbb46652b69a0452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0

Release files / accp-0.0.1-py3-none-any.whl

Download URL accp-0.0.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85d6c900d9b36e77b341095d9da79474aa7bd6ff43b6d0683688a32b887743bf
BLAKE2b-256 checksum
How to use checksums
821e1455cadb4f549be6ba7187cf738cf26eddf62207a654d00373c811565152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page