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

[pipertts] no available voices and and as result pipertts not making voice #17931

Open
scriptwriter13 opened this issue Dec 20, 2024 · 1 comment
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@scriptwriter13
Copy link

scriptwriter13 commented Dec 20, 2024

Expected Behavior

it should be possible to detect an installed voice in piper-folder and use it for pipertts-service

Current Behavior

it is not possible to make voice from text by pipertts and an errormessage is there.

Possible Solution

im not a java expert, but from my guessings the problem could be related in file PiperTTSService.java near getAvailableVoices() but im not sure about.

Steps to Reproduce (for Bugs)

  1. use docker image openhab/openhab:latest (debian based image, im using linux/arm64) 4.3.0
  2. enable install add-on pipertts
  3. install language files and verify the folder is like that:
docker exec -it [yourcontainername] ls -la /openhab/userdata/piper
total 59856
drwxr-xr-x  3 openhab openhab     4096 Dec 18 10:11 .
drwxr-xr-x 22 openhab openhab     4096 Dec 19 11:54 ..
-rw-r--r--  1 openhab openhab    55144 Dec 18 10:11 de_DE-eva_k-x_low.onnx
-rw-r--r--  1 openhab openhab   283242 Dec 18 10:11 de_DE-eva_k-x_low.onnx.json
drwxr-xr-x  3 openhab openhab     4096 Dec 18 14:00 lib-1.2.0-a0f09cd
-rw-r--r--  1 openhab openhab 60930507 Dec 18 09:50 piper-jni-1.2.0-a0f09cd.jar
  1. try to use it like that actions.Voice.say('hallo ich bin der test', 'pipertts:de_DE-eva_k-x_low', 'chromecast:chromecast:7c901df920');
  2. you will get the result in logs
2024-12-18 11:47:57.025 [DEBUG] [ce.pipertts.internal.PiperTTSService] - Available number of piper voices: 0
2024-12-18 11:47:57.027 [WARN ] [core.voice.internal.VoiceManagerImpl] - Error saying 'hallo ich bin der test': No TTS service can be found for voice pipertts:de_DE-eva_k-x_low
  1. Karaf and also webgui listing no available pipertts-voices. Only other voices from foreign tts-services listet, not from piper
openhab> openhab:voice ttsservices
  Google Cloud (googletts)
  MaryTTS (marytts)
  PicoTTS (picotts)
* Piper (pipertts)
  VoiceRSS (voicerss)
openhab> openhab:voice voices|grep -i piper
openhab>                                                    

Bildschirmfoto vom 2024-12-20 11-08-54

Context

im trying to make voice from text which i former did with other tts-services. But this did not work as expected. I tried to get help on community, but no effect: https://community.openhab.org/t/pipertts-install-oh-4-3-0/160944
There is also this time another open Issue from pipertts but i have no idea if this has a relation to this one.

Your Environment

  • Version used: (e.g., openHAB 4.3.0 and add-on version pipertts 1.2.0)
  • Environment name and version (Raspberry Pi 4 with Debian 12 and docker-ce environment (Docker version 27.4.1, build b9d17ea)):
@scriptwriter13 scriptwriter13 added the bug An unexpected problem or unintended behavior of an add-on label Dec 20, 2024
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/pipertts-install-oh-4-3-0/160944/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

2 participants