On 27/04/2012 at 14:32 +0100, Pierre-Edouard Honnet wrote:
> Hi all,
> 
> 
> I would like to generate a bench of .utt files from .txt files, but I
> don't need to synthesize the waves. I tried to use and modifiy
> different scripts (text2wave.sh, scfg_parse_text) with no succes. I
> also tried this:
> 
> 
> $ festival --script text2utts.scm hello.txt > utt
> $ festival
> --script /home/fred/peh/tar_archives/festival/examples/dumpfeats.sh
> -eval /home/fred/peh/HTS-test/data/scripts/extra_feats.scm -relation
> Segment -feats /home/fred/peh/tar_archives/label.feats -output
> utt.feat utt

This is wrong

First command need to create Utterance file which should look like this:

EST_File utterance
DataType ascii
version 2
EST_Header_End
Features max_id 21 ; type Tokens ; fileid txt__00001 ; 
Stream_Items
1 id _1 ; name hello ; whitespace "" ; prepunctuation "" ; 
2 id _2 ; name world ; whitespace " " ; prepunctuation "" ; 
3 id _4 ; name world ; pos_index 8 ; pos_index_score 0 ; pos nn ;
phr_pos n ; pbreak_index 0 ; pbreak_index_score 0 ; pbreak B ; blevel
3 ; 
4 id _3 ; name hello ; pos_index 16 ; pos_index_score 0 ; pos uh ;
phr_pos uh ; phrase_score -13.43 ; pbreak_index 1 ; pbreak_index_score
0 ; pbreak NB ; 
5 id _5 ; name B ; 
6 id _6 ; name syl ; stress 0 ; 
7 id _10 ; name syl ; stress 1 ; 
8 id _12 ; name syl ; stress 1 ; 
9 id _17 ; name pau ; 
10 id _7 ; name hh ; 
11 id _8 ; name ax ; 
12 id _9 ; name l ; 
13 id _11 ; name ow ; 
14 id _13 ; name w ; 
15 id _14 ; name er ; 

Then second command will load this utt file and dump feature file. To
create utterance file you need to use something like

festival --script text2utts.scm -otype utts -level Segment hello.txt

Or if you meant something different you can use other command. The thing
is that utterance is created with utt.save function.

It's also recommended to use latest HTS scripts, festival HTS stuff is
pretty outdated.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Festlang-talk mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/festlang-talk

Reply via email to