Skip to main content

Generate text captions for audio files & youtube video using OpenAI Whisper. Multiple languages support.

Project description

I. INTRODUCTION

ur_audio_sub made generating captions easy for any audio files & youtube video using OpenAI Whisper. Multiple languages support.

II. REFERENCES

2.1. First thing first

You will need to install OpenAI whisper package from source using pip: Let's runt this command in the terminal fist: !pip install git+https://github.com/openai/whisper.git -q

You also need ffmpeg be installed to start generating captions:

  • on Ubuntu or Debian, or Google Colab: sudo apt update && sudo apt install ffmpeg
  • on MacOS using Homebrew (https://brew.sh/): brew install ffmpeg
  • on Windows using Chocolatey (https://chocolatey.org/): choco install ffmpeg
  • on Windows using Scoop (https://scoop.sh/): scoop install ffmpeg

2.2. How to install this package?

  • Using pip to installed pre-builded package on Pypip pip install ur_audio_sub
  • If you want to use the latest pydata_master version instead of the stable one, you can install it from source with the following command: pip install git+https://github.com/thinh-vu/ur_audio_sub.git@main

III. APENDICES

  • This package has been built on top of pytube and OpenAI Whisper:
    • pytube is a genuine, lightweight, dependency-free Python library (and command-line utility) for downloading YouTube videos.
    • whisper: Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multi-task model that can perform multilingual speech recognition as well as speech translation and language identification.

IV. 🙋‍♂️ CONTACT INFORMATION

You can contact me at one of my social network profiles:

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

ur_audio_sub-0.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

ur_audio_sub-0.0.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page