Audio_blocks

1 DOC++ generated API

API

2 Defined nodes

Class names in italic are abstract classes. Input, Output and Parameter names in italic are inherited from base class.
 
 

FrameOperation (Node)

Abstract class for an operation performed on frame(s)
 
NAME TYPE MEANING
Inputs none
Outputs OUTPUT undefined
Parameters OUTPUTLENGTH
LENGTH
Int
Int
Sets the length of the output vector(s)
Same as OUTPUTLENGTH but can also affect input lengths

 

FrameUnaryOperation (FrameOperation)

Abstract class defining an operation that takes one frame input and one frame output
 
NAME TYPE MEANING
Inputs INPUT Vector<float> The input of the operation
Outputs OUTPUT Vector<float> The result of the operation
Parameters INPUTLENGTH
LENGTH
INPUTLOOKAHEAD
INPUTLOOKBACK
Int
Int
Int
Int
Sets the length of the input vector(s)
Same as INPUTLENGTH but can also affect output length
How long can the operation look for the future of its input
How long can the operation look for the past of its input

 

FrameBinaryOperation (FrameOperation)

Abstract class defining an operation that takes one frame input and one frame output
 
NAME TYPE MEANING
Inputs INPUT1
INPUT2
Vector<float>
Vector<float>
The first input of the operation
The second input of the operation
Outputs OUTPUT Vector<float> The result of the operation
Parameters INPUT1LENGTH
INPUT2LENGTH
LENGTH
INPUT1LOOKAHEAD
INPUT1LOOKBACK
INPUT2LOOKAHEAD
INPUT2LOOKBACK
Int
Int
Int
Int
Int
Int
Int
Sets the length of the first input vector(s)
Sets the length of the second input vector(s)
Same as INPUTLENGTH's but can also affect output length
How long can the operation look for the future of its first input
How long can the operation look for the past of its first input
How long can the operation look for the future of its second input
How long can the operation look for the past of its second input

 

AudioFile (Node)

Uses the input stream to produce frames of the right length (also converts raw audio to float)
 
NAME TYPE MEANING
Inputs STREAM IFStream An open stream to read from
Outputs OUTPUT Vector<float> A frame from the stream converted into float
Parameters OUTPUTLENGTH
FRAMEADVANCE
ENCODING
Int
Int
String
The frame size
The frame advance 
valid encodings are: "ULAW", "ALAW", "LIN16", "LIN8"

 

FrameAccumulator (FrameOperation)

Accumulates all valid input frames and adds it to the output buffer
 
NAME TYPE MEANING
Inputs INPUT Vector<float> or not valid Vectors to accumulate
Outputs OUTPUT Buffer<Vector<float> > A buffer containing all valid input vectors
Parameters LENGTH
(CACHEALL)
Int
Int
The length of the frames to accumulate
If specified means to use a growing buffer (instead of a rotating buffer)

 

DLFrameUnaryOperation (FrameUnaryOperation)

Performs an (unary) operation on a frame using a dynamically loaded library. The list of implemented dymamically loadable modules is here.
 
NAME TYPE MEANING
Inputs INPUT Vector<float> The input frame
Outputs OUTPUT Vector<float> The output frame
Parameters LIBRARY
(ELEMENTS)
String
String
The name of the library to load for the operation
If specified, the symbol ELEMENTS is used on each 
element of the input vector

 

Concatenate (FrameBinaryOperation)

Concatenates two vectors together
 
NAME TYPE MEANING
Inputs INPUT1
INPUT2
Vector<float>
Vector<float>
The first vector to concatenate
The second vector to concatenate
Outputs OUTPUT Vector<float> The result of concatenation
Parameters INPUT1LENGTH
INPUT2LENGTH
OUTPUTLENGTH
Int
Int
Int
The length of the first input vector
The length of the second input vector
The length of the output vector

 

GMMTrain (Node)

Creates a GMM that best represents a set of input frames
 
NAME TYPE MEANING
Inputs FRAMES Buffer<ObjectRef> The input frames as a buffer of ObjectRef 
(pointing to Vector<float>)
Outputs OUTPUT GMM The GMM that best represents the input data
Parameters none

 

GMMScore (Node)

Scores a frame with a GMM and returns the score
 
NAME TYPE MEANING
Inputs FRAMES
GMM
Vector<float>
GMM
The frame to score
The GMM that will be used to score the frame
Outputs OUTPUT Float The output score
Parameters none



Jean-Marc Valin, Université de Sherbrooke
$Date: 1999/08/26 16:02:26 $