frigate-hass-card icon indicating copy to clipboard operation
frigate-hass-card copied to clipboard

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

Open shwarnock opened this issue 10 months ago • 12 comments

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"
        }
      }
    }
  }
}

shwarnock avatar Apr 19 '24 19:04 shwarnock

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

dermotduffy avatar Apr 19 '24 21:04 dermotduffy

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

shwarnock avatar Apr 19 '24 23:04 shwarnock

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.

dermotduffy avatar Apr 20 '24 00:04 dermotduffy

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

shwarnock avatar Apr 20 '24 17:04 shwarnock

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.

dermotduffy avatar Apr 20 '24 19:04 dermotduffy

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

shwarnock avatar Apr 21 '24 17:04 shwarnock

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 avatar Apr 21 '24 18:04 shwarnock

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.

shwarnock avatar Apr 22 '24 00:04 shwarnock

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

elfux avatar May 06 '24 11:05 elfux

Just chiming in to say no the doorbell isn't the only reolink camera to support two way audio.

I just recently installed the RLC-540A and have two way audio working with go2rtc and the frigate card.

Same config as the doorbell but using AAC instead of opus (according to VLC), and I'm using the rstp stream instead of http

DMedina559 avatar Jun 14 '24 18:06 DMedina559

Not to hijack a thread ... ... but we all should vote for the author to add Reolink camera recordings to media library feature https://github.com/dermotduffy/frigate-hass-card/issues/1027 😂

skynet01 avatar Sep 23 '24 06:09 skynet01