Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker #296

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
34 changes: 34 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions wiki/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down