Audio signal processing, sometimes referred to as audio processing, is the intentional alteration of auditory signals, or sound.
This package contains data type definitions related to audio processing.
See also
Deinterleaved sound chunk data needed by audiocues component.
Todo
What is deinterleaved sound chunk data?
Code author: Antoine Deleforge <antoine.deleforge@inrialpes.fr>
Type : | array of rst.audition.FloatSoundArray |
---|
TODO
Type : | UINT32 |
---|
TODO @unit(hz?)
Type : | UINT32 |
---|
Unit: number
TODO
message FormattedSoundChunk {
/**
* See alaudio/alsoundextractor.h from aldebaran for more
* information.
* @todo "this explanation is not helpful"
*/
enum ChannelType {
ALL = 0;
LEFT = 1;
RIGHT = 2;
FRONT = 3;
REAR = 4;
}
/**
* TODO
*/
repeated FloatSoundArray data = 1;
/**
* TODO
*/
// @unit(hz?)
required uint32 rate = 2;
/**
* TODO
*/
// @unit(number)
optional uint32 channels = 3 [default = 2];
};
enum ChannelType {
ALL = 0;
LEFT = 1;
RIGHT = 2;
FRONT = 3;
REAR = 4;
}
Deinterleaved float array needed by audiocues component
Todo
what is a deinterleaved float array?
Code author: Antoine Deleforge <antoine.deleforge@inrialpes.fr>
Type : | array of FLOAT32 |
---|
Unit: TODO
TODO
message FloatSoundArray {
/**
* TODO
*/
// @unit(TODO)
repeated float floatbuffer = 1;
};
Constraint: len(.value) = len(.weight)
Interaural time difference measurements.
Code author: TODO Vasil <Khalidov> <vasil.khalidov@idiap.ch>
Type : | array of FLOAT32 |
---|
Unit: seconds
TODO ITD values
Type : | array of FLOAT32 |
---|
Constraint: sum to 1
Constraint: 0 <= value <= 1
Unit: number
TODO Weights of the ITD value
Type : | FLOAT32 |
---|
Unit: second
TODO Frame shift between time windows
Type : | FLOAT32 |
---|
Unit: second
Length of the time window to compute an ITD value.
message InterauralTimeDifference {
/**
* TODO ITD values
*/
// @unit(seconds)
repeated float value = 1;
/**
* TODO Weights of the ITD value
*/
// @constraint(sum to 1)
// @constraint(0 <= value <= 1)
// @unit(number)
repeated float weight = 2;
/**
* TODO Frame shift between time windows
*/
// @unit(second)
required float frame_shift = 3;
/**
* Length of the time window to compute an ITD value.
*/
// @unit(second)
required float time_window = 4;
}
Constraint: len(.data) == 8 * .channels * .sample_count * TODO(.sample_type)
Objects of this represent a chunk of an audio stream.
The audio information for one or more channels is stored in data as a sequence of sample_count encoded samples, the encoding of which is described by endianness and sample_type.
Depending on the sample rate (rate), such a chunk of audio corresponds to a certain amount of time during which its samples have been recorded.
Interpretation of RSB timestamps:
Code author: David Klotz <dklotz@techfak.uni-bielefeld.de>
Type : | OCTET-VECTOR |
---|
TODO
Type : | UINT32 |
---|
Unit: number
TODO
Type : | UINT32 |
---|
Unit: number
TODO
Type : | UINT32 |
---|
Unit: hz
TODO
Type : | rst.audition.SoundChunk.SampleType |
---|
TODO
Type : | rst.audition.SoundChunk.EndianNess |
---|
TODO
message SoundChunk {
/**
* TODO
*/
enum SampleType {
/**
* Signed 8-bit samples.
*/
SAMPLE_S8 = 0;
/**
* Unsigned 8-bit samples.
*/
SAMPLE_U8 = 1;
/**
* Signed 16-bit samples.
*/
SAMPLE_S16 = 2;
/**
* Unsigned 16-bit samples.
*/
SAMPLE_U16 = 4;
/**
* Signed 24-bit samples.
*/
SAMPLE_S24 = 8;
/**
* Unsigned 24-bit samples.
*/
SAMPLE_U24 = 16;
}
/**
* TODO
*/
enum EndianNess {
ENDIAN_LITTLE = 0;
ENDIAN_BIG = 1;
}
/**
* TODO
*/
required bytes data = 1;
/**
* TODO
*/
// @unit(number)
required uint32 sample_count = 2;
/**
* TODO
*/
// @unit(number)
optional uint32 channels = 3 [default = 1];
/**
* TODO
*/
// @unit(hz)
optional uint32 rate = 4 [default = 44100];
/**
* TODO
*/
optional SampleType sample_type = 5 [default = SAMPLE_S16];
/**
* TODO
*/
optional EndianNess endianness = 6 [default = ENDIAN_LITTLE];
// TODO: interleaving type?
}
enum SampleType {
/**
* Signed 8-bit samples.
*/
SAMPLE_S8 = 0;
/**
* Unsigned 8-bit samples.
*/
SAMPLE_U8 = 1;
/**
* Signed 16-bit samples.
*/
SAMPLE_S16 = 2;
/**
* Unsigned 16-bit samples.
*/
SAMPLE_U16 = 4;
/**
* Signed 24-bit samples.
*/
SAMPLE_S24 = 8;
/**
* Unsigned 24-bit samples.
*/
SAMPLE_U24 = 16;
}
enum EndianNess {
ENDIAN_LITTLE = 0;
ENDIAN_BIG = 1;
}
Enter search terms or a module, class or function name.