When i execute the following, it works fine:
service: media_player.play_media
metadata:
title: wolf-howl.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- media_content_type: “”
media_content_id: media-source://media_source/local/sounds
data:
media_content_id: media-source://media_source/local/sounds/argon.mp3
media_content_type: audio/mpeg
target:
entity_id:
- media_player.living_room
However, when piper tries to talk back to me after it wants to tell me it couldn’t understand me, i heard nothing, but see in the logs of home assistant an “Error Executing Service”.
this is the error recorded. It links to a mp3 file where piper tells me it couldn’t understand me. but playing it failed…
Logger: homeassistant.core
Source: core.py:2165
First occurred: 09:52:52 (1 occurrences)
Last logged: 09:52:52Error executing service: <ServiceCall media_player.play_media (c:01HQT1200RP9HT7ADAHMRS166G): entity_id=[‘media_player.living_room’], extra=, media_type=audio/mpeg, media_id=http://192.168.1.184:8123/api/tts_proxy/dae2cdcb27a1d1c3b07ba2c7db91480f9d4bfd8f_en-us_c24b9e1de0_tts.piper.mp3>
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/core.py”, line 2165, in _run_service_call_catch_exceptions
await coro_or_task
File “/usr/src/homeassistant/homeassistant/core.py”, line 2186, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 882, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 952, in _handle_entity_call
result = await task
^^^^^^^^^^
File “/config/custom_components/webrtc/media_player.py”, line 74, in async_play_media
assert r.ok
AssertionError
I tried to link this file directly to the service: media_player.play_media, but that is also not working.
When i open the link in my browser, it immediately plays.
Help would be appriciated to get this working!
Thanks for reading