Contents

init(detectionOptions:reportResults:)

Creates a speech detector.

Declaration

init(detectionOptions: SpeechDetector.DetectionOptions, reportResults: Bool)

Parameters

  • detectionOptions:

    Instance of Detectionoptions that allows clients to customize the behavior of Speechdetector beyond its default settings.

  • reportResults:

    Enables the SpeechDetector/results sequence to report the VAD model’s results (and any relevant errors) back to clients. The default behavior is that Speechdetector does not report results or errors back to the client and merely enables VAD as a power optimization.

See Also

Creating a detector