mirror of https://github.com/drowe67/LPCNet.git
resolved compile issues due to merge
parent
55f1db3113
commit
70aded5485
|
@ -134,7 +134,7 @@ void lpcnet_open_test_file(LPCNetState *lpcnet, char file_name[]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void lpcnet_synthesize(LPCNetState *lpcnet, short *output, const float *features, int N)
|
void lpcnet_synthesize(LPCNetState *lpcnet, short *output, const float *features, int N, int logmag)
|
||||||
{
|
{
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -243,7 +243,7 @@ void lpcnet_dump(LPCNET_DUMP *d, float x[], float features[])
|
||||||
c2_Sn[i+c2_Sn_size-c2_frame_size] = x[i];
|
c2_Sn[i+c2_Sn_size-c2_frame_size] = x[i];
|
||||||
|
|
||||||
float f0, voicing, snr; int pitch_index;
|
float f0, voicing, snr; int pitch_index;
|
||||||
pitch_index = codec2_pitch_est(d->c2pitch, c2_Sn, &f0, &voicing), &snr;
|
pitch_index = codec2_pitch_est(d->c2pitch, c2_Sn, &f0, &voicing, &snr);
|
||||||
if (pitch_index >= 2*PITCH_MAX_PERIOD) pitch_index = 2*PITCH_MAX_PERIOD-1;
|
if (pitch_index >= 2*PITCH_MAX_PERIOD) pitch_index = 2*PITCH_MAX_PERIOD-1;
|
||||||
if (pitch_index < 2*PITCH_MIN_PERIOD) pitch_index = 2*PITCH_MIN_PERIOD;
|
if (pitch_index < 2*PITCH_MIN_PERIOD) pitch_index = 2*PITCH_MIN_PERIOD;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue