# Sound trigger after measuring distance

**URL:** <https://discuss.roboflow.com/t/sound-trigger-after-measuring-distance/386>\
**Category:** 🤝  Community Help\
**Created:** [May 3, 2022, 2:59am UTC](https://discuss.roboflow.com/t/sound-trigger-after-measuring-distance/386 "2022-05-03T02:59:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon59033456](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@anon59033456](https://discuss.roboflow.com/u/anon59033456)\
**Post date:** [May 3, 2022, 2:59am UTC](https://discuss.roboflow.com/t/sound-trigger-after-measuring-distance/386/1 "2022-05-03T02:59:57Z")

</div>

I’m working on a project where I calculate the distance between myself and other cyclists during [Ragbrai](https://ragbrai.com/about/general-information/) as “The greatest threat to your well-being on the route is not cars or trucks but other cyclists” according to the organizers.

I’m trying to come up with a way to trigger a sound alert (without it being a text message) when another cyclist has come too close. What would be the best way to do this device wise?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [June 29, 2022, 4:12pm UTC](https://discuss.roboflow.com/t/sound-trigger-after-measuring-distance/386/2 "2022-06-29T16:12:25Z")

</div>

> [@How to add allert or sound audio each time an object are detected in Yolo?](https://discuss.roboflow.com/t/how-to-add-allert-or-sound-audio-each-time-an-object-are-detected-in-yolo/589/2):
>
> Hi @Syafiq_Fauzan , I found a potential solution, I’d use the Source Code from this project as inspiration: " The voice module: “We have used Python eSpeak Module. eSpeak is a small open source software speech synthesizer for Linux and Windows that supports English and other languages.”
