Closed jchristianj closed 10 months ago
Hi @jchristianj, Iām sorry the new release has caused issues for you.
Is the screenshot you included from the configuration in the new version? Do the paths to the custom paths appear when you downgraded to the previous version?
There is a fix in a new beta version which might address your issue. Could you please upgrade to it and let me know if it works for you?
To install the new beta version:
ā®
button in the top rightā» Redownload
optionShow beta versions
optionv0.11.1-beta2
from the updated version drop-down listSame issue here. I have a file in /media/sounds called DB-Regio.mp3. This is the service call:
service: chime_tts.say
target:
entity_id:
- media_player.esp_muse_luxe
data:
tts_platform: tts.piper
message: Hallo welt!
cache: false
chime_path: /media/sounds/DB-Regio.mp3
but the chime is not played. The tada
chime from the examples works fine.
The error in the log:
2024-01-07 21:30:14.385 WARNING (MainThread) [custom_components.chime_tts] Unable to find audio file None
I am on version v0.11.1-beta2
by the way.
Hi @nimroddolev thanks for your quick response. The screenshot is from the old version v0.10.2 after I reverted back to it.
However, the suggested beta2 unfortunately does not work. After going back to to v0.10.2 it's working again.
I am attaching two debug logs, one for the beta2 (not working) and one for v0.10.2 directly after going back (working). Both logs show the same script executed, nothing changed except the version in between.
If you need any further information please contact me. Thanks!
old_version_working_home-assistant_chime_tts_2024-01-07T20-33-22.399Z.log beta2_not_working_home-assistant_chime_tts_2024-01-07T20-27-51.984Z.log
I noticed it does work when I add the mp3 file as Custom 1 to the settings. However, according to the wiki the way I tried it before should work: https://github.com/nimroddolev/chime_tts/wiki/chime_tts.say#chime_path
I tried to add another mp3 from the same folder (/media/sounds) as Custom 2, but that doesn't work:
Invalid custom chime path detected
I can't edit Custom 1 either, that fails with the same error. (Invalid custom chime path detected
)
Hi @jchristianj and @Wummeke,
Thank you both for the additional information. Unfortunately from my own testing I can't replicate the problem you are experiencing. I reviewed my changes since the previous version and nothing jumps out as the potential cause. I have some follow up questions and troubleshooting I would like to ask you to kindly work through with me. I appreciate your help and your patience š
@Wummeke: it might prove useful to have access to your debug logs. Could you please provide them? To enable debug logs:
service: logger.set_level
data:
custom_components.chime_tts: debug
https://{YOUR_HOME_ASSISTANT_ADDRESS}:8123/config/logs?filter=chime_tts
LOAD FULL LOGS
Also, you mentioned that:
it does work when I add the mp3 file as Custom 1 to the settings. However, according to the wiki the way I tried it before should work
- How did you add the mp3 file as Custom 1?
- What do you mean by "the way I tried it before"?
@jchristianj - I see from your debug logs of the service call to v0.11.1-beta2 that the custom chime was not found at the path /media/sounds/a320_tritone-ding-dong.mp3
. At first I thought perhaps the issue is with the path being relative (not originating from the root folder on the filesystem) but further down in the logs I see the final mp3 is saved successfully with the same root folder.
To try to understand the cause of issue I have some basic troubleshooting steps I'd like to ask you both to please try. Please go through them (even if they seem obvious) and let me know what your results are:
@nimroddolev I really appreciate your support. I will go through the steps tomorrow and inform about the results. Briefly reviewing the logs and your troubleshooting steps just now, one thing I noticed: The actual file name of the custom chime is
A320_tritone-ding-dong.mp3
In the non-working logs the file is named a320_tritone-ding-dong.mp3
(with lower-case letter a in the beginning)
In the working logs the file is named A320_tritone-ding-dong.mp3
(upper-case letter A in the beginning, as it is actually named) Could this already be the culprit?
I also noticed the lowercase change when reviewing my code changes, and thought about it being the case, but I tested two custom chimes (both the same mp3 but one named with capitals and the other all lowercase) and they both worked.
However: perhaps your setup is more case sensitive than mine? You can try the same approach and see if there's any difference with lowercase files.
However: perhaps your setup is more case sensitive than mine? You can try the same approach and see if there's any difference with lowercase files.
This, somehow, seems to be the case. Simply created a copy of A320_tritone-ding-dong.mp3
in same location but only with lowercase letters a320_tritone-ding-dong.mp3
, installed v0.11.0 (non-beta) and now it is working when chime path is set to
chime_path: /media/sounds/a320_tritone-ding-dong.mp3
Great news!
I just released a new beta version, v0.11.1-beta3, which includes a fix for the lowercase bug. It would be great if you and @Wummeke could download the new version and report back if everything is working again.
Just tested it with Version v0.11.1-beta3 and got mixed results, which i can't explain.
I have 2 files in /media/sounds:
/media/sounds
, but also a folder /config/media/sounds/
I thought I was using the last one, but was actually using the first one, and that folder doesn't contain DB-Regio_leise.mp3. I'll sit in the corner of my room with a donkeyhat on my head for the rest of the evening.So, I'm all good now with your latest beta version! Thanks for your support and keep up the good work (y)
You can leave the corner š¤£ I'm just glad it all worked out! Thank you both too for your help on this š
Checklist
Is your feature request related to a problem? Please describe.
After updating from v0.10.2 to v0.11.0 no custom chime sound is played any longer; tts message consists of the spoken text only. Did not change any setting or path. HA log entry is similar "could not play file None", do not remember exactly.
Preset sounds are played, only custom sounds do not work.
Went back to v0.10.2 and all is fine again.
Describe the solution you'd like
Custom sounds should be played.
Describe alternatives you've considered
went back to previous version, all is fine again.
Additional context