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

Update of docker image on ghcr.io #101

Open
StaubiKa opened this issue Jan 9, 2025 · 1 comment
Open

Update of docker image on ghcr.io #101

StaubiKa opened this issue Jan 9, 2025 · 1 comment

Comments

@StaubiKa
Copy link

StaubiKa commented Jan 9, 2025

Hello,
I tried to use build a Portainer stack on my Synology NAS with piper as follows:

version: '3'

services:
  piper:
    image: lscr.io/linuxserver/piper:latest
    container_name: piper
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Europe/Berlin
      - PIPER_VOICE=de_DE-thorsten-high
      - PIPER_LENGTH=1.0 # optional
      - PIPER_NOISE=0.667 # optional
      - PIPER_NOISEW=0.333 # optional
      - PIPER_SPEAKER=0 # optional
      - PIPER_PROCS=1 # optional
    volumes:
      - /volume1/docker/epub_to_audiobook/piper/config:/config # Optional volume for Piper config
      - /volume1/docker/epub_to_audiobook/piper/models:/usr/share/piper_models # Volume for Piper models, find models at https://github.com/rhasspy/piper/
    ports:
      - 10200:10200
    restart: unless-stopped
    healthcheck:
      test: ['CMD-SHELL', 'nc -z localhost 10200']
      interval: 10s
      timeout: 5s
      retries: 5

  epub_to_audiobook:
    image: ghcr.io/p0n1/epub_to_audiobook:latest
    container_name: epub_to_audiobook
    environment:
      - PIPER_HOST=piper
      - PIPER_PORT=10200
    volumes:
      - /volume1/docker/epub_to_audiobook/app:/app
      - /volume1/docker/epub_to_audiobook/epub_input:/epub_src # Map the top level epub directory on the host machine
      - /volume1/docker/epub_to_audiobook/audiobook_output:/audiobook_output
    # command: tail -f /dev/null # Uncomment this line to keep the container running, and run via connecting to it with `docker exec -it epub_to_audiobook /bin/bash`
    command: "python main.py --tts piper_docker --no_prompt '/epub_src/input.epub' /audiobook_output" # Run command directly when the containers start up
    depends_on:
      piper:
        condition: service_healthy

The stack itself was created just fine but the execution of container "epub_to_audiobook" failed with the following message:

usage: main.py [-h] [--tts {azure,openai,edge}]
               [--log {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--preview]
               [--no_prompt] [--language LANGUAGE]
               [--newline_mode {single,double,none}]
               [--title_mode {auto,tag_text,first_few}]
               [--chapter_start CHAPTER_START] [--chapter_end CHAPTER_END]
               [--output_text] [--remove_endnotes] [--voice_name VOICE_NAME]
               [--output_format OUTPUT_FORMAT] [--model_name MODEL_NAME]
               [--voice_rate VOICE_RATE] [--voice_volume VOICE_VOLUME]
               [--voice_pitch VOICE_PITCH] [--proxy PROXY]
               [--break_duration BREAK_DURATION]
               input_file output_folder
main.py: error: argument --tts: invalid choice: 'piper_docker' (choose from 'azure', 'openai', 'edge')

I assume, this is related to an outdated image on ghcr.io.
Any attempt to locally create the image and use it in my portainer installation failed, as my knowledge about docker/portainer pretty limited.

Any chance one updates the image on ghcr.io?

@p0n1
Copy link
Owner

p0n1 commented Jan 9, 2025

Hi @StaubiKa. Some of the latest features are still experimental, and I haven't tried them in Docker yet. This is why I haven't released them to docker image. I just released a new version, and you can pull the latest image and try it. Any feedback is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants