/subtitlesfor.me

Convert audio to subtitles by using IBM Watson Speech to Text

Primary LanguageGoMIT LicenseMIT

subtitlesfor.me

Basic MVC Web App that convert audio to subtitles by using speech to text from IBM Watson API. Audio can be provided from almost any video and audio formats except aac(due to IBM Watson API limitations), also audio is splitted on several parts to speed up conversion(thanks to ffmpeg).

Audio is converted to SRT caption/subtitle format from Watson STT generated JSON.

Build

Install dependencies:

  • MacOS: brew install ffmpeg
  • Ubuntu: sudo apt install ffmpeg libavformat-dev libavutil-dev libavfilter-dev libavdevice-dev libswscale-dev libswresample-dev

To build run: go build

Usage

Run ./subtitler

Then open: localhost

IBM Watson TTS

To use this app you must have credentials from IBM Speech to Text service. You can grab it on your IBM Cloud profile page.

Add your credentials to config/config.json:

{
    "SpeechToTextOptions": {
        "URL": "url to your speech to text service location",
        "IAMApiKey": "your key here"
    },
}

Feedback

All feedback is welcome. Let me know if you have any suggestions, questions, or criticisms. If something is not idiomatic to Go, please let me know know so we can make it better.