subtitlesfor.me

command module
v0.0.0-...-ea22c33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 11 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
route/middleware/httprouterwrapper
Package httprouterwrapper allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter
Package httprouterwrapper allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter
srt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL