Get your synchronized subtitled video in minutes with AI!
AVT is a tool that allows you to precisely subtitle your audio or video content in minutes, using the power of AI.
Whether you need subtitles for accessibility, language learning, or just to make your content more engaging, this app has got you covered. Simply upload your audio or video file, select the language, and let the magic happen.
- Easy-to-use Interface: Powered by Gradio for an intuitive user experience.
- Multi-Language Support: Supports transcription in multiple languages: English, Spanish, French, German, Italian, Dutch, Russian, Norwegian, Chinese, and more.
- Video Playback: View your subtitled video directly in the web app.
- Download Subtitles: Save generated subtitle files for use with your preferred video player.
The easiest way to use AVT is through this Hugging Face Space.
To use it locally, follow the steps below.
Follow these steps to set up the application on your local machine.
-
Clone the repository:
git clone https://github.com/killian31/AudioVisualTranscription cd AudioVisualTranscription
-
Create a Python environment using pyenv:
pyenv virtualenv 3.11.9 avt pyenv activate avt
-
Install Poetry:
pip install poetry
-
Install dependencies:
poetry install
-
Install system-level dependencies:
-
MacOS: Run the following script to install FFmpeg and ImageMagick.
bash ./install_macos.sh
-
Debian/Ubuntu: Run the following commands to install FFmpeg and ImageMagick.
chmod +x install_linux.sh ./install_linux.sh
-
To launch the Gradio app:
python app.py
After launching, navigate to the provided local URL to interact with the application in your browser.
- Upload Your Content: Use the provided options to upload an audio file or a video file. Select the file type accordingly in the dropdown menu (Video, Audio).
- Select Your Preferences: Choose the language of transcription and any delay settings you prefer.
- Generate Subtitles: Click on the “Generate Subtitled Video” button to process your input.
- Download or View: View the subtitled video directly on the web interface or download the SRT subtitle file for later use. You need to generate the subtitles before being able to ckick on the download button.
The app relies on the following system-level dependencies:
- FFmpeg: Required for handling video and audio.
- ImageMagick: Required for video processing.
Please ensure these are installed using the provided scripts before running the app.
- Gradio: Provides the web interface for easy interaction.
- Whisper by OpenAI: Performs speech recognition.
Contributions are welcome! If you'd like to improve the app or add new features,
feel free to fork the repository and open a pull request. Please format your code
with black
.
This project is open source and available under the Apache 2.0 License.
If you have any questions, feel free to open an issue.