AprilAsr
Public Member Functions | Properties | List of all members
AprilAsr.AprilModel Class Reference

Models end with the file extension .april. You need to pass a path to such a file to construct a Model type. More...

Public Member Functions

 AprilModel (string modelPath)
 Loads an april model given a path to a model file. May throw an exception if the file is invalid. More...
 

Properties

string?? Name [get]
 The name of the model as stored in the file metadata
 
string?? Description [get]
 The description of the model as stored in the file metadata
 
string?? Language [get]
 The language of the model as stored in the file metadata
 
int SampleRate [get]
 The sample rate of the model as stored in the file metadata
 

Detailed Description

Models end with the file extension .april. You need to pass a path to such a file to construct a Model type.

Each model has its own sample rate in which it expects audio. There is a method to get the expected sample rate. Usually, this is 16000 Hz.

Models also have additional metadata such as name, description, language.

After loading a model, you can create one or more sessions that use the model.

Constructor & Destructor Documentation

◆ AprilModel()

AprilAsr.AprilModel.AprilModel ( string  modelPath)

Loads an april model given a path to a model file. May throw an exception if the file is invalid.

Parameters
modelPathPath to an april model file

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