Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

ekspress-grupp/synthproxy

Repository files navigation

EKI TTS

This project contains docker related files to setup EKI tts in our infrastructure.

Building synthts image

As synthts build takes time and not neccessary to build each time, it's build separately and node runtime docker image copies binaries and data from synthts image.

docker build -f Dockerfile.debian -t synthts .

Later on, copy the needed data to node image:

COPY --from=synthts /app /app
COPY --from=synthts /usr/bin/synthts_et /usr/bin

Testing synthts

docker build -t app .
docker run --rm -v $(pwd)/spool:/spool \
    app \
    synthts_et -lex dct/et.dct -lexd dct/et3.dct -m htsvoices/eki_et_tnu.htsvoice -r 1.1 \
    -f /spool/in.txt -o /spool/out_tnu.wav

Test API Server

yarn start
curl -X POST "http://localhost:3382/synth/v1/synth" --data "extension=mp3&text=test kala"

Setup (docker-compose)

git clone https://github.com/ekspress-digital/synthproxy /srv/synthproxy
cd /srv/synthproxy
docker-compose up -d

# to upgrade
git pull
docker-compose build
docker-compose up -d