diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..44f534fc --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.5 + +RUN apt update && \ + apt install -y ffmpeg espeak=1.48.04+dfsg-7+deb10u1 && \ + apt install -y libespeak-dev && \ + pip install numpy && \ + pip install aeneas + +# Adding russian libraries (optional) +RUN wget https://espeak.sourceforge.net/data/ru_dict-48.zip && \ + unzip ru_dict-48.zip && \ + cp ru_dict-48 /usr/lib/x86_64-linux-gnu/espeak-data/ru_dict \ No newline at end of file diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 00000000..dcceaa31 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,34 @@ +# Building aeneas in docker + +Additionally, russian [espeak libraries](https://espeak.sourceforge.net/data/) add into container. + +## Build + +You need to have [Docker](https://docs.docker.com/engine/install/). + +Clone this project, cd to this folder and run: +``` +$ docker build -t aenaes:latest . +``` + +## Usage + +To check (get the usage message): + +``` +$ docker run --name aenaes --rm aenaes python -m aeneas.tools.execute_task +``` + +To compute a synchronization map `map.json` for a pair (`/path/to/your/files/audio.mp3`, `/path/to/your/files/text.txt` in [plain](http://www.readbeyond.it/aeneas/docs/textfile.html#aeneas.textfile.TextFileFormat.PLAIN) text format): + +``` +$ docker run --name aenaes --rm --volume /path/to/your/files:/data aenaes \ + python -m aeneas.tools.execute_task \ + /data/audio.mp3 \ + /data/text.txt \ + "task_language=eng|os_task_file_format=json|is_text_type=plain" \ + map.json \ + --rate --presets-word +``` + +You will get a file `/path/to/your/files/map.json` as a result. \ No newline at end of file diff --git a/wiki/INSTALL.md b/wiki/INSTALL.md index 84454985..2c1943cd 100644 --- a/wiki/INSTALL.md +++ b/wiki/INSTALL.md @@ -54,6 +54,9 @@ Below you can find detailed procedures for each operating system. **Note**: you must install `numpy` before `aeneas`, otherwise the setup process will fail. +## OS Independent Via `Docker` + +See [docker](../docker/) directory. ## Linux