Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2008

    Unhappy Get samples directly from device?


    I am recording audio on Nokia 6131, using the default format amr. I used this code to capture audio:
    player = Manager.createPlayer("capture://audio?encoding=amr");

    But, when I tryed to capture audio in pcm or wav format, it throws NullPointerException. Therefore, I used System.getProperty("audio.encodings") to get supported audio encodings. But I found that amr is the only one supported on the Nokia 6131.

    I need to find a way to get the uncompressed data. Is there any way to get the data read from device directly before the compression to amr? In fact I just need a byte array to work on it.

    I thought that I can try a converter from amr to wav, but the application will be different according to the mobile type. It will be better if I can get raw data.

    Thanks in advance.


  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Rome, Italy

    Re: Get samples directly from device?

    Afaik, it's not possible to get out recorded data in any other format than the ones supported by the JVM implementation itself, so, in any other format than the ones returned by System.getProperty("audio.encodings").


Similar Threads

  1. Unable to receive data from Bluetooth Device Via RFComm
    By kctan in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-06-15, 15:23
  2. What we want is a basic function device.
    By hendrysong in forum General Development Questions
    Replies: 1
    Last Post: 2008-06-06, 04:02
  3. Microchip Embeded Bluetoth device.
    By megaady in forum Symbian
    Replies: 0
    Last Post: 2006-01-23, 11:16
  4. Installing Ethernet Plugin on a second device
    By chenfi in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-12-19, 11:40
  5. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26

Posting Permissions

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