Skip to main content

ArdicSrtCollector

MIT license Python PyPI

ArdicSrtCollector has been developed to generate the Turkish speech recognition dataset. As parameters, it takes a txt file consisting of the links of these Youtube videos and a folder name to store the files to be created. For each youtube video URL, it downloads the audio file, extracts subtitles as the SRT format, and saves as two new files to the disk. Then it cropped (using FFMPEG) the audio file according to the start and end time of each subtitle and creates a new audio file, and at the same time saves the current subtitle as a new txt file.

Installation

  1. Install ffmpeg.(it is re)
  2. Run $ pip install ardicsrtcollector.

Usage

1- From the terminal

ardicsrtcollector [-h] [-sv SAVE_PATH] -ufp URL_FILE_PATH

To convert the Youtube URL to mp3 and srt file.

optional arguments:
  -h, --help            show this help message and exit
  -sv SAVE_PATH, --save_path SAVE_PATH
                        Path to save converted files (default: downloads_convert)
  -ufp URL_FILE_PATH, --url_file_path URL_FILE_PATH
                        A file which contains youtube URLs
Example

Run on terminal :ardicsrtcollector -ufp urls.txt

2- Using it by importing as a package like the one below.

from ardicsrtcollector.youtube_srt_mp3 import YoutubeSrtMp3

YoutubeSrtMp3(urls_file_path="urls.txt", save_dir="save_path").convert()

The content of the file containing the URLs should be as follows.

https://www.youtube.com/watch?v=ENwtC8LgPcw
https://www.youtube.com/watch?v=ENwtC8LgPcw
...

License

Apache License 2.0

Metadata

Release files for ardicsrtcollector 1.0.13

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

Source distribution (sdist)

Source distribution for ardicsrtcollector 1.0.13
File Size Uploaded Provenance
ardicsrtcollector-1.0.13.tar.gz 11.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 23.6 kB

Release files / ardicsrtcollector-1.0.13.tar.gz

Download URL ardicsrtcollector-1.0.13.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
958d0910f58b3a413b8726ea196ff5ee831b9770f2f4963c7e07a8de72c0b9de
BLAKE2b-256 checksum
How to use checksums
55028a2f7c7dd5bc56f8f38066ee99cd7e6ba358c67c4ae9ec50b602d4a2c3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.7

Release files / ardicsrtcollector-1.0.13-py3-none-any.whl

Download URL ardicsrtcollector-1.0.13-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
659ae83ea163af5cd04a7ea66a29ce1915bf6eca9336d411fcced476299e6d7b
BLAKE2b-256 checksum
How to use checksums
f2c69bf372f426d3806627c5432cb3082d37f67dddd624b2cfda2e2483e6b026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.7

Security for ardicsrtcollector 1.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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