Hi dear all,
With WTK22, I am doing audio recording to wav format at client and send it to server by stream. I found out that client will not send any data out until it finish recording by recordControl.commit.
Am I doing something wrong or that's the fact? Any Nokia phone support audio streaming, or should I use other format?
I read from Sun (See below) wav audio format is not streamable since some fields in the header can only be filled after finish recording.
If I want to have the realtime (nearly) audio, what should I do?
Here is my recorder code.
Any suggestions, hint etc will be appreciated.Code:try { // Create a DataSource that captures live audio. p = Manager.createPlayer("capture://audio"); p.realize(); // Get the RecordControl, set the record location, and // start the Player and record for 5 seconds. rc = (RecordControl)p.getControl("RecordControl"); rc.setRecordStream(outputStream); debugInfo("Set record to out stream"); rc.startRecord(); p.start(); try { Thread.currentThread().sleep(5000); } catch (InterruptedException ie) { } } catch (IOException ioe) { ioe.printStackTrace(); } catch (MediaException me) { me.printStackTrace(); } //stopRecorder();

Reply With Quote

