General Discussion

Flat
How to make HVite only run once. HTK Help
User: Harry
Date: 1/19/2013 3:41 pm
Views: 6248
Rating: 4

Hi guys, I am making an basic Yes/No recognize recognizer for my school project by using HTK Basic Toolkit 3.1 which is avaliable as pff widely.

My recognizer works perfectly, on the 7th step of the tutorial where we make a direct input and make the pc recognize the computer I type:

"HVite -A -D -T 1 -S testlist.txt -H hmmsdef.mmf -i rec.mlf -w net.slf dict.txt hmmlist.txt"

 

and pc starts to listeb ne showing:

Ready[1]>

 

then I have to press enter and manually stop the operation and it starts to listen me automatically displaying

Ready[2]>...

 

what I need is to make the Hvite only run once lets say for 10 seconds and then immidealely stops working.

 

I'm running the whole thing in Matlab and ctrl+break is not an option for me.

 

Thanls is advance

Re: How to make HVite only run once. HTK Help
User: calel
Date: 1/20/2013 4:17 pm
Views: 3063
Rating: 8

Hy! 

Simply start the HVite from another program ...

;-)

In matlab i don't know how do this.. But you can use Java!

Do you work on unix or windows?

I would do so:

1- Create a GUI, quickly, with netbeans (with 2 buttons: start and stop, or only one: "elaborate");

2- On click java start HVite command and read his output, next, HVite's output is printed on GUI.. (If you want to give to user the optional "stop", you should kill HVite by a user's click, else you sould give to java the work to stop afret time is expired)..

Have a nice week C.

PreviousNext