HyphenateChatSDK  4.19.0
属性 | 所有成员列表
EMVoiceParam类 参考

#import <EMVoiceParam.h>

类 EMVoiceParam 继承关系图:

属性

EMVoiceFormat format
 
NSInteger sampleRate
 
NSInteger bitsPerSample
 
NSInteger channels
 

详细描述

用于识别本地语音文件的音频参数。

属性说明

- (NSInteger) bitsPerSample
readwritenonatomicassign

语音文件的采样位数,例如 16。

- (NSInteger) channels
readwritenonatomicassign

语音文件的声道数,例如,1 表示单声道。

- (EMVoiceFormat) format
readwritenonatomicassign

语音文件的格式。

- (NSInteger) sampleRate
readwritenonatomicassign

语音文件的采样率,单位为 Hz。

可直接传入系统录音参数 AVSampleRateKey 对应的取值,例如 16000。


该类的文档由以下文件生成: