SpeechSummaryStream
IntroductionStateful speech summary stream class, intended to calculate SpeechSummary with audio samples given in stream. New instance can be obtained with a SpeechSummaryEngine instance. Methods
addSamples:error:Adds PCM16 audio samples to process. - (BOOL)addSamples:(NSData* _Nonnull)PCM16Samples error:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueTrue on success, false otherwise. finalizeStream:Finalizes input audio stream to process remaining audio samples and produce result if it's possible. - (BOOL)finalizeStream:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueTrue on success, false otherwise. getCurrentBackgroundLength:Retrieves current background length. - (NSNumber* _Nullable)getCurrentBackgroundLength:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueSilence passed since last speech frame in seconds. getSpeechEvent:Retrieves a single speech event from the output queue. - (SpeechEvent* _Nullable)getSpeechEvent:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueOne speech event. getTotalSpeechInfo:Retrieves current speech summary state. - (SpeechInfo* _Nullable)getTotalSpeechInfo:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueSpeech summary. getTotalSpeechSummary:Retrieves current speech summary state. - (SpeechSummary* _Nullable)getTotalSpeechSummary:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueSpeech summary. hasSpeechEvents:Checks if there are speech events in output queue. - (VoiceSdkBool* _Nullable)hasSpeechEvents:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueBoolean flag (true is there are events available, else otherwise). reset:Resets speech summary stream state. - (BOOL)reset:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueTrue on success, false otherwise. |