Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wulee510505 authored Mar 23, 2017
1 parent f004e0f commit 65d6974
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
快速实现录音功能


RecordVoiceButton mBtRec = (RecordVoiceButton) findViewById(R.id.button_rec);
mBtRec.setAudioSavePath(Environment.getExternalStorageDirectory().getPath()+"/Recording/audio");//设置音频保存路径
RecordVoiceButton mBtRec = (RecordVoiceButton) findViewById(R.id.button_rec);

mBtRec.setAudioSavePath(Environment.getExternalStorageDirectory().getPath()+"/Recording/audio");//设置音频保存路径

mBtRec.setEnrecordVoiceListener(new RecordVoiceButton.EnRecordVoiceListener() {
@Override
public void onFinishRecord(long length, String strLength, String filePath) {
//录音完成do something ;
//录音完成do something
}
});

0 comments on commit 65d6974

Please sign in to comment.