|
hyphenate_SDK3.0
3.1.4
hyphenatejavaIMSDK
|
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
| void com.hyphenate.util.VoiceRecorder.discardRecording | ( | ) |
stop the recoding
| String com.hyphenate.util.VoiceRecorder.startRecording | ( | String | appKey, |
| String | userId, | ||
| Context | appContext | ||
| ) |
start recording to the file
1.8.9.1