JLChen
2021-11-04 1443556e9ccb1a19ed8e6710c16c8adc4d4f4fb3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
//  LCOpenSDK_AudioTalk.h
//  LCOpenSDK
//
//  Created by chenjian on 16/5/16.
//  Copyright (c) 2016年 lechange. All rights reserved.
//
 
#ifndef LCOpenSDK_LCOpenSDK_AudioTalk_h
#define LCOpenSDK_LCOpenSDK_AudioTalk_h
#import <Foundation/Foundation.h>
#import "LCOpenSDK_Param.h"
#import "LCOpenSDK_TalkerListener.h"
@interface LCOpenSDK_AudioTalk: NSObject
/**
 *  设置监听对象
 *
 *  @param lis 监听对象指针
 */
- (void) setListener:(id<LCOpenSDK_TalkerListener>) lis;
/**
 *  获取监听对象指针
 *
 *  @return 监听对象指针
 */
- (id<LCOpenSDK_TalkerListener>) getListener;
/**
 *  播放语音对讲
 *
 *  @param accessTok 管理员token/用户token
 *  @param deviceID  设备ID
 *  @param psk       设备密钥
 *  @param opt       是否使用长链接优化
 *
 *  @return 接口调用返回值    0, 成功
 *                        -1, 失败
 */
- (NSInteger) playTalk:(NSString*)accessTok devID:(NSString*)deviceID psk:(NSString*)psk optimize:(BOOL)isOpt DEPRECATED_MSG_ATTRIBUTE("use playTalk: instead");
 
/**
*  开始对讲
*
*  @param paramTalk 对讲参数模型
*
*  @return 0, 接口调用成功
*         -1, 接口调用失败
*/
- (NSInteger) playTalk:(LCOpenSDK_ParamTalk *)paramTalk;
/**
 *  停止语音对讲
 *
 *  @return 接口调用返回值    0, 成功
 *                         -1, 失败
 */
- (NSInteger) stopTalk;
- (NSInteger) playSound;
- (NSInteger) stopSound;
@end
#endif