*/
if ((frames%2) == 0) {
- printf("frame: %d\n", frames);
+ //printf("frame: %d\n", frames);
/* decode interpolated frame */
prev_lsps_, prev_e, lsps_, e, ak_interp, lsps_interp);
apply_lpc_correction(&interp_model);
- /* used to compare with c2enc/c2dec version */
+ /* used to compare with c2enc/c2dec version
printf(" Wo: %1.5f L: %d v1: %d prev_e: %f\n",
interp_model.Wo, interp_model.L, interp_model.voiced, prev_e);
for(i=0; i<10; i++)
printf("%5.3f ",model.A[i]);
printf("\n");
-
+ */
#ifdef DUMP
/* do dumping here so we get lsp dump file in correct order */
/* frame 1: - we just want voicing -------------------------------- */
- printf("frame: %d\n", ++frames);
+ //printf("frame: %d\n", ++frames);
analyse_one_frame(c2, &model, speech);
voiced1 = model.voiced;
/* frame 2: - predictive VQ LSP and Wo ---------------------------- */
- printf("frame: %d\n", ++frames);
+ //printf("frame: %d\n", ++frames);
analyse_one_frame(c2, &model, &speech[N]);
voiced2 = model.voiced;
Wo_index = encode_Wo(model.Wo);
e = speech_to_uq_lsps(lsps, ak, c2->Sn, c2->w, LPC_ORD);
- printf(" lsps........: ");
- for(i=0; i<LPC_ORD; i++)
- printf("%5.3f ", lsps[i]);
- printf("\n");
+ //printf(" lsps........: ");
+ //for(i=0; i<LPC_ORD; i++)
+ // printf("%5.3f ", lsps[i]);
+ //printf("\n");
encode_lsps_vq(lsp_indexes, lsps, lsps_, LPC_ORD);
energy_index = encode_energy(e);
/* frame 3: - we just want voicing --------------------------------- */
- printf("frame: %d\n", ++frames);
+ //printf("frame: %d\n", ++frames);
analyse_one_frame(c2, &model, &speech[2*N]);
voiced3 = model.voiced;
/* frame 4: - voicing and delta Wo ----------------------------- */
- printf("frame: %d\n", ++frames);
+ //printf("frame: %d\n", ++frames);
analyse_one_frame(c2, &model, &speech[3*N]);
voiced4 = model.voiced;
apply_lpc_correction(&model_interp);
frames += 2;
- /* used for comparing to c2sim version */
+ /* used for comparing to c2sim version
printf("frame: %d\n", frames);
printf(" Wo: %1.5f L: %d v1: %d prev_e: %f\n",
model_interp.Wo, model_interp.L, model_interp.voiced, c2->prev_energy);
for(i=0; i<10; i++)
printf("%5.3f ",model.A[i]);
printf("\n");
-
+ */
/* synthesise frame 1 and frame 2 10ms frames */
apply_lpc_correction(&model_interp);
frames +=2;
- /* used for comparing to c2sim version: */
+ /* used for comparing to c2sim version:
printf("frame: %d\n", frames);
printf(" Wo: %1.5f L: %d v1: %d prev_e: %f\n",
for(i=0; i<10; i++)
printf("%5.3f ",model.A[i]);
printf("\n");
+ */
/* synthesise frame 3 and frame 4 10ms frames */