KeywordSpotter class
Constructors
- KeywordSpotter.new(KeywordSpotterConfig config)
-
The user is responsible to call the OnlineRecognizer.free()
method of the returned instance to avoid memory leak.
factory
-
KeywordSpotter.fromPtr({required Pointer<
SherpaOnnxKeywordSpotter> ptr, required KeywordSpotterConfig config})
Properties
- config ↔ KeywordSpotterConfig
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ptr
↔ Pointer<
SherpaOnnxKeywordSpotter> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createStream(
{String keywords = ''}) → OnlineStream - The user has to invoke stream.free() on the returned instance to avoid memory leak
-
decode(
OnlineStream stream) → void -
free(
) → void -
getResult(
OnlineStream stream) → KeywordResult -
isReady(
OnlineStream stream) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
OnlineStream stream) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited