Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

phrase.h

Go to the documentation of this file.
00001 
00024 #ifndef _PHRASE_H_
00025 #define _PHRASE_H_
00026 
00027 #include "syllable.h"
00028 
00029 
00047 class phrase {
00048   vector<syllable> syllableVec;
00049   uint meanF0; // avr. val of all f0Vals
00050   uint dur; // duration of phrase in msec
00051  private:
00052   void calcDur();
00053  public:
00054   // constructor
00055   
00060   uint MeanF0();
00065   void calcMeanF0();
00066 
00071   double F0Range();
00072 
00077   void printSyllableVec(ostream &outFile);
00078   
00097   void readPhoFile(istream &inFile, globalsT &kg);
00098 
00107   void readPhoList(istream &inFile, globalsT &kg);
00108 
00117   void readF0FromDB(string diphonBase, globalsT &glob);
00118 
00137   void readPhonData(string diphonBase, globalsT &glob);
00138 
00139 
00149   void modelKlattParameters(globalsT &glob);
00150 
00158   void modelFeatures(globalsT &kg); 
00159   
00164   void printPhonMeanF0(ostream &outFile);
00165   
00170   void printPhonFeatures(ostream &outFile);
00171   
00179   void printPhoFile(ostream &outFile, globalsT glob);
00180 
00186   void printLabelFile(ostream &outFile, globalsT globals);
00187   
00194   void printKlattFile(ostream &outFile);
00195 
00203    void printSenSynFile(globalsT globals, ostream &outFile);
00204 
00212   void makeTest(globalsT globals, uint dur);
00213   
00214   // modification-methods
00215   // duration modifications:
00216 
00229   void changeSpeechRate(uint rate, globalsT globals, int method);  
00230 
00241   void changeDurStressed(uint rate, uint both, globalsT globals);
00242   
00253   void changeDurNonStressed(uint rate, uint both, globalsT globals);
00254   
00262   void changeDurManner(PHON_MANNER manner, uint rate, globalsT globals);
00263 
00264   // intensity modifications
00265 
00276   void changeStressedInt(int dBVal, uint both, globalsT globals);
00277  
00278   // f0-contour modifications:
00287   void  changeMeanF0(uint rate, globalsT glob);
00288 
00295   void  smootheF0(uint winsize, globalsT glob);
00296 
00307   void changeStressedAvrF0(uint rate, uint both, globalsT glob);
00308 
00319   void changePreStressedAvrF0(uint rate, uint both, globalsT glob);
00320 
00331   void  changeF0Range(uint rate, globalsT glob);
00332 
00340   void  changeVariability(uint rate, globalsT glob);
00341 
00357   void changePitchContourStressed(CONTOUR_TYPE contour, uint gradient, uint both, globalsT glob);
00358 
00372   void changeLastSylContour(CONTOUR_TYPE contour, uint gradient, globalsT glob);
00373 
00385   void changePhraseContour(CONTOUR_TYPE contour, uint rate, globalsT glob);
00386 
00395   void changePhraseContourToAccent(uint rate, globalsT glob);
00396 
00413   void addWave(uint accRate, uint nonAccRate, uint method, globalsT glob);
00414 
00415 
00416   // voice/speaking-style modifications: 
00427   void overshootVowels(ACCENT_TYPE accent, uint rate, globalsT glob);
00428 
00438   void undershootVowels(ACCENT_TYPE accent, uint rate, globalsT glob);
00439 
00440 
00447   void spread(uint rate, globalsT glob);
00448 
00456   void rounded(uint rate, globalsT glob);
00457 
00464   void headSize(uint rate, globalsT glob);
00465 
00480   void coarticulation(uint rate, CO_TYPE coType, globalsT glob);
00481 
00489 void assimilateConsonants(globalsT glob);
00490 
00491 
00502   void phrase::addJitter(ACCENT_TYPE accent, uint rate, uint method, globalsT glob);
00503  
00509   void phrase::addBreathy(uint rate, globalsT glob);
00510   
00516   void phrase::addTense(uint rate, globalsT glob);
00517 
00523   void phrase::addWhisper(uint rate, globalsT glob);
00524 
00531   void phrase::addLaryngealized(uint rate, globalsT glob);
00532 
00538   void phrase::addCreaky(uint rate, globalsT glob);
00539 
00545   void phrase::addFalsett(uint rate, globalsT glob);
00546  
00547   
00548 };
00549 
00550 #endif /* _PHRASE_H_ */
00551 
00552 
00553 
00554 
generated by doxygen