AprilAsr
|
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 | |
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.
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.
modelPath | Path to an april model file |