[hts-users:03640] Re: v2.2 STRAIGHT demo: MGC2SP usage bug?
- Subject: [hts-users:03640] Re: v2.2 STRAIGHT demo: MGC2SP usage bug?
- From: Keiichiro Oura <uratec@xxxxxxxxxxxxxxx>
- Date: Wed, 27 Feb 2013 02:20:41 +0900
- Cc: uratec <uratec@xxxxxxxxxxxx>
- Delivered-to: hts-users@xxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rWY9FV/AqCSC5oEOGzkQEKJVwmNkOb7ZBgCVb84CGjk=; b=SpeKj3wEnNdOC5cE7CA8RvzKF4T/VWxsrzjgZO/oRX5Tl91Lik7xEUwaauyOlg11zR ZISwQ9nX86qy4FjEIc1ODBYp88tG69ee9DjAbyaJuMymls00tTXW0wIgaL7MosUCX4mP AQfgpr2VccVzODTywZkNTXN01DSvbsuU6HOuP01sXA/wmtjPz6ISYkgCBPk385pYzsZ9 fU0TZsDaYAsmyFz02P196I/u9292+mVfPTs4f0Gc2rZuFiY29j0wg1goDVe/qLnPMxvL Mk+W4sjoQAGdWk6BCW7GSi3gKu+gPVqBTZAMlWIBbQ15pft9BbjI+3iba+kYBI5xzWNB 3HRQ==
Hi,
Please, check HTS-2.3 alpha.
In HTS-2.3 alpha, sp and ap are 1025 float vector sequences as follows.
printf SYN "sp = fread(fid1,[%d, %d],'float');\n", 1025, $T;
printf SYN "ap = fread(fid2,[%d, %d],'float');\n", 1025, $T;
printf SYN "f0 = fread(fid3,[%d, %d],'float');\n", 1, $T;
Thank you for your report.
Regards,
Keiichiro Oura
2013/2/23 David Klein <dklein@xxxxxxxxxxxx>:
> One more thing, if this is corrected, then the following line also has to be
> corrected:
>
>
>
> printf SYN "sp = fread(fid1,[%d, %d],'float');\n", 513, $T;
>
>
>
> Here, 513 should be changed to 1025.
>
>
>
> --David
>
>
>
> From: David Klein [mailto:dklein@xxxxxxxxxxxx]
> Sent: Friday, February 22, 2013 3:22 PM
> To: hts-users@xxxxxxxxxxxxxxx
> Subject: [hts-users:03636] v2.2 STRAIGHT demo: MGC2SP usage bug?
>
>
>
> In Training.pl of HTS-demo_CMU-ARCTIC-SLT_STRAIGHT, there is this usage of
> MGC2SP:
>
>
>
> shell( "$MGC2SP -a $fw -g $gm -m " . ( $ordr{'mgc'} - 1 ) . " -l 1024 -o 2
> $mgc > $gendir/$base.sp" );
>
>
>
> The output $base.sp is later read into MATLAB and passed into the STRAIGHT
> synthesis function, along with the corresponding $base.ap and $base.f0.
>
>
>
> I noticed that in MATLAB, the sp and ap data do not have the same size along
> the spectral dimension. Specifically, ap has spectral size 1025 and sp has
> spectral size 513.
>
>
>
> Note that when STRAIGHT is used to generate training data, sp and ap do have
> the same spectral size: 1025. Additionally, when MGCEP and LPC2LSP are used
> to generate training data, they are used with –l 2048 (-n 2048 for LPC2LSP).
>
>
>
> Surprisingly, it seems that the STRAIGHT synthesis is correcting for the
> size mismatch, presumably by interpolating sp up to the correct size. I
> confirmed this with some experimentation.
>
>
>
> Based on all this, I am guessing that MGC2LSP should be used with –l 2048,
> in order to be fully consistent.
>
>
>
> Regards,
>
> David Klein
>
>
>
>
- References
-
- [hts-users:03636] v2.2 STRAIGHT demo: MGC2SP usage bug?, David Klein
- [hts-users:03637] Re: v2.2 STRAIGHT demo: MGC2SP usage bug?, David Klein