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,
player = Manager.createPlayer("capture://audio");
recordControl = (RecordControl) player.getControl("RecordControl");
out = new ByteArrayOutputStream();
ByteArrayInputStream bbin = new ByteArrayInputStream(voice);
player = Manager.createPlayer(bbin,"audio/amr");
Please give some instruction, I am in urgent.