-
Notifications
You must be signed in to change notification settings - Fork 1k
Video Transcription for the SubtitleSwitcher Plugin
Vosk is an offline speech recognition toolkit that supports multiple languages. The Vosk-transcriber is a Python package that utilizes the Vosk library to transcribe audio files. By installing Vosk-transcriber in Ubuntu, you can enable the SubtitleSwitcher plugin to automatically transcribe videos and audio. This will allow you to generate accurate subtitles for your videos in various languages without the need for an internet connection. Follow this step-by-step guide to install Vosk-transcriber in Ubuntu and enhance the functionality of the subtitleSwitcher plugin with speech recognition capabilities.
Before installing new packages, it's a good practice to update your system. Open a terminal and run the following command:
sudo apt update && sudo apt upgrade
Vosk-transcriber requires Python and pip (the Python package installer) to work. Install them by running:
sudo apt install python3 python3-pip
Vosk-transcriber uses FFmpeg to convert audio files to the required format. Install FFmpeg by running:
sudo apt install ffmpeg
Now you can install the Vosk-transcriber Python package using pip:
pip3 install vosk-transcriber
Vosk requires a language model to perform speech recognition. Download a pre-built language model from the Vosk website (https://alphacephei.com/vosk/models) or the GitHub repository (https://github.com/alphacep/vosk-api/blob/master/doc/models.md). For example, to download the English language model, run:
wget https://alphacephei.com/vosk/models/vosk-model-en-us-aspire-0.2.zip
Unzip the downloaded language model:
unzip vosk-model-en-us-aspire-0.2.zip
The Open Source Video Platform Solution
| Service | Description | Link |
|---|---|---|
| 🎯 | Professional Support - Direct assistance from core developers | Contact |
| ☁️ | AVideo CDN - High-performance video delivery network | Pricing |
AVideo Platform © 2024 - Self-hosted video streaming platform
Made with ❤️ by WWBN and the open source community