hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Public Member Functions | Protected Member Functions | List of all members
com.hyphenate.util.VoiceRecorder Class Reference

Public Member Functions

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

Protected Member Functions

void finalize () throws Throwable
 

Detailed Description

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

Author
xiaoma

Member Function Documentation

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

stop the recoding

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

start recording to the file


The documentation for this class was generated from the following file: