SpeechContext
@objc
public class SpeechContext : NSObject
This class maintains global state for the speech pipeline, allowing pipeline components to communicate information among themselves and event handlers.
-
Undocumented
Declaration
Swift
@objc public var configuration: SpeechConfiguration
-
Current speech transcript
Declaration
Swift
@objc public var transcript: String
-
Current speech recognition confidence: [0-1)
Declaration
Swift
@objc public var confidence: Float
-
Speech recognition active indicator
Declaration
Swift
@objc public var isActive: Bool
-
Speech detected indicator
Declaration
Swift
@objc public var isSpeech: Bool
-
Initializes a speech context instance using the specified speech pipeline configuration.
Declaration
Swift
@objc public init(_ config: SpeechConfiguration)
Parameters
config
The speech pipeline configuration used by the speech context instance.