diff --git a/ljspeech.Dockerfile b/ljspeech.Dockerfile new file mode 100644 index 0000000..f3c6d10 --- /dev/null +++ b/ljspeech.Dockerfile @@ -0,0 +1,15 @@ +FROM tensorflow/tensorflow:1.8.0-py3 +RUN apt-get update && apt-get install -y python3 python3-pip git llvm-8 +RUN ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-config + +RUN git clone https://github.com/keithito/tacotron /root/tacotron +WORKDIR /root/tacotron +RUN pip3 install -r requirements.txt + +RUN mkdir /root/tacotron_models +RUN curl https://data.keithito.com/data/speech/tacotron-20180906.tar.gz -k --output /root/tacotron_models/tacotron-20180906.tar.gz +WORKDIR /root/tacotron_models +RUN tar x --file /root/tacotron_models/tacotron-20180906.tar.gz +WORKDIR /root/tacotron + +CMD python3 /root/tacotron/demo_server.py --checkpoint /root/tacotron_models/tacotron-20180906/model.ckpt \ No newline at end of file diff --git a/nancy.Dockerfile b/nancy.Dockerfile new file mode 100644 index 0000000..d47a9f0 --- /dev/null +++ b/nancy.Dockerfile @@ -0,0 +1,12 @@ +FROM tensorflow/tensorflow:1.8.0-py3 +RUN apt-get update && apt-get install -y python3 python3-pip git llvm-8 +RUN ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-config + +RUN git clone https://github.com/keithito/tacotron /root/tacotron +WORKDIR /root/tacotron +RUN git reset --hard 8edcd55b3f08f0492340e8b3ee60a693138f5473 +RUN pip3 install -r requirements.txt + +RUN git clone https://github.com/ArkaneCow/tacotron-models /root/tacotron_models + +CMD python3 /root/tacotron/demo_server.py --checkpoint /root/tacotron_models/mxgray_nancy/model.ckpt-250000 \ No newline at end of file diff --git a/readme.md b/readme.md index 5a54a1e..e790a95 100644 --- a/readme.md +++ b/readme.md @@ -10,7 +10,19 @@ OVOS TTS plugin for [Mimic2](https://github.com/MycroftAI/mimic2) ```json "tts": { - "module": "ovos-tts-plugin-mimic2" + "module": "ovos-tts-plugin-mimic2", + "ovos-tts-plugin-mimic2": { + "url": "https://mimic-api.mycroft.ai/synthesize" + } } ``` + +### Voices + +Dockerfiles are provided for Nancy corpus trained by Mxgray and LJSpeech trained by Keithito +- `docker build -f nancy.Dockerfile -t mimic2-nancy` +- `docker build -f ljspeech.Dockerfile -t mimic2-ljspeech` + +run the container and set url in config `http://0.0.0.0:9000/synthesize` +- `docker run --rm -p 9000:9000 mimic2-nancy` \ No newline at end of file