TFLiteKeywordRecognizer
@objc
public class TFLiteKeywordRecognizer : NSObject
extension TFLiteKeywordRecognizer : SpeechProcessor
Undocumented
-
Configuration for the recognizer.
Declaration
Swift
@objc public var configuration: SpeechConfiguration
-
Global state for the speech pipeline.
Declaration
Swift
@objc public var context: SpeechContext
-
Initializes a TFLiteKeywordRecognizer instance.
A recognizer is initialized by, and receives
startStreaming
andstopStreaming
events from, an instance ofSpeechPipeline
.The TFLiteKeywordRecognizer receives audio data frames to
process
fromAudioController
.Declaration
Swift
@objc public init(_ configuration: SpeechConfiguration, context: SpeechContext)
Parameters
configuration
Configuration for the recognizer.
context
Global state for the speech pipeline.
-
Declaration
Swift
public func startStreaming()
-
Declaration
Swift
public func stopStreaming()
-
Declaration
Swift
public func process(_ frame: Data)