Library Name: lib_sp.a
Introduction:
The signal processing library builds on the algorithm library,
and implements a general front end for signal data processing.
This library contains classes, such as Recipe, that support the
signal flow graph handling mechanisms found in isip_transform.
This library also contains classes such as FrontEnd
that provide a high-level interface to the signal processing
components of a speech recognition system.
Example:
01 // file: $isip/doc/examples/class/sp/sp_example_00/example.cc
02 // version: $Id: index.html 10261 2005-09-23 14:51:33Z srinivas $
03 //
04
05 // isip include files
06 //
07 #include
08
09 // main program starts here
10 //
11 int main(int argc, const char** argv) {
12
13 // declare local variables
14 //
15 AudioFrontEnd reg_fe;
16 Filename reg_file(L"$ISIP_DEVEL/doc/examples/data/audio/little_endian.raw");
17
18 // setup the front end
19 //
20 Sof sof;
21 sof.open(L"diagnose_filter.sof");
22 reg_fe.read(sof, 0);
23 sof.close();
24
25 // perform data processing through the front end
26 //
27 Filename input(reg_file);
28 Filename output(L".new_audio0.raw");
29 Console::put(L"running file 0");
30 reg_fe.setDebug(Integral::BRIEF);
31 reg_fe.run(output, input);
32
33 // exit gracefully
34 //
35 Integral::exit();
36 }
Explanation:
We first configure a AudioFrontEnd object by reading its parameters
from the parameter file (line 22). Then we specify the input (line 27)
and output (line 28) filename. After running the AudioFrontEnd (line
31), the output file stores the output of signal data processing.
The signal processing classes that are available include:
The software corresponding to the examples demonstrated in this document
can be found in our
documentation directory
under
class/sp/.