Displaying 2 results from an estimated 2 matches for "active_bands".
2005 Jun 20
1
Speech detection in preprocessor with echo
...able adaptation, so I can freeze it at a certain level while
speech is not detected. It's mostly just a matter of doing this at the
end of speex_compute_agc():
if (!st->agc_frozen)
{
agc_gain = st->agc_level/st->loudness2;
/*fprintf (stderr, "%f %f %f %f\n", active_bands, st->loudness, st->loudness2, agc_gain);*/
if (agc_gain>st->agc_max_gain) /* was 200 */
agc_gain = st->agc_max_gain; /* was 200*/
}
else
agc_gain = st->agc_gain;
st->agc_gain = agc_gain;
and adding a few items to speex_preprocess_ctl() and the state struc...
2005 Jun 22
1
Speech detection in preprocessor with echo
...; speech is not detected. It's mostly just a matter of doing this at the
> > end of speex_compute_agc():
> >
> > if (!st->agc_frozen)
> > {
> > agc_gain = st->agc_level/st->loudness2;
> > /*fprintf (stderr, "%f %f %f %f\n", active_bands, st->loudness, st->loudness2, agc_gain);*/
> > if (agc_gain>st->agc_max_gain) /* was 200 */
> > agc_gain = st->agc_max_gain; /* was 200*/
> > }
> > else
> > agc_gain = st->agc_gain;
> > st->agc_gain = agc_gain;
> >...