AudioRecordManager

public class AudioRecordManager

Types

Link copied to clipboard
public enum SamplingRate
语音消息采样率

Functions

Link copied to clipboard
public void continueRecord()
Link copied to clipboard
public void destroyRecord()
Link copied to clipboard
Link copied to clipboard
public int getMaxVoiceDuration()
Link copied to clipboard
public int getSamplingRate()
语音消息采样率
Link copied to clipboard
public final boolean handleMessage(Message msg)
Link copied to clipboard
public void setMaxVoiceDuration(int maxVoiceDuration)
协议栈默认支持消息大小为 128K, 超过这个限制有可能导致 socket 断开。 普通语音消息超过 60s 时,会导致消息体大小超过限制,从而导致连接断开。 为了避免以上问题,对外统一废弃此接口。
Link copied to clipboard
设置语音消息采样率
Link copied to clipboard
public void startRecord(View rootView, ConversationIdentifier conversationIdentifier)
Link copied to clipboard
public void stopRecord()
Link copied to clipboard
public void willCancelRecord()