[SOLVED] 2-way audio with Frigate & Tapo Cameras (C320ws)

[SOLVED] 2-way audio with Frigate & Tapo Cameras (C320ws)

Hello everybody,

I ve been looking out round for some time to discover a resolution for this, and final night time i lastly acquired it after combining a number of github and neighborhood posts, so right here is my remaining setup for anybody that’s

This config allows the mic and speaker icon within the frigate ui and when urgent it i’ve tremendous snappy 2-way audio.
(the “…” within the code are indicative as i’ve different chunks between and ought to be omitted)

Frigate configuration:

...
go2rtc:
  streams:
    dn_lr_1_cam:  
      - ffmpeg:rtsp://rtspUN:rtsp:PW@cameraIP:554/stream1#audio=aac#video=copy
      - tapo://appPW@cameraIP
    dn_lr_1_cam_sub:
      - rtsp://rtspUN:rtsp:PW@cameraIP:554/stream2
...

Where rtspUN and rtspPW are those you set for additional management within the tapo app within the digicam settings
and app PW is the tapo app password, examined with easy characters (no particular chars). Ive learn it additionally works should you present the MD5 hash of your pw however haven’t examined it.

Nothing particular within the code beneath (it’s fairly default), simply pasting it for completeness:

...
cameras:
...
    dn_lr_1_cam:
    ui:
      order: 3 # to rearrange the cameras in my ui
    ffmpeg:
      output_args:
        file: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/dn_lr_1_cam # <--- the identify right here should match the identify of the digicam in restream
          input_args: preset-rtsp-restream
          roles:
            - file
            # - detect
        - path: rtsp://127.0.0.1:8554/dn_lr_1_cam_sub # <--- the identify right here should match the identify of the camera_sub in restream
          input_args: preset-rtsp-restream
          roles:
            - detect
    stay:
      stream_name: dn_lr_1_cam  #set to major or sub stream relying on the digicam 
    movement:
      masks: 0,0.048,0.355,0.048,0.352,0,0,0
...

The following setup additionally permits me to speak from the HA ui, utilizing the frigate card integration from HACS:

HA card config:

kind: customized:frigate-card
cameras:
  - camera_entity: digicam.dn_lr_1_cam
    go2rtc:
      modes:
        - webrtc
    live_provider: go2rtc
menu:
  buttons:
    microphone:
      enabled: true
    mute:
      enabled: true

The solely situation I’ve now could be that after I press the mic icon to allow the 2-way audio from the android app, it really works okay, however i can’t mute the feed by urgent the mic icon once more… however that’s fastened by closing the app or switching to a different dashboard.
I wont trouble about it now but when any1 has an answer to that, very welcome!

Hope it helps somebody :slight_smile:

1 submit – 1 participant

Read full subject

HI-FI News

through Home Assistant Community – Latest subjects https://ift.tt/tksjfwD

November 11, 2024 at 10:06AM