voice recording and play programatically in blackberry -
is possible in blackberry record voice , play programatically. please give me idea how can achieve this. reference link if possible.
thanks in advance.
try this.
- record code
player player = manager.createplayer("capture://audio?encoding=amr"); recordcontrol recorder = (recordcontrol)player.getcontrol("recordcontrol"); recorder.setrecordlocation("file:///sdcard/blackberry/music/recordingfile.amr"); recorder.startrecord(); player.start(); thread.sleep(5000); recorder.commit(); player.close();
- play code
player music = manager.createplayer("file:///sdcard/blackberry/music/musicfile.mp3"); music.realize(); music.start();
Comments
Post a Comment