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

[BUG] Cannot add custom voices #5

Open
1 task done
wookash opened this issue Sep 30, 2024 · 4 comments
Open
1 task done

[BUG] Cannot add custom voices #5

wookash opened this issue Sep 30, 2024 · 4 comments

Comments

@wookash
Copy link

wookash commented Sep 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm adding new voice onnx and relevant onnx.json files to the config folder, I'm updating voices.json, the voice can be chosen in home assistant but there is error (see below)

Expected Behavior

I'd like to be able to add custom voice

Steps To Reproduce

copy voice files to config directory
update voices.json file
reload wyoming integration in home assistant
choose new voice in assistant
click play to try the new voice
error occurs

Environment

- OS: debian 12
- How docker service was installed: portainer

CPU architecture

x86-64

Docker creation

services:
  piper:
    image: lscr.io/linuxserver/piper:latest
    container_name: piper
    environment:
      - PUID=xx
      - PGID=xx
      - TZ=xxx/xxx
      - PIPER_VOICE=en_US-lessac-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:
      - /xxxx:/config
    ports:
      - 10200:10200
    restart: unless-stopped

Container logs

ERROR:asyncio:Task exception was never retrieved

future: <Task finished name='Task-9' coro=<AsyncEventHandler.run() done, defined at /lsiopy/lib/python3.12/site-packages/wyoming/server.py:28> exception=VoiceNotFoundError('jarvis')>

Traceback (most recent call last):

  File "/lsiopy/lib/python3.12/site-packages/wyoming/server.py", line 35, in run

    if not (await self.handle_event(event)):

            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/lsiopy/lib/python3.12/site-packages/wyoming_piper/handler.py", line 73, in handle_event

    piper_proc = await self.process_manager.get_process(voice_name=voice_name)

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/lsiopy/lib/python3.12/site-packages/wyoming_piper/process.py", line 114, in get_process

    ensure_voice_exists(

  File "/lsiopy/lib/python3.12/site-packages/wyoming_piper/download.py", line 77, in ensure_voice_exists

    find_voice(name, data_dirs)

  File "/lsiopy/lib/python3.12/site-packages/wyoming_piper/download.py", line 183, in find_voice

    raise VoiceNotFoundError(name)

wyoming_piper.download.VoiceNotFoundError: jarvis
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@rodrigosiviero
Copy link

same here, @wookash have you been able to solve it?

@wookash
Copy link
Author

wookash commented Nov 24, 2024

same here, @wookash have you been able to solve it?

Nope, I gave up for now - running other projects..

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

No branches or pull requests

3 participants