v6p / subtitle-to-audio

A python script to generate .wav audio files for .srt subtitle files

Home Page:https://deeepmaker.blogspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subtitle-to-audio

This script generates an audio file (.wav) from a .srt file with timings. There can be unwanted shifts in the final audio if a time interval of a text is not adequate for dubbing.

Table of Contents

Dependencies

  • pydub: Used for audio segment manipulations.
  • pysub-parser: Used for parsing .srt files.
  • pyttsx3: An offline text-to-speech library used for dubbing.

Installation

Clone the repository and than install the requirements with the following command.

pip install -r requirements.txt

Usage

Here is an example usage. with command line options.

python subtitle_to_audio.py -p test/test.srt -r 120 -v 1

About

A python script to generate .wav audio files for .srt subtitle files

https://deeepmaker.blogspot.com/

License:MIT License


Languages

Language:Python 100.0%