Audio, Caption Crawler and Processor -TTS Data Generator-
Downloads and processes the audios and captions(subtitles) from Youtube videos for Speech AI
Generates audio datas from Youtube for TTS
Requirements
- Currently requires python == 3.6
- FFmpeg
- youtube_dl
- pydub
- youtube_transcript_api
To Use
pip3 install vctube
from vctube import VCtube
playlist_name=""
playlist_url = ""
lang = "" #ex) ko, en, fr, de...
vc = VCtube(playlist_name, playlist_url, lang)
vc.download_audio() #download audios from youtube
vc.download_captions() #download captions from youtube
vc.audio_split() #split audio with captions
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": "조가 자신이 그 사람이라고 나섰다.",
...
}
Pypi address
Release files for vctube 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vctube-1.3.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vctube-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.5 kB
Release files / vctube-1.3.tar.gz
| Download URL | vctube-1.3.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9f099b59272640f34015b2c1863d27a17da452b0608dd1fa79f645d9bd0f479
|
|
BLAKE2b-256 checksum How to use checksums |
e940ecc7d9c03bb889bf37e25391f2e3a9c42ef2282f03d9262686cd7cb131c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / vctube-1.3-py3-none-any.whl
| Download URL | vctube-1.3-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6478846f0db973b19722a90eb1369f3b39c57b7addc4e2a5a566a5468ba35433
|
|
BLAKE2b-256 checksum How to use checksums |
24eae88cb29365871b2e497949ff801e2668500e26d21eefc04f7e117df39733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|