Using Gladia's Whisper API for transcribing YouTube videos
Project description
WhisperYT is a Python client for interacting with Gladia's API designed specifically for transcribing YouTube videos. Powered by an optimized variant of OpenAI's Whisper model, Gladia's backend performs Automatic Speech Recognition (ASR), converting spoken words into written text with remarkable precision. Best of all, you can enjoy up to 10 hours of free API usage each month.
In addition to providing access to Gladia's API, this versatile library equips you with postprocessing features to effortlessly manipulate and refine your transcribed data, making it a valuable tool for post-transcription tasks.
Install ![](https://pypi-camo.freetls.fastly.net/f643c5ded20f5057807c7222657f0a43e78082e7/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f73554c4b4567444d58384c63492f67697068792e676966)
pip install whisperyt
Quick Start ![](https://pypi-camo.freetls.fastly.net/1c18b539b53933563c2b440e600c71e4f83eebae/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f5065614e506c794f56504e4d486a71546d372f67697068792e676966)
The initial step involves initializing the YouTubeTranscriber class before proceeding with your API request. To get started, simply create a free account on Gladia's website and provide your API token. Afterwards, pass the YouTube video URL of your choice:
from whisperyt import YouTubeTranscriber, pretty_json
Gladia = YouTubeTranscriber("YOUR-API-KEY")
response = Gladia.transcribe("https://www.youtube.com/watch?v=BrcKRhQ7K00")
json_data = pretty_json(response)
Output:
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
Built Distribution
Hashes for whisperyt-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4fa75a2dcce7db3701c53119b25cec2bdc92e004859fbb460b42093309609da |
|
MD5 | b15c188798411a23ffc0e2158c5ce9a5 |
|
BLAKE2b-256 | 3bef2ab5ec465aad6137ed06eb36de8df893432d06234bd65dc0d14cdfc004f4 |