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

[hts-users:03192] Re: Building a voice from scratch


MODIFY line:
            if [ -s $${raw} -a $${min} -gt -32768 -a $${max} -lt 32767 ]; then \
TO:
            if [ -s $${raw} -a $${min} -ge -32768 -a $${max} -le 32767 ]; then \


2012/2/29 Pierre-Edouard Honnet <cerbrain@xxxxxxxxx>
Hi,

Actually, it seems that when I try to calculate the min and max with


min=`/home/fastnet/htk_temp/bin/x2x +sf ${raw} | /home/fastnet/htk_temp/bin/minmax | /home/fastnet/htk_temp/bin/x2x +fa | head -n 1`;

my data are saturated I get -32768 and +32767, and I cannot enter into the if condition which is strictly greater than and lower than, so I removed the if and it is running, I don't know if it is a problem or not for the calculation ?


Le 29 février 2012 06:38, 那兴宇 <nxy-yzqs@xxxxxxx> a écrit :

Hi,
 
Actually, your log shows that nothing had been done, only echo, so there are no errors. Maybe the raw files are not available. RAW should be ok if stored in little endian short-data. Please check that.
--
Xingyu Na (那兴宇)
Beijing Institute of Technology
naxy(at)bit.edu.cn
asr.naxingyu(at)gmail.com
naxingyu at {facebook, twitter, linkedin}
At 2012-02-29 01:31:21,"Pierre-Edouard Honnet" <cerbrain@xxxxxxxxx> wrote:
Hi,

When I try to run "make mgc" or "make lf0", I have no error, but no file is created in mgc folder nor in lf0. Here is what displays exactly in the terminal for make mgc :

# Extracting MGC or MGC-LSP coefficients from raw audio
mkdir -p mgc
for raw in raw/*.raw; do \
        base=`basename ${raw} .raw`; \
        min=`/home/fastnet/htk_temp/bin/x2x +sf ${raw} | /home/fastnet/htk_temp/bin/minmax | /home/fastnet/htk_temp/bin/x2x +fa | head -n 1`; \
        max=`/home/fastnet/htk_temp/bin/x2x +sf ${raw} | /home/fastnet/htk_temp/bin/minmax | /home/fastnet/htk_temp/bin/x2x +fa | tail -n 1`; \
        if [ -s ${raw} -a ${min} -gt -32768 -a ${max} -lt 32767 ]; then \
            /home/fastnet/htk_temp/bin/x2x +sf ${raw} > tmp; \
            if [ 0       -eq 0 ]; then \
                echo "Extracting MGC coefficients from ${raw}"; \
                /home/fastnet/htk_temp/bin/frame -l 400    -p 80  tmp | \
                /home/fastnet/htk_temp/bin/window -l 400    -L 2048      -w 1  -n 1   | \
                /home/fastnet/htk_temp/bin/mcep -a 0.55    -m 34    -l 2048      -e 1.0E-08 > mgc/${base}.mgc; \
            else \
                echo "Extracting MGC-LSP coefficients from ${raw}"; \
                SAMPKHZ=`expr 16000    / 1000`; \
                if [ 1      -eq 1 ]; then \
                    GAINOPT="-l"; \
                fi; \
                /home/fastnet/htk_temp/bin/frame -l 400    -p 80  tmp | \
                /home/fastnet/htk_temp/bin/window -l 400    -L 2048      -w 1  -n 1   | \
                /home/fastnet/htk_temp/bin/mcep -a 0.55    -c 0       -m 34    -l 2048      -e 1.0E-08 -o 4 | \
                /home/fastnet/htk_temp/bin/lpc2lsp -m 34    -s ${SAMPKHZ} ${GAINOPT} -n 2048      -p 8 -d 1.0E-08 > mgc/${base}.mgc; \
            fi; \
            if [ -n "`/home/fastnet/htk_temp/bin/nan mgc/${base}.mgc`" ]; then \
                echo " Failed to extract MGC coefficients from ${raw}"; \
                rm -f mgc/${base}.mgc; \
            fi; \
        fi; \
    done
rm -f tmp


Maybe it cannot read the raw files (because they have no header) ? Thanks

Pierre-Edouard

Le 28 février 2012 17:05, 那兴宇 <nxy-yzqs@xxxxxxx> a écrit :
hi,
 
Go to 'data' directory and run "make mgc" and "make lf0" (previously run "make straight" if you are using a STRAIGHT demo) and see what is printed.
--
Xingyu Na (那兴宇)
Beijing Institute of Technology
naxy(at)bit.edu.cn
asr.naxingyu(at)gmail.com
naxingyu at {facebook, twitter, linkedin}
At 2012-02-27 21:10:04,"Pierre-Edouard Honnet" <cerbrain@xxxxxxxxx> wrote:
Hi,

I am new in the domain of speech synthesis (at least in practice), and I would like to build an hts voice from the data of my lab. I first built a voice with the HTS-demo-CMU-Arctic in order to understand how it works, but now I try to use the scripts of this demo to build my own voice. I have .lab and .raw files, and I changed the makefiles and script of the demo, but I cannot build the voice. During the first steps (MGC coefficients extraction, lf0 extraction ...), no file is created, so I cannot go further.

These data have already been used to build a voice in the past, and I have some other files which have certainly been created but I don't know how, I don't know what they are and I don't know how to use them. Here is the list of these files :
beep_def.ch,
f2b_features_maps.ch,
f2b_lrdur.ch,
f2b_tobi_lrf0_model.ch,
files, mjb.about,
mjb.chatr98,
mjb.concat,
mjb_discretetables.ch,
mjb.lbg,
mjb_lrdurstats.ch,
mjb.phonetable,
mjb.prosody,
mjb.sdf,
mjb.tdf,
mjb_tobif0.ch,
mjb.udb,
mjb.vqdist,
mjb.wavlib,
mjb_weights0.ch,
pause_prediction_tree.ch,
tobi_accent_tree.ch,
tobi_boundary_tone_tree.ch

Could anyone tell me how I could use these files, or how to build the voice using raw and labels only ? Thanks

Pierre-Edouard









--
Kind regards,
Thanh-Son PHAN


References
[hts-users:03185] Building a voice from scratch, Pierre-Edouard Honnet
[hts-users:03188] Re: Building a voice from scratch, 那兴宇
[hts-users:03189] Re: Building a voice from scratch, Pierre-Edouard Honnet
[hts-users:03190] Re: Building a voice from scratch, 那兴宇
[hts-users:03191] Re: Building a voice from scratch, Pierre-Edouard Honnet