[hts-users:01304] Re: Endianism problems
Hi,
Ore, Brian M CTR USAF AFMC AFRL/RHCP wrote (2008/04/02 0:40):
I have been having the same problem when running the HTS2.1-RC1 demo
script (fails when synthesizing waveforms using version 0.96 of
hts_engine). However, I have found that if you use version 0.95 of
hts_engine the command runs successfully using the same input files and
command line arguments. Any ideas?
Sorry, it's our mistake.
Since hts_engine API-0.96, file header (dimensionality and # of distributions)
is required for GV pdfs like other *.pdf files.
Please apply the attached patch code to HTS-demo/data/Makefile.in, it appends
file headers to GV pdfs.
Regards,
Heiga ZEN (Byung Ha CHUN)
--
------------------------------------------------
Heiga ZEN (in Japanese pronunciation)
Byung Ha CHUN (in Korean pronunciation)
Department of Computer Science and Engineering
Nagoya Institute of Technology
Gokiso-cho, Showa-ku, Nagoya 466-8555 Japan
http://www.sp.nitech.ac.jp/~zen
------------------------------------------------
Index: Makefile.in
===================================================================
RCS file: /home/cvsroot/CVSDB/HTS-demo_CMU-ARCTIC-SLT/data/Makefile.in,v
retrieving revision 1.17
diff -c -r1.17 Makefile.in
*** Makefile.in 16 Jan 2008 11:27:47 -0000 1.17
--- Makefile.in 2 Apr 2008 03:28:16 -0000
***************
*** 218,231 ****
$(VSTAT) -l 1 -o 0 -d gvdata_lf0 > gv/gv-lf0.pdf
# GV pdfs in big endian (for hts_engine)
if [ $(BYTESWAP) -eq 1 ]; then \
! cp gv/gv-mgc.pdf gv/gv-mgc.pdf.big; \
! cp gv/gv-lf0.pdf gv/gv-lf0.pdf.big; \
else \
! $(SWAB) +f gv/gv-mgc.pdf > gv/gv-mgc.pdf.big; \
! $(SWAB) +f gv/gv-lf0.pdf > gv/gv-lf0.pdf.big; \
fi; \
!
rm -f gvdata_mgc gvdata_lf0
label:
--- 218,244 ----
$(VSTAT) -l 1 -o 0 -d gvdata_lf0 > gv/gv-lf0.pdf
# GV pdfs in big endian (for hts_engine)
+ # Add header (dimensionality and # of distributions)
if [ $(BYTESWAP) -eq 1 ]; then \
! MGCDIM=`expr $(MGCORDER) + 1`; \
! LF0DIM=1; \
! echo $${MGCDIM} | $(X2X) +ai > gv/gv-mgc.pdf.big; \
! echo "1" | $(X2X) +ai >> gv/gv-mgc.pdf.big; \
! cat gv/gv-mgc.pdf >> gv/gv-mgc.pdf.big; \
! echo $${LF0DIM} | $(X2X) +ai > gv/gv-lf0.pdf.big; \
! echo "1" | $(X2X) +ai >> gv/gv-lf0.pdf.big; \
! cat gv/gv-lf0.pdf >> gv/gv-lf0.pdf.big; \
else \
! MGCDIM=`expr $(MGCORDER) + 1`; \
! LF0DIM=1; \
! echo $${MGCDIM} | $(X2X) +ai | $(SWAB) +f > gv/gv-mgc.pdf.big; \
! echo "1" | $(X2X) +ai | $(SWAB) +f >> gv/gv-mgc.pdf.big; \
! $(SWAB) +f gv/gv-mgc.pdf >> gv/gv-mgc.pdf.big; \
! echo $${LF0DIM} | $(X2X) +ai | $(SWAB) +f > gv/gv-lf0.pdf.big; \
! echo "1" | $(X2X) +ai | $(SWAB) +f >> gv/gv-lf0.pdf.big; \
! $(SWAB) +f gv/gv-lf0.pdf >> gv/gv-lf0.pdf.big; \
fi; \
!
rm -f gvdata_mgc gvdata_lf0
label:
- Follow-Ups
-
- [hts-users:01305] Questions of HMGens, 孙敬伟
- [hts-users:01309] Re: Endianism problems, Nicholas Volk
- [hts-users:01360] Re: Endianism problems, Yufeng Hao
- References
-
- [hts-users:01300] Endianism problems, Nicholas Volk
- [hts-users:01302] Re: Endianism problems, Heiga ZEN (Byung Ha CHUN)
- [hts-users:01303] Re: Endianism problems, Ore, Brian M CTR USAF AFMC AFRL/RHCP