class PhoneInfo

This class contains the names of the phonemes that make up the words in the lexicon.

Inheritance:


Public Methods

[more] PhoneInfo()
Creates an empty PhoneInfo instance
[more]char* getPhone( int index )
Returns a pointer to the phoneme name at position "index" in the list

Public Members

[more] Reads the phone information from 'phones_fname' file.
[more] Looks at the first line of the file.
[more] If it is "PHONE" then the file is assumed to be in Noway phone models format.
[more] If it is "~o" then the file is assumed to be in HTK model definition format
[more] Otherwise the file is assumed to contain just a straight list of phone names
[more] If the sil_name and pause_name params are set, then the indices of the
[more] Adds a phoneme to the end of the list of phonemes
[more] is_sil and is_pause indicate if the phoneme is one of the special phonemes
[more] Does a linear search through the list and returns the index of the
[more] phoneme name supplied as a parameter


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid 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.

o PhoneInfo()
Creates an empty PhoneInfo instance

o Reads the phone information from 'phones_fname' file.
Reads the phone information from 'phones_fname' file.

o Looks at the first line of the file.
Looks at the first line of the file.

o 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.

o 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

o 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

o 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

o Adds a phoneme to the end of the list of phonemes
Adds a phoneme to the end of the list of phonemes

o 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

ochar* getPhone( int index )
Returns a pointer to the phoneme name at position "index" in the list

o 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

o 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++.