Further information about the module:
The FeatureSet object consists of Features either of type SVector or FMatrix.
FeatureSet
and a user definded name:
% FeatureSet fs fsMain properties of a FeatureSet are the standard sampling rate in kHz and the standard frame shift in ms which can be read or set with the
configure
command:
% fs configure -samplingRate 16 % fs configure -frameShift 10Using the name of the FeatureSet as a command gives the names of the Features in the FeatureSet:
% fs ADC melscaleA single feature can be accessed using a ':'. Properties of the Features are the feature's sampling rate in kHz and the frame shift in ms which can be different from the standard values of the FeatureSet. SVector features also have a number of samples
sampleN
and FMatrix features a number of frames and coefficients frameN
and coeffN
.
% fs:ADC configure {-samplingRate 16} {-shift 0} {-sampleN 35168} % fs:melscale configure {-samplingRate 16} {-shift 10} {-frameN 219} {-coeffN 16}
FeatureSet fs fs FMatrix matA {{11 12 13} {21 22 23} {31 32 33}} fs FMatrix matB fs SVector dirac {1 0 0 0 0 0 0 0 0 0 0 0 0 0} fs SVector zero 100Here 'matB' is an empty matrix and the SVector feature 'zero' contains 100 zeros. Instead of typing the matrix or vector it can also be read from a file:
fs FMatrix matA @matA_fileNameSpeech recordings or already calculated speech features are stored in a binary form and can be read with the methods readADC and read:
fs readADC AUDIO audioFileName fs read MELSCALE melscaleFileNameNotice that 'AUDIO' is an SVector feature whereas 'MELSCALE' is an FMatrix feature.