You can record your voice either through the browser or the companion app, as long as the connection is secured via HTTPS. Once the recording is complete, an event will be triggered,then you can use automation to perform the actions you want.
If anyone has a similar need, feel free to give it a try and share your feedback!
yo bro i cant seem to install this to my server. I try and it doesn’t work. This integration would work perfectly with something im working on. (edit: here is an image of what it says when i try to add it)
i finally got it installed but i got this error and idk how to fix it
edit, i got it working with www/ as the file path. but now im having a problem where the lovelace card is not poping up in the dashboard. it just says that the card isn’t there
i fixed the card not poping up with just clearing cache but now im having the problem where i can’t find the files to play them somewhere and also what updates when you are done with the recording?
You should be able to find your file in the configuration folder, and you can play it using the media_player.play_media action. When the recording is complete, an voice_recorder_saved event will be triggered, and you can use automation to listen to this event and play the file automatically.
event data:
{
"path": # File path
"size": # File size
"filename": # File name
"eventName": # Custom event name
}
The automation can play a file,modify it according to your needs. Also, I have made modifications to the integration, so please make sure to update to the latest version.
alias: play record file
description: ""
triggers:
- trigger: event
event_type: voice_recorder_saved
conditions: []
actions:
- action: media_player.play_media
target:
entity_id: your entity id
data:
media_content_id: >-
https://your ha ip/your save path/{{
trigger.event.data.filename}}
media_content_type: music
mode: single
You need to be in an HTTPS environment to record audio. If HTTPS is not used, there should be a persistent notification indicating that the microphone permission was not granted. Also, change your path from www to local, for example: https://000.000.0.000/local/{{trigger.event.data.filename}}.
Sorry, I didn’t explain it clearly.
You don’t need to change the configuration, just change the media_content_id URL. When using the URL, “www” must be replaced with “local”.
i got it working!!! i just needed to change it from https to http in the automation to get it up and rolling. now its just figuring out why browser mod is not playing audio but it worked with my speaker which is awesome