HyphenateChatSDK  4.19.0
EMVoiceParam.h
1 
15 #import <Foundation/Foundation.h>
16 #import <CoreAudioTypes/CoreAudioTypes.h>
17 
25 typedef NS_ENUM(UInt32, EMVoiceFormat) {
26  EMVoiceFormatPCM = kAudioFormatLinearPCM,
27  EMVoiceFormatAMR = kAudioFormatAMR,
28  EMVoiceFormatMP3 = kAudioFormatMPEGLayer3,
29 };
30 
38 @interface EMVoiceParam : NSObject
39 
47 @property (nonatomic, assign) EMVoiceFormat format;
48 
60 @property (nonatomic, assign) NSInteger sampleRate;
61 
69 @property (nonatomic, assign) NSInteger bitsPerSample;
70 
78 @property (nonatomic, assign) NSInteger channels;
79 
80 @end
NSInteger sampleRate
Definition: EMVoiceParam.h:60
NSInteger bitsPerSample
Definition: EMVoiceParam.h:69
NSInteger channels
Definition: EMVoiceParam.h:78
EMVoiceFormat format
Definition: EMVoiceParam.h:47
Definition: EMVoiceParam.h:38