Menu

Pocketsphinx Word Timestamp

Help
2010-05-28
2012-09-22
  • Andrew Durstewitz

    I need to get a hold of the timestamp of a recognized word in Pocketsphinx.
    How is this possible?

    For example: for the utterance "tell bobby jones" I need to timestamp of
    "jones".

    Thanks! Andrew

     
  • Nickolay V. Shmyrev

    /**

     * Get inclusive start and end frames from a segmentation iterator. 
     * 
     * @note These frame numbers are inclusive, i.e. the end frame refers 
     * to the last frame in which the given word or other segment was 
     * active.  Therefore, the actual duration is *out_ef - *out_sf + 1. 
     * 
     * @param seg Segment iterator. 
     * @param out_sf Output: First frame index in segment. 
     * @param out_sf Output: Last frame index in segment. 
     */
    POCKETSPHINX_EXPORT
    void ps_seg_frames(ps_seg_t *seg, int *out_sf, int *out_ef);
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.