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

#import <EMVoiceParam.h>

类 EMVoiceParam 继承关系图:

属性

EMVoiceFormat format
 
NSInteger sampleRate
 
NSInteger bitsPerSample
 
NSInteger channels
 

详细描述

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

属性说明

◆ bitsPerSample

- (NSInteger) bitsPerSample
readwritenonatomicassign

语音文件的采样位深(单位: bit),例如 16。

◆ channels

- (NSInteger) channels
readwritenonatomicassign

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

◆ format

- (EMVoiceFormat) format
readwritenonatomicassign

语音文件的格式。

◆ sampleRate

- (NSInteger) sampleRate
readwritenonatomicassign

语音文件的采样率(单位:Hz)。

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


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