I'm doing word recognition on a large number of WAVE files. These files are the output of a voice activation tool, so each file contains only a single utterance with very little silence.
At the start of the application, I create the decoder. Then I re-use the same decoder for reach file like this:
I call ps_start_utt
I process the samples of one file using ps_process_raw
I call ps_end_utt
I use ps_seg_iter to iterate over the words, using ps_seg_frames to get their timing.
What I want is that for each file, ps_seg_frames starts at timecode 0 again. But actually, the timecodes for the next file start where the previous file ended.
Is there any way to reset the timing before each call to ps_start_utt?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm doing word recognition on a large number of WAVE files. These files are the output of a voice activation tool, so each file contains only a single utterance with very little silence.
At the start of the application, I create the decoder. Then I re-use the same decoder for reach file like this:
ps_start_utt
ps_process_raw
ps_end_utt
ps_seg_iter
to iterate over the words, usingps_seg_frames
to get their timing.What I want is that for each file,
ps_seg_frames
starts at timecode 0 again. But actually, the timecodes for the next file start where the previous file ended.Is there any way to reset the timing before each call to
ps_start_utt
?ps_start_stream
Thank you so much -- it's working perfectly now!