dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
470 stars 52 forks source link

I am unable to get 2 way audio working with my reolink cameras #1446

Open shwarnock opened 4 weeks ago

shwarnock commented 4 weeks ago

Release with the issue: v5.2

Browser and Operating System: Android HA App

Description of problem:

Frigate card diagnostic information

{
  "ha_version": "2024.4.3",
  "card_version": "5.2.0",
  "browser": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
  "date": "2024-04-19T19:42:35.722Z",
  "frigate_version": {
    "171d821a2557c42e2e6c1bd05709be46": "5.1.0/0.13.2-6476f8a"
  },
  "lang": "en",
  "timezone": "America/Chicago",
  "git": {
    "build_version": "5.2.0-HEAD+g69249b6",
    "build_date": "Fri, 23 Jun 2023 15:26:26 GMT",
    "commit_date": "Thu, 22 Jun 2023 09:21:26 -0600"
  },
  "config": {
    "type": "custom:frigate-card",
    "cameras": [
      {
        "camera_entity": "camera.front_doorbell_camera",
        "live_provider": "go2rtc"
      }
    ],
    "menu": {
      "buttons": {
        "microphone": {
          "enabled": true,
          "type": "toggle"
        }
      }
    }
  }
}
dermotduffy commented 4 weeks ago

Getting 2-way audio working can be challenging since it depends on so many factors. Start here: https://github.com/dermotduffy/frigate-hass-card?tab=readme-ov-file#using-2-way-audio

shwarnock commented 4 weeks ago

I did follow that setup instructions, but it still isn't working

dermotduffy commented 4 weeks ago

I did follow that setup instructions, but it still isn't working

At the very least your config (as pasted in this issue) does not match the instructions.

shwarnock commented 4 weeks ago

Sorry, I should have mentioned that I found that doc after posting the bug and have since updated my config to be

cameras:
  - camera_entity: camera.front_doorbell_camera
    live_provider: go2rtc
    go2rtc:
      modes:
        - webrtc
menu:
  buttons:
    microphone:
      enabled: true
      type: toggle

This still doesn't work though

dermotduffy commented 4 weeks ago

Make sure you are accessing Home Assistant over https. Do you have 2-way audio working with go2rtc? if you get it working with that, it should "just work" for the card. Make sure go2rtc supports 2-way audio for your camera.

shwarnock commented 3 weeks ago

I am trying to do this through the companion app. Does the companion app use https?

shwarnock commented 3 weeks ago

Ok @dermotduffy So I wasn't using https. I have now setup HA to use https. However, I still cannot get audio to work. Can you walk me through how to verify 2-way audio is working with go2rtc?

shwarnock commented 3 weeks ago

Ok I was able to get this working. I will need to clean up my config some more, but I did not have webrtc setup properly in frigate. After I got that setup, I was able to play audio from my phone's microphone onto the Reolink Doorbell. I still need to figure out how to get the audio from the doorbell back to my phone, but it is at least a step in the right direction.

Is the reolink doorbell the only reolink camera compatible with 2 way audio? The E1 Pro does support 2 way audio but idk if go2rtc supports that one.

elfux commented 1 week ago

I've got E1 Pro audio working with rtsp protocol and using rtmp with reolink NVR.

I would be cool to get the 2 way audio working as well, if you managed to do it, share the configs