Is it possible to have a single piper container with multiple voices installed?

Is it possible to have a single piper container with multiple voices installed? What are the command line options for the container entry point? When I pass multiple --voice arguments, it only seems to take the last one.

I currently have two voices set up in two separate containers, but that seems inefficient if I could do it with one. Here’s my current wyoming docker-compose file.

version: "3"
services:
  piper_ryan:
    image: rhasspy/wyoming-piper
    restart: unless-stopped
    # Does not work
    # command: --voice en_US-ryan-high --voice en-gb-southern_english_female-low
    command: --voice en_US-ryan-high
    environment:
      TZ: "America/Halifax"
    networks:
      - default
    ports:
      - 8124:10200
    volumes:
      - ./piper_ryan:/data

  piper_lessac:
    image: rhasspy/wyoming-piper
    restart: unless-stopped
    command: --voice en_US-lessac-high
    environment:
      TZ: "America/Halifax"
    networks:
      - default
    ports:
      - 8126:10200
    volumes:
      - ./piper_lessac:/data
1 Like