ColtonYYZ
(ColtonYYZ)
April 14, 2024, 2:18pm
376
Hi @Nimrod_Dolev !
You were right, I had to add /config to the path url. Now the chimes work.
WIth regards to the notify feature, I can confirm it works now! I had a media player listed in my configuration that wasn’t the complete full name so it was causing an error with the script you wrote.
I’m using Echo 5’s, an Echo 8, and several Echo Plus devices and they all chimed in when I ran the notify script!
Thanks for your continued dedication and hard work on Chime_TTS!
PS: I am finding that you MUST list chime_path in the notify yaml even though it’s listed in the configuration. When I remove it from the notify yaml, the notification won’t work. So having it in the configuration is redundant if the notify yaml overrides the configuration, no?
This works:
service: notify.reminder
data:
message: "Colton, someone's at the door!"
data:
chime_path: /media/sounds/chimes/Simple_UI_03_-_SFX__-_RMS_-_2496.mp3
This does not work:
service: notify.reminder
data:
message: "Colton, someone's at the door!"
Here’s my configuration:
- name: "reminder"
platform: chime_tts
chime_path: /media/sounds/chimes/Simple_UI_03_-_SFX__-_RMS_-_2496.mp3
entity_id:
- media_player.colton_s_echo_show
- media_player.apartment_door_echo_amz
- media_player.kitchen_echo_plus_amz
- media_player.bathroom_echo_amz
- media_player.couch_echo_left_amz
tts_platform: amazon_polly
language: en-AU
volume_level: 4
announce: true
join_players: true
unjoin_players: true
ColtonYYZ
(ColtonYYZ)
April 14, 2024, 2:41pm
377
The time and money he spent creating all those scripts and automations! Man! That’s crazy!
1 Like
ColtonYYZ
(ColtonYYZ)
April 15, 2024, 2:02am
378
One request: Is it possible to have the volume return back to what it was set at previous to any volume change for the reminder?
Ex. I’m playing music at volume 40%, then the reminder is announced (where I have programmed it to be volume 60%) and then it returns the volume back to 40% so it can resume playing the music at the volume level I was listening to?
Currently, once the volume is changed in the notify.reminder, it stays at 60% (in this example), causing the music to be louder than it was previous to the reminder.
Hi @ColtonYYZ . The volume level is meant to be returned to the original value. I don’t know why it’s. Not working for you.
Can you please provide debug logs for when this happens?
SteffenDE
(Steffen)
April 15, 2024, 10:51am
380
Hi,
great custom integration. I tryed first time with my Sonos system but the running music becomes higher volume before the chime and tts is playing. So you scare about the power of the music before the announcement is playing. After theannouncement it goes back to the music with announce: true but then the volume is going down to late and you here again the very loud music.
Her my test:
service: chime_tts.say
data:
chime_path: ding_dong
offset: 450
final_delay: 100
message: Hallo dies ist ein Test
tts_platform: edge_tts
volume_level: 0.5
announce: true
target:
entity_id: media_player.sonos_buero
Thanks, Steffen
Hi Steffen. I’m sorry to hear you’re having.
There doesn’t seem to be any issues with the service call in your example.
It would be helpful to be able to review the debug logs to better understand what might be the cause of the problem with resetting the volume.
To enable debugging:
Turn on debug logging:
service: logger.set_level
data:
custom_components.chime_tts: debug
Call the service chime_tts.say again (like in your example).
Check your log messages in Home Assistant:
https://{YOUR_HOME_ASSISTANT_ADDRESS}:8123/config/logs?filter=chime_tts
and click LOAD FULL LOGS
SteffenDE
(Steffen)
April 15, 2024, 2:10pm
382
The problem is that the music getting high volume for a second or two and then it dimmed to play the announcement. Here is the debug log:
2024-04-15 16:05:38.968 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.0-beta2 -----
2024-04-15 16:05:38.969 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-04-15 16:05:38.970 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-04-15 16:05:38.970 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.sonos_buero']
2024-04-15 16:05:38.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = ding_dong
2024-04-15 16:05:38.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-04-15 16:05:38.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-04-15 16:05:38.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 100.0
2024-04-15 16:05:38.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Hallo dies ist ein Test
2024-04-15 16:05:38.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = edge_tts
2024-04-15 16:05:38.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-04-15 16:05:38.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-04-15 16:05:38.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = True
2024-04-15 16:05:38.973 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 0.5
2024-04-15 16:05:38.973 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-04-15 16:05:38.973 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-04-15 16:05:38.974 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "custom_components/chime_tts/mp3s/ding_dong.mp3"...
2024-04-15 16:05:39.436 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.533s
2024-04-15 16:05:39.437 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-04-15 16:05:39.438 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'edge_tts'
2024-04-15 16:05:39.438 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Hallo dies ist ein Test'
2024-04-15 16:05:39.438 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-04-15 16:05:39.438 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-04-15 16:05:39.438 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-04-15 16:05:40.861 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 1.42s
2024-04-15 16:05:40.892 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /media/sounds/temp/chime_tts/...
2024-04-15 16:05:41.389 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] - File saved to path: /media/sounds/temp/chime_tts/zexqfiqi.mp3
2024-04-15 16:05:41.868 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-04-15 16:05:41.869 DEBUG (MainThread) [custom_components.chime_tts] - audio_duration = 4.311
2024-04-15 16:05:41.869 DEBUG (MainThread) [custom_components.chime_tts] - local_path = "/media/sounds/temp/chime_tts/zexqfiqi.mp3"
2024-04-15 16:05:41.869 DEBUG (MainThread) [custom_components.chime_tts] - public_path = None
2024-04-15 16:05:41.869 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/zexqfiqi.mp3"
2024-04-15 16:05:41.870 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-04-15 16:05:41.870 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.sonos_buero's volume to 0.5
2024-04-15 16:05:42.232 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-04-15 16:05:42.233 DEBUG (MainThread) [custom_components.chime_tts] 1 Standard media player detected:
2024-04-15 16:05:42.233 DEBUG (MainThread) [custom_components.chime_tts] - media_player.sonos_buero
2024-04-15 16:05:42.233 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-04-15 16:05:42.233 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-04-15 16:05:42.234 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/zexqfiqi.mp3
2024-04-15 16:05:42.234 DEBUG (MainThread) [custom_components.chime_tts] - announce: True
2024-04-15 16:05:42.234 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.sonos_buero']
2024-04-15 16:05:42.243 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 4.411s for audio playback to complete...
2024-04-15 16:05:46.664 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Waiting until 1 media_player isn't playing...
2024-04-15 16:05:53.518 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] 𝘅 media_player.sonos_buero - Timed out
2024-04-15 16:05:53.518 DEBUG (MainThread) [custom_components.chime_tts] - Timed out waiting for playback to complete
2024-04-15 16:05:53.518 DEBUG (MainThread) [custom_components.chime_tts] *** Post-Playback Actions ***
2024-04-15 16:05:53.519 DEBUG (MainThread) [custom_components.chime_tts] - Returning media_player.sonos_buero's volume level to 0.08
2024-04-15 16:05:53.519 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.sonos_buero's volume to 0.08
2024-04-15 16:05:53.543 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 14.57 s -----
If I use service: media_player.play_media with announce: true the music get dimmed first and then the announcement is playing louder.
I think I understand the issue. The volume level is set in a service call to media_player.set_volume
, and then the audio generated by Chime TTS is played in a second service call to media_player.play_media
.
I think the problem is caused by latency between the two service calls, which is currently unavoidable.
That being said: I might be able to add a new feature to the chime_tts.say
service, where any currently playing music is faded out and then paused, before Chime TTS playback, and afterwards the music is resumed and faded back to the original level.
SteffenDE
(Steffen)
April 15, 2024, 3:03pm
384
Fading out and resume after would be a nice feature so the message is clear and I think we need no music in the background.
Because with this screaming music to get a clear announce my family is tremble after every message with chime_tts
I agree
The only potential issue I see is that some media_player integrations might not support resuming the music after Chime TTS playback.
I will let you know when a beta with the new feature is ready for testing.
1 Like
What you’re talking about is the same as I experience with Alexa devices, and you’re right it’s the latency of the service. Until Alexa devices are “local” and don’t depend on Amazon’s cloud based platform it’ll be something we have to put up with. I believe Sonos use the same services provided by Amazon.
ColtonYYZ
(ColtonYYZ)
April 15, 2024, 11:56pm
387
@Nimrod_Dolev Hi! Sure, here are the logs… you can see it changes the volume to 0.75 on all the devices but I don’t see anywhere in the log where it changes the volume back to the original level.
In fact, what it does is change the volume to 0.75 immediately, so when listening to music, it blasts the music, then dims the music only on one device (my couch left - rest of devices are blasting the music still), plays the chime and makes the announcement, then returns the couch left to blasting music.
2024-04-15 19:46:51.836 WARNING (MainThread) [custom_components.chime_tts] Unable to join speakers. No supported media_players found.
2024-04-15 19:47:22.233 WARNING (MainThread) [custom_components.chime_tts] Unable to join speakers. No supported media_players found.
2024-04-15 19:49:01.552 WARNING (MainThread) [custom_components.chime_tts] Unable to join speakers. No supported media_players found.
2024-04-15 19:49:42.775 DEBUG (MainThread) [custom_components.chime_tts.notify] _config = {'name': 'reminder', 'platform': 'chime_tts', 'chime_path': '/media/sounds/chimes/Simple_UI_03_-_SFX__-_RMS_-_2496.mp3', 'entity_id': ['media_player.colton_s_echo_show', 'media_player.apartment_door_echo_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz'], 'tts_platform': 'amazon_polly', 'language': 'en-AU', 'volume_level': 4, 'announce': True, 'join_players': True, 'unjoin_players': True}
2024-04-15 19:49:42.775 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg data = {}
2024-04-15 19:49:42.775 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg message = Testing 1-2-3!
2024-04-15 19:49:42.775 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg entity_id = ['media_player.colton_s_echo_show', 'media_player.apartment_door_echo_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz']
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg chime_path = /media/sounds/chimes/Multimedia_Short_Audio_Signature_17.mp3
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg tts_platform = amazon_polly
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg volume_level = 0.75
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg join_players = True
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg unjoin_players = True
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg announce = True
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.notify] kwarg language = en-AU
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.0-beta2 -----
2024-04-15 19:49:42.776 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.kitchen_echo_plus_amz', 'media_player.colton_s_echo_show', 'media_player.apartment_door_echo_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz']
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /media/sounds/chimes/Multimedia_Short_Audio_Signature_17.mp3
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Testing 1-2-3!
2024-04-15 19:49:42.784 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * language = en-AU
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = amazon_polly
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = True
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 0.75
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = True
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = True
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * audio_conversion = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-04-15 19:49:42.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-04-15 19:49:42.787 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/media/sounds/chimes/Multimedia_Short_Audio_Signature_17.mp3"...
2024-04-15 19:49:42.890 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 2.461s
2024-04-15 19:49:42.890 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-04-15 19:49:42.890 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'amazon_polly'
2024-04-15 19:49:42.891 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Testing 1-2-3!'
2024-04-15 19:49:42.891 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-04-15 19:49:42.891 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-04-15 19:49:42.891 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-04-15 19:49:42.977 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 90.0ms
2024-04-15 19:49:42.980 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /config/www/chime_tts/...
2024-04-15 19:49:43.065 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] - File saved to path: /config/www/chime_tts/lixa8e5s.mp3
2024-04-15 19:49:43.065 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-04-15 19:49:43.065 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /config/www/chime_tts/lixa8e5s.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/lixa8e5s_converted.mp3"
2024-04-15 19:49:43.149 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-04-15 19:49:43.242 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-04-15 19:49:43.242 DEBUG (MainThread) [custom_components.chime_tts] - key: "c6ee81546345cc8986a449f15ff9168e97be39971edf0b72d2ec282dee087948"
2024-04-15 19:49:43.242 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': '/config/www/chime_tts/lixa8e5s.mp3', 'audio_duration': 4.224, 'local_path': None}"
2024-04-15 19:49:43.246 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-04-15 19:49:43.246 DEBUG (MainThread) [custom_components.chime_tts] - audio_duration = 4.224
2024-04-15 19:49:43.246 DEBUG (MainThread) [custom_components.chime_tts] - local_path = None
2024-04-15 19:49:43.246 DEBUG (MainThread) [custom_components.chime_tts] - public_path = "https://REDACTED.ui.nabu.casa//local/chime_tts/lixa8e5s.mp3"
2024-04-15 19:49:43.246 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id = None
2024-04-15 19:49:43.246 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-04-15 19:49:43.246 WARNING (MainThread) [custom_components.chime_tts] Unable to join speakers. No supported media_players found.
2024-04-15 19:49:43.247 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.kitchen_echo_plus_amz's volume to 0.75
2024-04-15 19:49:43.247 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.colton_s_echo_show's volume to 0.75
2024-04-15 19:49:43.247 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.apartment_door_echo_amz's volume to 0.75
2024-04-15 19:49:43.248 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.bathroom_echo_amz's volume to 0.75
2024-04-15 19:49:43.248 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.couch_echo_left_amz's volume to 0.75
2024-04-15 19:49:43.248 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] 5 Alexa media players detected:
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo_plus_amz
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - media_player.colton_s_echo_show
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - media_player.apartment_door_echo_amz
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - media_player.bathroom_echo_amz
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - media_player.couch_echo_left_amz
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://REDACTED.ui.nabu.casa//local/chime_tts/lixa8e5s.mp3"/>
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-04-15 19:49:43.249 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.kitchen_echo_plus_amz', 'media_player.colton_s_echo_show', 'media_player.apartment_door_echo_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz']
2024-04-15 19:49:43.250 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 4.224s for audio playback to complete...
2024-04-15 19:49:47.478 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Waiting until 5 media_players aren't playing...
2024-04-15 19:49:47.479 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] ✔ media_player.kitchen_echo_plus_amz
2024-04-15 19:49:47.479 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] ✔ media_player.apartment_door_echo_amz
2024-04-15 19:49:47.479 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] ✔ media_player.couch_echo_left_amz
2024-04-15 19:49:47.681 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] ✔ media_player.colton_s_echo_show
2024-04-15 19:49:47.882 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] ✔ media_player.bathroom_echo_amz
2024-04-15 19:49:47.882 DEBUG (MainThread) [custom_components.chime_tts] *** Post-Playback Actions ***
2024-04-15 19:49:47.883 DEBUG (MainThread) [custom_components.chime_tts] - Returning media_player.kitchen_echo_plus_amz's volume level to 0.75
2024-04-15 19:49:47.883 DEBUG (MainThread) [custom_components.chime_tts] - Returning media_player.apartment_door_echo_amz's volume level to 0.75
2024-04-15 19:49:47.883 DEBUG (MainThread) [custom_components.chime_tts] - Returning media_player.bathroom_echo_amz's volume level to 0.75
2024-04-15 19:49:47.883 DEBUG (MainThread) [custom_components.chime_tts] - Returning media_player.couch_echo_left_amz's volume level to 0.75
2024-04-15 19:49:47.883 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.kitchen_echo_plus_amz's volume to 0.75
2024-04-15 19:49:47.884 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.apartment_door_echo_amz's volume to 0.75
2024-04-15 19:49:47.884 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.bathroom_echo_amz's volume to 0.75
2024-04-15 19:49:47.885 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player] - Setting media_player.couch_echo_left_amz's volume to 0.75
2024-04-15 19:49:47.886 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 5.11 s -----
@SteffenDE , @mefistofelis @afiwube , @KrisHoobie @pixeye33 @dwhite78 , @bluespice , @Brain1000 , @jjlawren , @mikes77 .
I am working on fixing the announce
feature in Chime TTS for Sonos media_players.
Could you please let me know whether you have integrated your Sonos speakers using the core Sonos integration or the custom sonos_cloud integration ?
I don’t have any Sonos speakers, so once I have a fix available I would appreciate your help testing the announce
feature.
klogg
(Klogg)
April 17, 2024, 8:01am
390
TL:DR - I will definitely do what I can do help test but time is limited here.
I currently use the core integration but have also tried the sonos_cloud integration.
I have been meaning to re-write my entire announcement package but have been putting it off. In fact I have not been doing any real work on any of my HA config for many months now as everything ‘just works’.
But as I said I would very much like to improve my announcements package. I wrote it a long time ago, before your integration, before the sonos cloud integration and before the changes to the way core handles TTS.
PS. Before actually posting this I decided I should go back and read all the previous messages I hadn’t kept up with on this subject. There were a lot, I had to go back to last October! It is exciting to see so much development on this integration!
I will do everything I can to try and help with testing.
1 Like
I appreciate the pain of dusting off old processes, and your time - thank you!
Once I find the time to add a fix and release a beta, I imagine the testing itself should only take a few minutes.
1 Like
SteffenDE
(Steffen)
April 17, 2024, 11:00am
392
I’m using the core Sonos integration and for example with this service call:
- service: media_player.play_media
target:
entity_id: " {{ mp_member_entity_id }} "
data:
announce: true
media_content_type: music
media_content_id: " {{ announcement_media }} "
extra:
volume: " {{ volume_level }} "
1 Like
theadlee
(Todd Headlee)
April 17, 2024, 11:25am
393
I am using the core Sonos integration
1 Like
terryhonn
(Terry Honn)
April 17, 2024, 2:15pm
394
Also core integration for me. I’ve used the custom cloud, but I don’t remember why I stayed with the core one.
1 Like
Hi everyone. I have released a new beta version, v1.1.0-beta3, which (hopefully) fixes the volume issue for Sonos media_players when using the announce
feature.
As I don’t own any Sonos hardware, I would appreciate it if you could upgrade to the new version and report back if there’s an impovement
To install the new beta version:
Open the Chime TTS repository in HACS
Click on the ⋮
button in the top right
Select the ↻ Redownload
option
Enable the Show beta versions
option (it may take a moment to update the list)
Select version v1.1.0-beta3
from the updated version drop-down list
Restart Home Assistant
@SteffenDE , @mefistofelis @afiwube , @KrisHoobie @pixeye33 @dwhite78 , @bluespice , @Brain1000 , @jjlawren , @mikes77