AprilAsr
Properties | List of all members
AprilAsr.AprilToken Struct Reference

A token may be a single letter, a word chunk, an entire word, punctuation, or other arbitrary set of characters. More...

Properties

string?? Token [get]
 The token as a string
 
float LogProb [get]
 The probability this is a correct token
 
bool WordBoundary [get]
 Whether or not this marks the start of a new word
 
bool SentenceEnd [get]
 Whether or not this marks the end of a sentence
 
float Time [get]
 

Detailed Description

A token may be a single letter, a word chunk, an entire word, punctuation, or other arbitrary set of characters.

To convert a token array to a string, simply concatenate the strings from each token. You don't need to add spaces between tokens, the tokens contain their own formatting.

Tokens also contain the log probability, and a boolean denoting whether or not it's a word boundary. In English, the word boundary value is equivalent to checking if the first character is a space.

Property Documentation

◆ Time

float AprilAsr.AprilToken.Time
get

The millisecond at which this was emitted. Counting is based on how much audio is being fed (time is not advanced when the session is not being given audio)


The documentation for this struct was generated from the following file: