proger / gentle-uk

Лагідна Українізація

Home Page:https://lowerquality.com/gentle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gentle-uk

Robust yet lenient forced-aligner built on Kaldi for Ukrainian. A tool for aligning speech with text.

Getting Started

There are three ways to install Gentle.

  1. Download the pre-built Mac application. This package includes a GUI that will start the server and a browser. It only works on Mac OS.

  2. Use the Docker image. Just run docker run -P lowerquality/gentle. This works on all platforms supported by Docker.

  3. Download the source code and run ./install.sh. Then run python3 serve.py to start the server. This works on Mac and Linux.

Using Gentle

By default, the aligner listens at http://localhost:8765. That page has a graphical interface for transcribing audio, viewing results, and downloading data.

There is also a REST API so you can use Gentle in your programs. Here's an example of how to use the API with CURL:

curl -F "audio=@audio.mp3" -F "transcript=@words.txt" "http://localhost:8765/transcriptions?async=false"

If you've downloaded the source code you can also run the aligner as a command line program:

Install https://github.com/proger/uk first.

git clone https://github.com/proger/gentle-uk.git
cd gentle
./install.sh
python3 align.py audio.mp3 words.txt

The default behaviour outputs the JSON to stdout. See python3 align.py --help for options.

About

Лагідна Українізація

https://lowerquality.com/gentle/

License:MIT License


Languages

Language:Python 64.7%Language:C++ 17.0%Language:HTML 14.6%Language:Shell 1.6%Language:Makefile 1.2%Language:Dockerfile 0.8%