Rhino Speech-to-Intent — .NET API
Class for the Rhino Speech-To-Intent engine.
accessKeystring : AccessKey obtained from Picovoice Console.
contextPathstring : Absolute path to file containing context parameters (
modelPathstring : Absolute path to the file containing model parameters (
sensitivityfloat : Inference sensitivity. It should be a number within [0, 1].
endpointDurationSecfloat : Endpoint duration in seconds. An endpoint is a chunk of silence at the end of an utterance that marks the end of spoken command. It should be a positive number within [0.5, 5]. A lower endpoint duration reduces delay and improves responsiveness. A higher endpoint duration assures Rhino doesn't return inference pre-emptively in case the user pauses before finishing the request.
requireEndpointbool : If set to
true, Rhino requires an endpoint (a chunk of silence) after the spoken command. If set to
false, Rhino tries to detect silence, but if it cannot, it still will provide inference regardless. Set to
falseonly if operating in an environment with overlapping speech (e.g. people talking in the background).
Rhino: An instance of Rhino Speech-To-Intent engine.
RhinoException: If an error occurs while creating an instance of the Rhino Speech-To-Intent engine.
Processes a frame of the incoming audio stream and emits the detection result. The number of samples per frame can be attained by calling
.FrameLength. The incoming audio needs to have a sample rate equal to
.SampleRate and be 16-bit linearly-encoded. Rhino operates on single-channel audio.
pcmshort : A frame of audio samples.
bool: Flag indicating whether the engine has finalized intent extraction.
RhinoException: If there is an error while processing the audio frame.
Gets inference result. If the spoken command was understood, it includes the specific intent name that was inferred, and (if applicable) slot keys and specific slot values. Should only be called after the
process() function returns
true, otherwise Rhino has not yet reached an inference conclusion.
RhinoInference: The result of inference.
RhinoException: If inference retrieval fails.
Getter for context information.
string: Returns the context information.
Getter for number of audio samples per frame.
int: Number of audio samples per frame.
Getter for audio sample rate accepted by Picovoice.
int: Audio sample rate accepted by Picovoice.
Getter for version.
Class for holding Rhino inference result.
Getter for IsUnderstood.
bool: Whether Rhino understood what it heard based on the context.
Getter for Intent.
string: Name of intent that was inferred.
Getter for Slots.
Dictionary<string, string>: Map of inference slots and values.
Exception thrown if an error occurs within the