Tuya iOS Smart Life App SDK 5.15.0
ThingVoiceDetector Class Reference

#import <ThingVoiceDetector.h>

Inheritance diagram for ThingVoiceDetector:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(int) - create
 
(int) - setParametersWithSampleRate:channels:level:maxVoiceInMS:
 
(int) - setParametersWithSampleRate:channels:codec:level:maxVoiceInMS:noVoiceInMs:
 
(int) - start
 
(int) - stop
 
(int) - destroy
 
(instancetype) - NS_UNAVAILABLE
 
(int) - create
 
(int) - setParametersWithSampleRate:channels:level:maxVoiceInMS:
 
(int) - setParametersWithSampleRate:channels:codec:level:maxVoiceInMS:noVoiceInMs:
 
(int) - start
 
(int) - stop
 
(int) - destroy
 

Class Methods

(instancetype) + sharedInstance
 
(instancetype) + sharedInstance
 

Properties

id< ThingVoiceDetectorDelegatedelegate
 

Detailed Description

Definition at line 14 of file ThingVoiceDetector.h.

Method Documentation

◆ create [1/2]

- (int) create

◆ create [2/2]

- (int) create

◆ destroy [1/2]

- (int) destroy

destroy vad engine ;

◆ destroy [2/2]

- (int) destroy

destroy vad engine ;

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

- (instancetype) NS_UNAVAILABLE

◆ setParametersWithSampleRate:channels:codec:level:maxVoiceInMS:noVoiceInMs: [1/2]

- (int) setParametersWithSampleRate: (int)  sampleRate
channels: (int)  channels
codec: (AUDIO_TYPE codec
level: (VAD_LEVEL level
maxVoiceInMS: (int)  maxVoiceInMS
noVoiceInMs: (int)  noVoiceInMs 
set the vad engine parameters.
Parameters
sampleRatesample rate for audio record. 8000、16000 and 32000 supported only.
channelschannels for audio record. 1 supported only.
levelvad level . See the VAD_LEVEL .
maxVoiceInMSthe max voice length in ms.
noVoiceInMsThe max time in Ms We think the conversation is over.

◆ setParametersWithSampleRate:channels:codec:level:maxVoiceInMS:noVoiceInMs: [2/2]

- (int) setParametersWithSampleRate: (int)  sampleRate
channels: (int)  channels
codec: (AUDIO_TYPE codec
level: (VAD_LEVEL level
maxVoiceInMS: (int)  maxVoiceInMS
noVoiceInMs: (int)  noVoiceInMs 
set the vad engine parameters.
Parameters
sampleRatesample rate for audio record. 8000、16000 and 32000 supported only.
channelschannels for audio record. 1 supported only.
levelvad level . See the VAD_LEVEL .
maxVoiceInMSthe max voice length in ms.
noVoiceInMsThe max time in Ms We think the conversation is over.

◆ setParametersWithSampleRate:channels:level:maxVoiceInMS: [1/2]

- (int) setParametersWithSampleRate: (int)  sampleRate
channels: (int)  channels
level: (VAD_LEVEL level
maxVoiceInMS: (int)  maxVoiceInMS 

set the vad engine parameters.

Parameters
sampleRatesample rate for audio record. 8000、16000 and 32000 supported only.
channelschannels for audio record. 1 supported only.
levelvad level . See the VAD_LEVEL .
maxVoiceInMSthe max voice length in ms.

◆ setParametersWithSampleRate:channels:level:maxVoiceInMS: [2/2]

- (int) setParametersWithSampleRate: (int)  sampleRate
channels: (int)  channels
level: (VAD_LEVEL level
maxVoiceInMS: (int)  maxVoiceInMS 

set the vad engine parameters.

Parameters
sampleRatesample rate for audio record. 8000、16000 and 32000 supported only.
channelschannels for audio record. 1 supported only.
levelvad level . See the VAD_LEVEL .
maxVoiceInMSthe max voice length in ms.

◆ sharedInstance [1/2]

+ (instancetype) sharedInstance

sharedInstance.

◆ sharedInstance [2/2]

+ (instancetype) sharedInstance

sharedInstance.

◆ start [1/2]

- (int) start

start VAD engine.

◆ start [2/2]

- (int) start

start VAD engine.

◆ stop [1/2]

- (int) stop

stop vad engine.

◆ stop [2/2]

- (int) stop

stop vad engine.

Property Documentation

◆ delegate

- (id< ThingVoiceDetectorDelegate >) delegate
readwritenonatomicweak

Definition at line 16 of file ThingVoiceDetector.h.


The documentation for this class was generated from the following files: