You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
2 months ago
|
//
|
||
|
// ZegoExpressEngine+AudioVADClient.h
|
||
|
// ZegoExpressEngine
|
||
|
//
|
||
|
// Copyright © 2019 Zego. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "ZegoExpressDefines.h"
|
||
|
#import "ZegoExpressEngine.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface ZegoExpressEngine (AudioVADClient)
|
||
|
|
||
|
/// Create a audio vad client instance.
|
||
|
///
|
||
|
/// Available since: 2.21.0
|
||
|
/// Description: Create a audio vad client instance.
|
||
|
/// Use case: Can be used to detect if an audio packet contains speech.
|
||
|
/// When to call: It can be called after [createEngine].
|
||
|
/// Restrictions: Each stream should correspond to a detected audio packet class object, or reset the existing object and apply it to a different stream.
|
||
|
///
|
||
|
/// @return audio vad client instance.
|
||
|
- (nullable ZegoAudioVADClient *)createAudioVADClient;
|
||
|
|
||
|
/// Destroys a audio vad client instance.
|
||
|
///
|
||
|
/// Available since: 2.21.0
|
||
|
/// Description: Destroys a audio vad client instance.
|
||
|
/// When to call: It can be called after [createEngine].
|
||
|
///
|
||
|
/// @param client The audio vad client instance object to be destroyed.
|
||
|
- (void)destroyAudioVADClient:(ZegoAudioVADClient *)client;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|