hi everyone
In my application, I recorded the voice and listen that recorded voice. Now the voice is come from the loud speaker. I want to listen from the phone speaker. How can I write with Java ME the voice come from phone speaker.
Here is my code,
for recording,
player = Manager.createPlayer("capture://audio");
player.realize();
recordControl = (RecordControl) player.getControl("RecordControl");
out = new ByteArrayOutputStream();
recordControl.setRecordStream(out);
recordControl.startRecord();
player.start();
for listening,
ByteArrayInputStream bbin = new ByteArrayInputStream(voice);
player = Manager.createPlayer(bbin,"audio/amr");
player.realize();
player.prefetch();
player.start();
Please give some instruction, I am in urgent.
Thanks you,
with regards
Sweet Sweet

Reply With Quote

