# Send audio via RTP?

**URL:** <https://community.homey.app/t/send-audio-via-rtp/138057>\
**Category:** Questions & Help\
**Tags:** app, homeyscript, homey-pro, advancedflow\
**Created:** [June 12, 2025, 6:44pm UTC](https://community.homey.app/t/send-audio-via-rtp/138057 "2025-06-12T18:44:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinnie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vinnie/32/124913_2.png) [@vinnie](https://community.homey.app/u/vinnie)\
**Post date:** [June 12, 2025, 6:44pm UTC](https://community.homey.app/t/send-audio-via-rtp/138057/1 "2025-06-12T18:44:06Z")

</div>

My Ubiquiti UniFi G4 Doorbell Pro has a built-in speaker, but there is no native way of playing a sound via that speaker.

However, thanks to the Ubiquiti’s new Protect API, I found a way to play a sound file, via `CMD` on PC:  
`ffmpeg -re -i "my_sound_file.opus" -c:a copy -f rtp rtp://XXX.XXX.XXX.XXX:XXXX`

Is there anyway of doing the same in HomeyScript or Advanced Flow?  
I.e. send data via RTP.
