# Continuous Sound Identification using Nicla Voice

**URL:** <https://discourse.syntiant.com/t/continuous-sound-identification-using-nicla-voice/122>\
**Category:** TinyML Board\
**Created:** [June 10, 2024, 1:34am UTC](https://discourse.syntiant.com/t/continuous-sound-identification-using-nicla-voice/122 "2024-06-10T01:34:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmpf](https://discourse.syntiant.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@drmpf](https://discourse.syntiant.com/u/drmpf)\
**Post date:** [June 10, 2024, 1:34am UTC](https://discourse.syntiant.com/t/continuous-sound-identification-using-nicla-voice/122/1 "2024-06-10T01:34:03Z")

</div>

I am using nicla Voice for rain detection with a model build by EdgeImpulse  
There are two classes Rain and znoise i.e. not rain  
I would like to classifier output to show Rain / znoise  
but with continual rain I only get a couple of Rain outputs and then nothing.  
phbackoff is 5 for both classes.

This topic is similar

> [@Continuous sound classification](https://discourse.syntiant.com/t/continuous-sound-classification/62):
>
> Hi, I am trying to find a solution to problem described on Edge Impulse forum as well: Basically I need to repeatedly classify a sound which is continuous and uninterrupted. When I follow the examples for a keyword recognition the TinyML board provides classification typically on the beginning of such sound and then classification stops - apparently waiting for some change in the sound intensity. I understood that this behaviour might be changed by setting the json posterior parameters (phbac…

but no answer given there.

Questions  
1)How do I force continual match outputs?

1)Is there a low level function call to the NDP120 that will return the current clasification result, i.e. classes and their % match in an array/structure

3)What do the posterior parameters  
timeout 0  
timeout\_action “stay”  
timeout\_action\_arg 0  
do?  
Would changing these make any difference.?

I have already reduced the znoise phth to 30% to better pickup when it is not raining.

---

<div class="post-metadata">

**Author:** ![agiri](https://discourse.syntiant.com/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@agiri](https://discourse.syntiant.com/u/agiri)\
**Post date:** [June 13, 2024, 12:54pm UTC](https://discourse.syntiant.com/t/continuous-sound-identification-using-nicla-voice/122/2 "2024-06-13T12:54:59Z")

</div>

Hi @drmpf ,

Thank you for reaching out to us.  
We will get back to you soon with all the relevant information.  
Regards.

---

<div class="post-metadata">

**Author:** ![agiri](https://discourse.syntiant.com/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@agiri](https://discourse.syntiant.com/u/agiri)\
**Post date:** [June 17, 2024, 7:13am UTC](https://discourse.syntiant.com/t/continuous-sound-identification-using-nicla-voice/122/3 "2024-06-17T07:13:23Z")

</div>

Hello @drmpf

Responding to the queries,

> 1)How do I force continual match outputs?

Please clarify what is your size of rain detection pattern that you trained with.  
Ideally the EdgeImpulse examples as well as the audio examples listed like Nicla Voice, should do continuous inference. Please share some samples of audio files which is not doing continuous match.

> 2)Is there a low level function call to the NDP120 that will return the current clasification result, i.e. classes and their % match in an array/structure

For Arudino nicla voice, NDP has provided API - NDPClass:poll() which invokes the registered callbacks for the match and you can get the match classification label string results

> 3)What do the posterior parameters  
> timeout 0  
> timeout\_action “stay”  
> timeout\_action\_arg 0  
> do?  
> Would changing these make any difference.?

For the classification problem you are indicating of rain/no-rain, this is not applicable. Please leave it to default

---

<div class="post-metadata">

**Author:** ![michaelwilson](https://discourse.syntiant.com/letter_avatar_proxy/v4/letter/m/6bbea6/32.png) [@michaelwilson](https://discourse.syntiant.com/u/michaelwilson)\
**Post date:** [November 14, 2026, 1:33am UTC](https://discourse.syntiant.com/t/continuous-sound-identification-using-nicla-voice/122/4 "2026-11-14T01:33:41Z")

</div>

One likely reason you see only a couple of Rain outputs is that the NDP callback is event-driven, not a per-window print. If you need a continuous stream, call NDPClass::poll() and log the latest label/confidence at your own interval, or explicitly read the classifier output each inference window. Also verify the Impulse post-processing settings—phbackoff suppresses repeat triggers for N frames, so with sustained Rain above threshold you won’t get an output every window. The official reply’s request for your trained pattern length is relevant because short training windows can behave differently on long rain.
