Hi ,
I wrote j2me app to record voice and push it every 1 second to the server .
running it over the Sun WTK emulator i can have a good voice quality, but over nokia phone it seems that its not recording every 1 second cause i can easily recognize missing tracks of the recorded voice .
please note :
- I am using separate threads for recording and network
- I am using only one player object ,every one second i run the below code:
Code:while (!stoprec) { p.realize(); // Get the RecordControl, set the record stream, RecordControl rc = (RecordControl) p.getControl("RecordControl"); output = new ByteArrayOutputStream(); rc.setRecordStream(output); rc.startRecord(); p.start(); Thread.sleep(1000); p.stop(); rc.commit(); //sender is running on separate thread sender.add(output); }




