#include <VowelSample.h>
Collaboration diagram for VowelSample:

Public Member Functions | |
| VowelSample (bool record=false) | |
| ~VowelSample (void) | |
| bool | open (const char *filename, AudioPreprocessing &prep_template) |
| VowelSample (VowelSample &source) | |
| void | setCorrectVowel (VowelSampleType type) |
| bool | saveRawSample (const char *filename=0) |
| bool | isValidUserInformation (void) |
Public Attributes | |
| VowelSampleType | type_correct |
| vector< double > | sample |
| vector< double > | fft_energy |
| char * | filename |
| AUFile * | raw |
Private Member Functions | |
| bool | convertUserinfoToC (void) |
| void | convertCtoUserinfo (void) |
Private Attributes | |
| bool | info_success |
| VowelSampleInformation | info |
Used from the VowelSet class. Does the handling of audio files from the raw audio data to the neural network input.
|
|
Standard constructor.
|
|
|
Basic destructor. |
|
|
Copy constructor. |
|
|
Convert the class elements into the packed 'info' structure. |
|
|
Convert the user information within the 'info' structure to the corresponding class elements.
|
|
|
Getter for the user information structure success.
|
|
||||||||||||
|
Open an audio file Convert raw data raw using the audio preprocessor prep_template as processing template. All the conversion is done using the active settings of the template. Also extract the raw information structure stored with the AU file into a C level structure (VowelSampleInformation).
|
|
|
Save the raw data back to an AU file.
|
|
|
Set the correct vowel type for this sample.
|
|
|
The FFT energy array, showing the frequency based amplitude energy for the input sample. |
|
|
The original AU filename that produced the sample. |
|
|
Userdata part of the AU file converted to a real structure. Only used temporarily, no real processing takes place here except conversion before and after AUFile read/write operations. |
|
|
Flag, when true there is valid userdata. |
|
|
The original AU file associated with this sample. Warning: can be NULL. |
|
|
The processed audio sample. Stored as windows vectors of energy levels in the frequency windows. |
|
|
The correct type of vowel this sample represents. In case the vowel should be determined or is otherwise unknown, it can be set to 'unknown'. |
1.3-rc3