mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 06:01:53 +00:00
[1.31.07]
intonation: changed comma intonation for intonation type 2. intonation: adjusted exclamation (make the nuclear syllable emphasized). intonation: split intonation table into body and nucleus parts. lang-zh: only length tones 2,3 at end of sentence. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@137 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+4
-4
@@ -791,8 +791,8 @@ void SpectSeq::CopyDown(int frame, int direction)
|
||||
} // end of CopyDown
|
||||
|
||||
|
||||
void SpectSeq::MakePitchenv(PitchEnvelope &pitchenv)
|
||||
{//=================================================
|
||||
void SpectSeq::MakePitchenv(PitchEnvelope &pitchenv, int start_frame, int end_frame)
|
||||
{//=================================================================================
|
||||
double f;
|
||||
double min=8000;
|
||||
double max=0;
|
||||
@@ -808,7 +808,7 @@ void SpectSeq::MakePitchenv(PitchEnvelope &pitchenv)
|
||||
|
||||
memset(pitchenv.env,127,128);
|
||||
|
||||
for(ix=0; ix<numframes; ix++)
|
||||
for(ix=start_frame; ix<=end_frame; ix++)
|
||||
{
|
||||
if((f = frames[ix]->pitch) == 0) continue;
|
||||
nx++;
|
||||
@@ -837,7 +837,7 @@ void SpectSeq::MakePitchenv(PitchEnvelope &pitchenv)
|
||||
ay = new float[nx+1];
|
||||
|
||||
nx = 0;
|
||||
for(ix=0; ix<numframes; ix++)
|
||||
for(ix=start_frame; ix<=end_frame; ix++)
|
||||
{
|
||||
if((f = frames[ix]->pitch) == 0) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user