AprilAsr
Namespaces | Classes | Enumerations | Functions
AprilAsr Namespace Reference

Classes

class  AprilModel
 Models end with the file extension .april. You need to pass a path to such a file to construct a Model type. More...
 
class  AprilSession
 The session is what performs the actual speech recognition. It has methods to input audio, and it calls your given handler with decoded results. More...
 
struct  AprilToken
 A token may be a single letter, a word chunk, an entire word, punctuation, or other arbitrary set of characters. More...
 

Enumerations

enum class  AprilResultKind : int { PartialRecognition = 1 , FinalRecognition = 2 , ErrorCantKeepUp = 3 , Silence = 4 }
 Result type that is passed to your handler More...
 

Functions

delegate void SessionCallback (AprilResultKind kind, AprilToken[] tokens)
 Session callback type. You must provide one of such type when constructing a session. More...
 

Enumeration Type Documentation

◆ AprilResultKind

enum AprilAsr.AprilResultKind : int
strong

Result type that is passed to your handler

Enumerator
PartialRecognition 

A partial recognition. The next handler call will contain an updated list of tokens.

FinalRecognition 

A final recognition. The next handler call will start from an empty token list.

ErrorCantKeepUp 

In an asynchronous session, this may be called when the system can't keep up with the incoming audio, and samples have been dropped. The accuracy will be affected. An empty token list is given

Silence 

Called after some silence. An empty token list is given

Function Documentation

◆ SessionCallback()

delegate void AprilAsr.SessionCallback ( AprilResultKind  kind,
AprilToken[]  tokens 
)

Session callback type. You must provide one of such type when constructing a session.