hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Public 成员函数 | Protected 成员函数 | 所有成员列表
com.hyphenate.util.VoiceRecorder类 参考

Public 成员函数

 VoiceRecorder (Handler handler)
 
String startRecording (String appKey, String userId, Context appContext)
 
void discardRecording ()
 
int stopRecoding ()
 
String getVoiceFileName (String uid)
 
boolean isRecording ()
 
String getVoiceFilePath ()
 

Protected 成员函数

void finalize () throws Throwable
 

详细描述

Note: after try various result. the below setting will generate smallest file with acceptable quality

@8000HZ, MONO channel, audio encoding bitrate 128 for a 60seconds audio, the file size is about 61000 bytes

作者
xiaoma

成员函数说明

void com.hyphenate.util.VoiceRecorder.discardRecording ( )

stop the recoding

返回
seconds of the voice recorded
String com.hyphenate.util.VoiceRecorder.startRecording ( String  appKey,
String  userId,
Context  appContext 
)

start recording to the file


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