SpeechEndpointDetector
IntroductionSpeech endpoint detector class (interface), intended to detect speech end in the audio stream. Methods
addSamples:error:Adds new audio samples to the SpeechEndpointDetector. - (BOOL)addSamples:(NSData* _Nonnull)PCM16Samples error:(NSError* _Nullable* _Nullable)error; ParametersinitWithMinSpeechLengthMs:maxSilenceLengthMs:sampleRate:error:Creates SpeechEndpointDetector instance. - (instancetype _Nullable)initWithMinSpeechLengthMs:(unsigned int)minSpeechLengthMs maxSilenceLengthMs:(unsigned int)maxSilenceLengthMs sampleRate:(unsigned int)sampleRate error:(NSError* _Nullable* _Nullable)error; ParametersisSpeechEnded:Returns detection state. - (VoiceSdkBool* _Nullable)isSpeechEnded:(NSError* _Nullable* _Nullable)error; ParametersReturn Valuetrue if speech end was detected, false otherwise. reset:Resets detector state. - (BOOL)reset:(NSError* _Nullable* _Nullable)error; |