[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01681] Re: STRAIGHT Demo


Hi,

Kim, SangJin wrote (2008/09/11 7:51):

I extracted BAP from AP, and then reconstructed AP from BAP without HTS-training
...
I found that the reconstructed AP data is very much different from original AP.
The reconstructed AP data seems rather abnormal (or unstable).
I also guess that the problem might be cause by "${DFS} -a 1 -1" Even though the reconstructed AP looks strange, the speech is still synthesized. Is there anyone who has similar results?

I checked it both on WinXP+Cygwin & Linux and found that it happened on Cygwin only. And I also found that "${INTERPOLATE} -p rather than "DFS -a 1 -1" caused this problem. Please apply the attached patch code to interpolation.c and report whether it solves your problem or not.

Regards,

Heiga ZEN (Byung Ha CHUN)

--
------------------------------------------------
 Heiga ZEN     (in Japanese pronunciation)
 Byung Ha CHUN (in Korean pronunciation)
------------------------------------------------
--- interpolate.c	Thu Sep 11 08:52:10 2008
+++ interpolate.c	Thu Sep 11 08:48:08 2008
@@ -97,7 +97,6 @@
 /*  Default Values  */
 #define PERIOD 10
 #define START 0
-#define PADINPUT FA
 
 char *BOOL[] = {"FALSE", "TRUE"};
 
@@ -115,7 +114,6 @@
    fprintf(stderr, "  options:\n");
    fprintf(stderr, "       -p p  : interpolation period         [%d]\n", PERIOD);
    fprintf(stderr, "       -s s  : start sample                 [%d]\n", START);
-   fprintf(stderr, "       -d    : padding input rather than 0  [%s]\n", BOOL[PADINPUT]); 
    fprintf(stderr, "       -h    : print this message\n");
    fprintf(stderr, "  infile:\n");
    fprintf(stderr, "       data sequence (%s)        [stdin]\n", FORMAT);
@@ -136,7 +134,6 @@
    int  i, period=PERIOD, start=START;
    FILE *fp=stdin;
    double *x;
-   Boolean padinput;
 
    if ((cmnd=strrchr(argv[0], '/'))==NULL)
       cmnd = argv[0];
@@ -153,9 +150,6 @@
             start = atoi(*++argv);
             --argc;
             break;
-         case 'd':
-            padinput = 1 - padinput;
-            break;
          case 'h':
             usage(0);
          default:
@@ -170,13 +164,8 @@
 
    fwritef(x, sizeof(*x), start, stdout);
 
-   while (freadf(x, sizeof(*x), 1, fp)==1) {
-      if (padinput) {
-         for (i=1; i<period; i++)
-            x[i] = x[0];
-      }
+   while (freadf(x, sizeof(*x), 1, fp)==1)
       fwritef(x, sizeof(*x), period, stdout);
-   }
 
    return(0);
 }

Follow-Ups
[hts-users:01682] Re: STRAIGHT Demo, Heiga ZEN (Byung Ha CHUN)
References
[hts-users:01660] STRAIGHT Demo, Xingchi Xian
[hts-users:01679] Re: STRAIGHT Demo, Kim, SangJin