Logo

phone_estimate.h

Go to the documentation of this file.
00001 /* 
00002 phone_estimate.h
00003 
00004 Copyright (C) 2005 Annosoft, LLC. Richardson, Texas. All rights reserved.  
00005     
00006 Permission is hereby granted, free of charge, to use and distribute
00007 this software and its documentation without restriction, including   
00008 without limitation the rights to use, copy, modify, merge, publish,  
00009 distribute, sublicense, and/or sell copies of this work, and to      
00010 permit persons to whom this work is furnished to do so, subject to   
00011 the following conditions:                                            
00012 1. The code must retain the above copyright notice, this list of    
00013     conditions and the following disclaimer.                        
00014 2. Any modifications must be clearly marked as such.                
00015 3. Original authors' names are not deleted.                         
00016 4. The name "Annosoft" and the authors' names can be not used to endorse or 
00017    promote products derived from this software without specific prior written       
00018    permission.                                            
00019 
00020 ANNOSOFT AND THE CONTRIBUTORS TO THIS WORK DISCLAIM ALL WARRANTIES 
00021 WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF 
00022 MERCHANTABILITY AND FITNESS, IN NO EVENT ANNOSOFT NOR THE CONTRIBUTORS 
00023 BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
00024 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   
00025 AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 
00026 OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 
00027 
00028 */  
00029 
00052 #ifndef _H_PHONE_CVT
00053 #define _H_PHONE_CVT
00054 
00055 // forward declaration
00056 class engine_phoneme_spec;
00057 
00089 class phoneme_estimator
00090 {
00091 public:
00093     phoneme_estimator();
00094 
00096     phoneme_estimator(engine_phoneme_spec* pSpec);
00097     
00099     void EstimatePhonemeAlignment(alignment_result& align);
00100 
00102     static void TrivialPhonemeAlignment(alignment_result& align);
00103 protected:
00105     engine_phoneme_spec* m_pSpec;
00106 };
00107 
00108 
00124 class engine_phoneme_spec
00125 {
00126 public:
00128     std::wstring enginePhoneme;
00130     std::wstring outputPhoneme;
00132     std::wstring desc;
00133 
00140     typedef enum phoneme_type
00141     {
00142         silence,    
00143         unvoiced,   
00144         voiced,     
00145         dipthong    
00146     };
00148     phoneme_type m_type;
00149 
00151     engine_phoneme_spec(const wchar_t * _enginePhn, wchar_t * _outputPhn, wchar_t* _desc, phoneme_type _pt)
00152     {
00153         enginePhoneme = _enginePhn;
00154         outputPhoneme = _outputPhn;
00155         desc = _desc;
00156         m_type = _pt;       
00157     }
00158 };
00159 
00160 
00161 
00162 #endif

Copyright (C) 2002-2005 Annosoft LLC. All Rights Reserved.
Visit us at www.annosoft.com