AudioEndPointDetector

interface AudioEndPointDetector

Interface for Audio End Point Detector(EPD).

(EPD : It is an algorithm that detects the start and end positions of speech utterances.)

This detect start and end of speech from audio provided at startDetector

Types

Link copied to clipboard
enum ErrorType : Enum<AudioEndPointDetector.ErrorType>
Link copied to clipboard
interface OnStateChangedListener

Listener to notified on State change

Link copied to clipboard
enum State : Enum<AudioEndPointDetector.State>

Enum class of AudioEndPointDetector's state

Link copied to clipboard
enum TimeoutType : Enum<AudioEndPointDetector.TimeoutType>

Functions

Link copied to clipboard
abstract fun addListener(listener: AudioEndPointDetector.OnStateChangedListener)

Add a listener to be called when a state changed.

Link copied to clipboard
abstract fun removeListener(listener: AudioEndPointDetector.OnStateChangedListener)

Remove a listener

Link copied to clipboard
abstract fun startDetector(    reader: SharedDataStream.Reader,     audioFormat: AudioFormat,     timeoutInSeconds: Int,     maxDurationInSeconds: Int = 10,     pauseLengthInMilliseconds: Int = 700): Boolean

Start end point detection.

Link copied to clipboard
abstract fun stopDetector()

Stop current end point detection.