×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    79

    isn't audio recording streamable?

    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.
    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();
    Any suggestions, hint etc will be appreciated.
    Last edited by aluckybird; 2004-12-13 at 17:18.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×