# Sound recognizer bot

**URL:** <https://discuss.dev.twitch.com/t/sound-recognizer-bot/25538>\
**Category:** Ideas\
**Created:** [May 11, 2020, 10:20pm UTC](https://discuss.dev.twitch.com/t/sound-recognizer-bot/25538 "2020-05-11T22:20:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HxHcs](https://avatars.discourse-cdn.com/v4/letter/h/e8c25b/32.png) [@HxHcs](https://discuss.dev.twitch.com/u/HxHcs)\
**Post date:** [May 11, 2020, 10:20pm UTC](https://discuss.dev.twitch.com/t/sound-recognizer-bot/25538/1 "2020-05-11T22:20:39Z")

</div>

Hello, not sure I posted in the right category so please forgive me.

I would like to know if it could be possible to make a bot recognize a particular sound playing on a live stream and react.  
As an exemple, let’s imagine that I am playing a FPS and each time I shoot the bot ear the particular spectrum of the gunshot and add +1 to a counter.

Thanks for your help, I am new here and a french student programmer trying to improve so please feel free if you have any advise or ideas in order to help me 😉

HxHcs

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [May 12, 2020, 12:36am UTC](https://discuss.dev.twitch.com/t/sound-recognizer-bot/25538/2 "2020-05-12T00:36:38Z")

</div>

There are no API’s that let you listen to the stream.

So it’s a no can do at time of writing.

---

<div class="post-metadata">

**Author:** ![Atlas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/atlas/32/29870_2.png) [@Atlas](https://discuss.dev.twitch.com/u/Atlas)\
**Post date:** [March 22, 2021, 6:17am UTC](https://discuss.dev.twitch.com/t/sound-recognizer-bot/25538/3 "2021-03-22T06:17:29Z")

</div>

Like @BarryCarlyon said. There is no official way to listen to audio from a live stream, and I don’t particularly know if this is allowed. But a possibility is to listen to the audio from a live stream with unofficial methods.  
Note that I have never done any programming with sound, so all that is up to you.

The way I know to do it just gets the video stream and convert it to audio in real-time using ffmpeg _(or similar)_.
