Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRT to Speech

A single-page web application that parses SRT files and converts subtitles to speech using the Web Speech API or ElevenLabs API. The application synchronizes playback with the original SRT timestamps, handling delays and pauses appropriately.

Features

  • SRT Parsing: Supports .srt files and extracts text along with start/end timestamps.
  • Playback Synchronization: Plays audio precisely based on timestamps.
  • Engine Selection:
    • Web Speech API (Browser Default)
    • ElevenLabs API (requires API Key)
  • Audio Export: Allows rendering and exporting the ElevenLabs TTS output as a .wav file using Web Audio API's OfflineAudioContext.
  • Local Storage: Caches user preferences (TTS engine, API key, and selected voice) in localStorage.

Setup

No build step is required. Serve the files over a local HTTP server:

# Using Python
python3 -m http.server 8000

Then open http://localhost:8000 in a web browser.

ElevenLabs Usage

To use the ElevenLabs engine, enter your API key in the settings panel. The app will fetch available voices. Exporting to WAV is only supported when using the ElevenLabs engine.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages