This project contains docker related files to setup EKI tts in our infrastructure.
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
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
yarn start
curl -X POST "http://localhost:3382/synth/v1/synth" --data "extension=mp3&text=test kala"
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