# Is there a (simple) way to train a node to recognize a specific sound?

**URL:** https://discourse.nodered.org/t/is-there-a-simple-way-to-train-a-node-to-recognize-a-specific-sound/60352
**Category:** General
**Created:** [25 March 2022 17:55 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-train-a-node-to-recognize-a-specific-sound/60352 "2022-03-25T17:55:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![oliver](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@oliver](https://discourse.nodered.org/u/oliver)
#### Post date: [25 March 2022 17:55 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-train-a-node-to-recognize-a-specific-sound/60352/1 "2022-03-25T17:55:17Z")

</div>

After 3 years hearing the neighbor's dog many hundred times a days, it is time to find some help to stop this before I get a nervous breakdown. I want to count the exact times the dog barks and log when he barks, so my question is how to make a solution where node-red can learn to recognize the sound and detect it with good accuracy. I'm thinking now about tensorflow-light or using a spectrum analyzer FFT to detect if the harmonics of the dog barking are present in the correctratio. Any advice how to start? Thanks in advance.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [25 March 2022 18:03 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-train-a-node-to-recognize-a-specific-sound/60352/2 "2022-03-25T18:03:02Z")

</div>

Not sure how well this copes with audio - but it may help - [node-red-contrib-teachable-machine (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-teachable-machine)  
It uses googles teachable machine models which are "easy" to train from samples locally - [Teachable Machine](https://teachablemachine.withgoogle.com/train)  
Let us know if it helps/works.

---

<div class="post-metadata">

### Author: ![oliver](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@oliver](https://discourse.nodered.org/u/oliver)
#### Post date: [25 March 2022 18:08 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-train-a-node-to-recognize-a-specific-sound/60352/3 "2022-03-25T18:08:41Z")

</div>

Thank you, will try it out.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [24 May 2022 18:09 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-train-a-node-to-recognize-a-specific-sound/60352/4 "2022-05-24T18:09:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
