Generic Camera 2 way Audio

Hello gurus. Who knows how to get 2 way audio, or at least 1 way audio to work with generic camera?
I’m using two YOUSEE supported doorbell cameras plus several YOUSEE supported PTZ cameras plus several YCC365 PTZ outdoor camera. All of them stream RTSP and I’m using least lug generic camera integration without stream component in configuration.yaml
Currently I have the following setup on my dashboard:

type: picture-elements
title: Garden PTZ Cam 01
camera_image: camera.admin_192_168_1_18_554
elements:
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_left
      service_data:
        host: 192.168.1.18
    entity: camera.admin_192_168_1_18_554
    icon: mdi:arrow-left-drop-circle
    style:
      bottom: 45%
      left: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_right
      service_data:
        host: 192.168.1.18
    entity: camera.admin_192_168_1_18_554
    icon: mdi:arrow-right-drop-circle
    style:
      bottom: 45%
      right: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_up
      service_data:
        host: 192.168.1.18
    entity: camera.admin_192_168_1_18_554
    icon: mdi:arrow-up-drop-circle
    style:
      top: 10%
      left: 46%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_down
      service_data:
        host: 192.168.1.18
    entity: camera.admin_192_168_1_18_554
    icon: mdi:arrow-down-drop-circle
    style:
      bottom: 10%
      left: 46%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: more-info
    entity: camera.admin_192_168_1_18_554
    icon: mdi:arrow-expand-all
    style:
      top: 5%
      right: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
camera_view: live

It gives me PTZ control and one icon to expand camera view, but unfortunately no audio, where all cameras support 2 way audio communication.
Also if anyone has experience to place PTZ control icons on expanded view please suggest as this is very uncomfortable just having them on picture element widget.

Appreciate your support and care.

1 Like

Hello, have you been able to solve this issue?

You are likely going to have to dig into the API for that camera. I did a quick search and didn’t see the commands for accessing the microphone and speaker and some of those cameras the API is deeply hidden, but sometimes you can derive it from other people that have Integrated it (like iSpy), they often expose their API methods via JSON files in the software - which generally has a free or trial version with all the definitions in them, that’s how I reverse engineered some Foscams a long time ago.

Hi @elik745i, I was able to have one-way audio with Ezviz by using the HACS integration Webrtc Camera - https://github.com/AlexxIT/WebRTC - Working pretty well on computer browser, very unstable on companion apps. Have a look, if you finded anything better let me know, I’m still trying to find something that can work, stable, and with no problems

See my feature request. Feel free to vote for it :slight_smile:
Two-Way Audio (e.g. for doorbell, intercom, camera-systems, baby-monitors, sip, …) - Feature Requests - Home Assistant Community (home-assistant.io)

1 Like