HomeAssistant-Tapo-Control icon indicating copy to clipboard operation
HomeAssistant-Tapo-Control copied to clipboard

Feature Request: Two way audio - audio entities.

Open CoYoNq opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe. nope

Describe the solution you'd like use audio in 2way audio enabled devices for rec/playback

Additional context Would be great to use the audio features in scripts (ie, recieving voice commands or sending custom notifications)

CoYoNq avatar Aug 24 '21 15:08 CoYoNq

Unfortunately, not currently possible as noone figured out how it works. First someone will need to do that and then it can be implemented into https://github.com/JurajNyiri/pytapo/ . Some work is documented in https://github.com/JurajNyiri/pytapo/issues/4 .

JurajNyiri avatar Aug 25 '21 12:08 JurajNyiri

Need more help at https://github.com/JurajNyiri/pytapo/issues/41

JurajNyiri avatar Nov 24 '22 22:11 JurajNyiri

@JurajNyiri as AlexxIT found a way and provides the functionality to use 2-way-audio through go2rtc - is there any plan that your integration will support 2-way-audio in the future?

dm82m avatar Feb 28 '23 07:02 dm82m

It is now possible to use camera as media_player, see webrtc integration readme. This gives you a possibility to send any sound to the camera, or even open 2 way talk session via a browser in any device.

I will keep this opened as I might implement it also here in the future, but it is not a priority right now.

JurajNyiri avatar Mar 21 '23 12:03 JurajNyiri

Hey there :) Any progress on this front?

krasatos avatar Jan 16 '24 10:01 krasatos

This can be achieved with webrtc so the priority is very low to not going to implement.

JurajNyiri avatar Jan 16 '24 11:01 JurajNyiri

It doesn't seem to work with my WS320 cameras with webrtc... it does for the C200 though

ssorgatem avatar Jul 02 '24 21:07 ssorgatem

Could anyone share their working tapo webrtc two way configuration?

pepijndevos avatar Jul 23 '24 05:07 pepijndevos

Could anyone share their working tapo webrtc two way configuration?

Make sure to use go2rtc with the "tapo://" protocol (not direct rtsp) to connect to the camera. I use the one bundled with frigate.

Then, on configurtation.yaml I have this:

media_player:
  - platform: webrtc
    name: tapo_davant
    stream: davant
    audio: pcma
  - platform: webrtc
    name: tapo_barbacoa
    stream: barbacoa
    audio: pcma
  - platform: webrtc
    name: tapo_nens
    stream: nens
    audio: pcma
  - platform: webrtc
    name: tapo_bressol
    stream: bressol
    audio: pcma

Where "stream" is the name of the stream in your go2rtc config.

This is working for C200 cameras but not for WS320 cameras for some reason.

ssorgatem avatar Aug 17 '24 08:08 ssorgatem