This class contains the names of the phonemes that make up the words in the lexicon.
Inheritance:
Public Methods
-
PhoneInfo()
- Creates an empty PhoneInfo instance
-
char* getPhone( int index )
- Returns a pointer to the phoneme name at position "index" in the list
Public Members
-
Reads the phone information from 'phones_fname' file.
-
Looks at the first line of the file.
-
If it is "PHONE" then the file is assumed to be in Noway phone models format.
-
If it is "~o" then the file is assumed to be in HTK model definition format
-
Otherwise the file is assumed to contain just a straight list of phone names
-
If the sil_name and pause_name params are set, then the indices of the
-
Adds a phoneme to the end of the list of phonemes
-
is_sil and is_pause indicate if the phoneme is one of the special phonemes
-
Does a linear search through the list and returns the index of the
-
phoneme name supplied as a parameter
Inherited from Object:
Public Fields
-
Allocator* allocator
Public Methods
-
void addOption(const char* name, int size, void* ptr, const char* help="")
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="")
-
void addROption(const char* name, real* ptr, real init_value, const char* help="")
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
-
void addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
void setOOption(const char* name, Object* option)
-
virtual void loadXFile(XFile* file)
-
virtual void saveXFile(XFile* file)
-
void load(const char* filename)
-
void save(const char* filename)
-
void* operator new(size_t size, Allocator* allocator_=NULL)
-
void* operator new(size_t size, Allocator* allocator_, void* ptr_)
-
void operator delete(void* ptr)
Documentation
This class contains the names of the phonemes that make up
the words in the lexicon. An empty instance can be created,
and then phones added manually using the addPhone method,
or a filename can be specified containing phone information.
The list of phone names is then extracted automatically
from the file.
- PhoneInfo()
- Creates an empty PhoneInfo instance
- Reads the phone information from 'phones_fname' file.
- Reads the phone information from 'phones_fname' file.
- Looks at the first line of the file.
- Looks at the first line of the file.
- If it is "PHONE" then the file is assumed to be in Noway phone models format.
- If it is "PHONE" then the file is assumed to be in Noway phone models format.
- If it is "~o" then the file is assumed to be in HTK model definition format
- If it is "~o" then the file is assumed to be in HTK model definition format
- Otherwise the file is assumed to contain just a straight list of phone names
- Otherwise the file is assumed to contain just a straight list of phone names
- If the sil_name and pause_name params are set, then the indices of the
- If the sil_name and pause_name params are set, then the indices of the
- Adds a phoneme to the end of the list of phonemes
- Adds a phoneme to the end of the list of phonemes
- is_sil and is_pause indicate if the phoneme is one of the special phonemes
- is_sil and is_pause indicate if the phoneme is one of the special phonemes
- char* getPhone( int index )
- Returns a pointer to the phoneme name at position "index" in the list
- Does a linear search through the list and returns the index of the
- Does a linear search through the list and returns the index of the
- phoneme name supplied as a parameter
- phoneme name supplied as a parameter
- This class has no child classes.
- Author:
- Darren Moore (moore@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.