SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
sspmod_subsel_fr.c File Reference

Subselect frames. More...

Functions

void spr_subsel_fr_free (SprSspInfo *Info)
 
int spr_subsel_fr_setup (SprSspInfo *Info, const char **descript, void *aux_info)
 
int spr_subsel_fr_process (SprSspInfo *Info, const void *frame_in, void *frame_out)
 
void spr_subsel_fr_reset (SprSspInfo *Info, SprSspStatus *action)
 

Detailed Description

Subselect frames.

Subselect frames. Sub-selection can be based on the followin criteria:

  1. An external trigger. This makes it easy to (1) train gender (or dialect or speaker, or ...) dependent models, (2) allows for very flexible variable frame rate analysis and (3) allows feature base removal of part of the data (e.g. remove long stretches of silence).
  2. Fixed rate sub-selection (M out of N frames); this allows part of the preprocessing to run at a higher frame rate that the rest.
  3. The N'th or last frame. This allows the generation of summary statistics per file

If multiple selection criteria are specified, they are applied in the order they are listed above.


[subsel_fr]
event <copy/move> <buf_name>
Specify an event buffer, i.e. an external trigger that marks frames a being OK for output (the rest is skipped).
sample <down>(1) [up](1) [v0](0)
Do fixed rate sub-sampling (<up> must be <= <down>). A counter (with <v0> as initial value) is incremented with the <up> value for each incomming frame. As long as the value of the counter is smaller than <down>, the frames are skipped, else the frame is output and the counter is decremented by the value <down>.
iframe <ndx>(-2)
Select a specific frame. (-1) means the last frame.
multi_spkr <copy/move> <buf_name>
Do the sub-selection on a speaker base.
history <hist_len>
Limit the history length to <hist_len> (is infinity otherwise).

See Also
ssp_master.c
Author
Kris Demuynck
Date
19 May 2009