Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OLA_Unit Class Reference
[BOSS OLA Module]

Class representing one speech unit. More...

#include <ola_unit.h>

Inheritance diagram for OLA_Unit:

ConmanUnit List of all members.

Public Member Functions

 OLA_Unit (BOSS::Config &__config, MySQL_Handler *__database, xercesc::DOMNode *n, const string &t, const string &i)
 The OLA_Unit constructor for non-pause units.

 OLA_Unit (BOSS::Config &__config, MySQL_Handler *__database, xercesc::DOMNode *n, const string &t)
 The OLA_Unit constructor for the units representing a pause.

OLA_Unitoperator= (const OLA_Unit &other)
 OLA_Unit assignment operator.

void manipulate (vector< Phone > &phones, PitchContour &contour)
OLA_Frame< short > nextOLA_Frame ()
 Returns next double period.

long nextPeriodLength ()
 Returns the length of the next fundamental period.

long getSignalLength ()
 Returns total signal length.

bool endReached ()
 Checks if we are on the end of pitchmarks already.

bool selfCheck ()
 Performs an internal self check.

void loadPhoneticInformation (vector< Phone > &phones)
 Loads phonetic information about current unit. Especially the phones borders in the signal, which are used by the duration manipulation algorithm.


Public Attributes

double start_time
double end_time
long index
SampledSignal< short > signal
Pitchmarks pitchmarks
Pitchmarks pitchContour

Protected Member Functions

Phone getPhone (const DOM_UserData::Node_Type &type, const string &number, const string &inventory)
 Retrieve data from the BOSS corpus database about a signle phone.

void getPhones (const DOM_UserData::Node_Type &type, const string &number, const string &inventory, vector< Phone > &phones)
 Gets phones.


Detailed Description

Class representing one speech unit.


Constructor & Destructor Documentation

OLA_Unit::OLA_Unit BOSS::Config __config,
MySQL_Handler __database,
xercesc::DOMNode *  n,
const string &  t,
const string &  inventory
 

The OLA_Unit constructor for non-pause units.

Author:
Michal Holcik

OLA_Unit::OLA_Unit BOSS::Config __config,
MySQL_Handler __database,
xercesc::DOMNode *  n,
const string &  t
 

The OLA_Unit constructor for the units representing a pause.

Author:
Stefan Breuer


Member Function Documentation

bool OLA_Unit::endReached  ) 
 

Checks if we are on the end of pitchmarks already.

Returns:
true iff we read all but one pitchmarks; false otherwise.

Phone OLA_Unit::getPhone const DOM_UserData::Node_Type type,
const string &  number,
const string &  inventory
[protected]
 

Retrieve data from the BOSS corpus database about a signle phone.

void OLA_Unit::getPhones const DOM_UserData::Node_Type type,
const string &  number,
const string &  inventory,
vector< Phone > &  phones
[protected]
 

Gets phones.

long OLA_Unit::getSignalLength  ) 
 

Returns total signal length.

void OLA_Unit::loadPhoneticInformation vector< Phone > &  phones  ) 
 

Loads phonetic information about current unit. Especially the phones borders in the signal, which are used by the duration manipulation algorithm.

void OLA_Unit::manipulate vector< Phone > &  phones,
PitchContour contour
 

Performs the frequency and duration manipulation.

OLA_Frame< short > OLA_Unit::nextOLA_Frame  ) 
 

Returns next double period.

Returns:
next double-period

long OLA_Unit::nextPeriodLength  ) 
 

Returns the length of the next fundamental period.

OLA_Unit & OLA_Unit::operator= const OLA_Unit other  ) 
 

OLA_Unit assignment operator.

bool OLA_Unit::selfCheck  ) 
 

Performs an internal self check.

Returns:
true iff the class data is consistent; false otherwise


Member Data Documentation

double OLA_Unit::end_time
 

long OLA_Unit::index
 

Pitchmarks OLA_Unit::pitchContour
 

Pitchmarks OLA_Unit::pitchmarks
 

SampledSignal<short> OLA_Unit::signal
 

double OLA_Unit::start_time
 


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 23:14:41 2005 for BOSS by doxygen 1.3.6