Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kfur/subtitlesfor.me

Convert audio to subtitles by using IBM Watson Speech to Text
https://github.com/kfur/subtitlesfor.me

ffmpeg go ibm-watson speech-to-text subtitles ugly-code

Last synced: about 1 month ago
JSON representation

Convert audio to subtitles by using IBM Watson Speech to Text

Awesome Lists containing this project

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](http://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`:

~~~ 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.