Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.59 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.59 KB

Speech plus Subtitles Player app written in Python with Flet GUI framework

With this GUI app, you can easily edit subtitles by playing speech audio file and SRT text in sync.

screenshot_en

Use OpenAI's Whisper or similar speech-to-text software to generate SRT file which will be also loaded when you load an audio file.
Click on subtitles text to edit it.
Save button overwrites current file.
SRT and TXT buttons export as respective file where TXT has no timestamps.

Note: This app was developed and only tested on macOS Sonoma 14.3 running on Mac Studio (M2 Max).

Requirements:

  • Python >= 3.8
  • Flet >= 0.21.0 (pip install flet)

How to run the app:

python main.py

How to build as a mac app:

flet build macos --build-version "1.0.1" --copyright "Copyright (c) 2024 Peddals.com" --product "Speech+SubtitlesPlayer" --include-packages flet_audio

Plese report if building as Windows or Linux app won't work.

Known issues/limitations:

  • Move or resize of window is laggy when the number of subtitles (=buttons) is big.
  • Sometimes Open/Export dialogs freezes and you have to quit the app. Save frequently.
  • Supported MP3 sample rate by macOS is 44.1KHz.
  • Add audio file extension to the pick_speech_file method if it's grayed out.
  • SRT file must have only one line of text. If you use Whisper to generate SRT, it should be fine.

Font: 源界明朝

© 2024 Peddals.com