How to Install eBook2Audiobook on Your Synology NAS

How to Install eBook2Audiobook on Your Synology NAS

EBook2Audiobook is a CPU/GPU converter from eBooks to audiobooks with chapters and metadata using Calibre, ffmpeg, XTTSv2, Fairseq and more. It supports voice learning and 1124 languages! In this step by step guide I will show you how to install eBook2Audiobook on your Synology NAS using Docker & Portainer.

💡Note: This guide works perfectly with the latest eBook2Audiobook v2.0 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

1 Synology Portainer Add Stack

  • STEP 4

In the Name field type in ebook2audiobook. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

x-gpu-enabled: &gpu-enabled
  devices:
    - driver: nvidia
      count: all
      capabilities:
        - gpu

x-gpu-disabled: &gpu-disabled
  devices: []               

services:
  ebook2audiobookxtts:
    image: athomasson2/ebook2audiobookxtts:huggingface
    container_name: eBook2Audiobook
    healthcheck:
      test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/7860' || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 90s
    platform: linux/amd64
    tty: true
    stdin_open: true
    ports:
      - 7861:7860
    command: python app.py
    deploy:
      resources:
        reservations:
          <<: *gpu-disabled #Change this line to *gpu-enabled if you have an NVIDIA GPU on your NAS device

eBook2Audiobook Synology NAS Set up 1

  • STEP 5

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

eBook2Audiobook Synology NAS Set up 2

  • STEP 6

If everything goes right, you will see the following message at the top right of your screen: “Success Stack successfully deployed“.

eBook2Audiobook Synology NAS Set up 3

⌛Now just wait because the eBook2Audiobook image is about 14GB.

  • STEP 7

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 8

Please wait approximately 10 minutes or you will get a blank error page if you try to connect too soon. The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection and NAS processing power. Now open your browser and type in http://Synology-ip-address:7861 Upload a .txt file with some text inside it. Select the output voice (Fine Tuned Models). Click Convert. Follow the instructions in the image below. ⚠️Warning: Keep in mind that, when uploading a very large text file, like an entire ebook, it can take up to 10 days to process the entire file because of the slow CPU on Synology NAS devices.

eBook2Audiobook Synology NAS Set up 4

  • STEP 9

Wait until the text file is converted into an audio file.

eBook2Audiobook Synology NAS Set up 5

  • STEP 10

Click Play to listen to your file with the AI power. You can also download the file in a .m4b extension and listen to it on your PC.

eBook2Audiobook Synology NAS Set up 6

  • STEP 11

Check out my auto-generated output audio file. Download (click on the blue link below). 🔒Note: Support my work to unlock the password. You can use this password to download any file on mariushosting forever!

👉🏻mariusaudio.zip

  • STEP 12

Click on the Audio Generation Preferences tab to customize your audio generation parameters. Follow the instructions in the image below.

eBook2Audiobook Synology NAS Set up 7

Enjoy eBook2Audiobook!

🆘TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issues article.

Note: If you want to run the eBook2Audiobook container over HTTPS, check How to Run Docker Containers Over HTTPS. In order to make eBook2Audiobook work via HTTPS, it’s mandatory to activate WebSocket. ⚠️Warning: I do not recommend running eBook2Audiobook via Reverse Proxy. This product should be used only on localhost. Why don’t I recommend running it via Reverse Proxy? Because if someone were to know your HTTPS address, then they can use your eBook2Audiobook and start converting files until your server goes into timeout.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the eBook2Audiobook container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Monday / December 30th, 2024 at 12:22 AM