๐Ÿ“ฆ p0n1 / epub_to_audiobook

๐Ÿ“„ docker-compose.webui.yml ยท 27 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27# Be sure to replace <your_subscription_key> and <your_region> with your actual
# Azure Text-to-Speech API credentials. Also, replace your_book.epub with the
# name of your EPUB file, and audiobook_output with the name of the directory
# where you want to save the output files.

# After creating and saving the `docker-compose.yml` file, run the
# `docker-compose up` command in the same directory to pull the image and start
# the conversion process.

# You can then try to modify volumes to fit your need.

version: '3'
services:
  epub_to_audiobook:
    image: ghcr.io/p0n1/epub_to_audiobook:latest
    environment:
      MS_TTS_KEY: <your_subscription_key>
      MS_TTS_REGION: <your_region>
      # for custom OpenAI-compatible endpoints
      # OPENAI_BASE_URL: <your_openai_base_url>
      OPENAI_API_KEY: <your_openai_api_key>
    ports:
      - "7860:7860"
    volumes:
      - ./:/app
    command: 'python3 /app_src/main_ui.py --host 0.0.0.0 --port 7860'