Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Number of audio samples per frame. FrameLength = nativeRhino.nativeFrameLength() // Audio sample rate accepted by Picovoice. SampleRate = nativeRhino.nativeSampleRate() // Rhino version Version = nativeRhino.nativeVersion() )
Functions ¶
This section is empty.
Types ¶
type Rhino ¶
type Rhino struct { // Absolute path to the file containing model parameters. ModelPath string // Inference sensitivity. A higher sensitivity value results in // fewer misses at the cost of (potentially) increasing the erroneous inference rate. // Sensitivity should be a floating-point number within 0 and 1. Sensitivity float32 // Absolute path to the Rhino context file (.rhn). ContextPath string // Once initialized, stores the source of the Rhino context in YAML format. Shows the list of intents, // which expressions map to those intents, as well as slots and their possible values. ContextInfo string // contains filtered or unexported fields }
Rhino struct
func (*Rhino) GetInference ¶
func (rhino *Rhino) GetInference() (inference RhinoInference, err error)
Gets inference results from Rhino. 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. Returns an inference struct with `.IsUnderstood`, '.Intent` , and `.Slots`.
type RhinoInference ¶
Click to show internal directories.
Click to hide internal directories.