Capture Audio in gsm or ulaw format using MMAPI

Hi ,
I have tried to use the latesr MMAPI with the Java Tool Kit latest versoin
My Requirement is to capture voice through a Manager in "gsm" and "ulaw format" , I have seen examples in javax.microedition.media.Manager documentation like that came along latest version of J2ME wireless 2.1 toolkit .
     capture://audio (default audio)
     capture://audio?encoding=pcm (default audio in PCM format)
when i try to give
     capture://audio?encoding=gsm or ulaw i get runtime error saying invalid locators
     Can somebody please help me to figure how i can save voice in gsm or ulaw format into a wav file , thru emulator , i am able to save in PCM i.e. the default format .
     Any tips would be highly appretiated.

Hi ,
I have used this Mobile Media API (JSR-135) latest documentation that comes with WTK 2.0 and documentation of javax.microedition.media.Manager Class which says
1. Locators for Live-media Capture
The locators for capturing live media are defined by the following syntax in Augmented BNF notations:
"capture://" device [ "?" params]
A. Identifying the type or the specific name of the device:
device = "audio" / "video" / "audio_video" / dev_name
dev_name = alphanumeric
alphanumeric = 1*( ALPHA / DIGIT )
B. Describing the media and capture parameters:
params = audio_params / video_params /
audio_video_params / custom_params
C. Describing the audio media format:
audio_params = audio_param *( "&" audio_param )
audio_param = 1*( "encoding=" audio_enc / "rate=" rate /
"bits=" bits / "channels=" channels /
"endian=" endian / "signed=" signed )
audio_enc = "pcm" / "ulaw" / "gsm"
rate = "96000" / "48000" / "44100" / "22050" / "16000" /
"11025" / "8000"
bits = "8" / "16" / "24"
channels = pos_integer
endian = "little" / "big"
signed = "signed" / "unsigned"
pos_integer = 1*DIGIT
Example:
encoding=pcm&rate=11025&bits=16&channels=1
In point "C" it clearly tells that encoding format pcm/gsm/ulaw can be used . But i get invalid locator at runtime for gsm and ulaw format .
I am not sure wether the Emulator is not supporting this format or whats the cause , i am basically recording the voice from mic into a wav file .
Thanks
Sameer

Similar Messages

  • CreatePlayer --  //capture:audio

    Hi
    MMAPI JSR (135) latest documentation , explains a way to capture audio from microphone in various formats , am able to save it in pcm format but gsm or ulaw gives error.
    encoding="pcm / gsm / ulaw " of which pcm is default , But upon specifying gsm or ulaw as parameters , I get a runtime error in class WavCapture , I decompiled this class to see it clearly dosent support gsm and ulaw inside
    java.io.IOException: Invalid locator
    at com.sun.mmedia.protocol.WavCapture.connect(+16)
    at javax.microedition.media.Manager.createDataSource(+118)
    at javax.microedition.media.Manager.createPlayer(+93)
    at socket.recordData.run(+5)
    Then why does the documentation says about gsm / ulaw
    Would really appretiate for any tips .

    I get an error if I try to do any kind of settings to capture://audio like this:
    player = Manager.createPlayer("capture://audio?encoding=pcm&rate=8000&bits=8&channels=1");
    It just does not accept it at run time. I even upgraded my system to XP and still does not see it.
    Without settings like this (capture://audio), I am able go through start record, stop record, commit, and saving to RMS. I am writing to ByteArrayOutputStream. I don't think I am capturing anything from the microphone. Because the size of the array is 0.
    I appreciate any thoughts or feedback on this one.
    Thanks,
    Elian

  • Capturing serial numbers in 2D barcode format

    Hi All,
    I'm working on capturing serial numbers in 2D barcode format using RF unit but it only taking 11 serial numbers from 30 serial numbers in 2D barcode. Is there any limitation on number of characters that system can take at one time?
    Regards,
    Sekhar

    Hi,
    what is the path level of your sap console. if you are using the old one the maximum is 231. check in market place and update. it can accept up to 1024.
    regards
    sai

  • Capture audio with PDAs

    Hi,
    I'm developing an application for PDAs and Smartphones in which I have to integrate a voice recorder, so I'm working with MMAPI 1.1 . With the emulator the application works but on the HP iPAQ 5450 I get the error message "unsupported protocol" when I try to create the Player with "capture://audio" as parameter. I'm using the J9 virtual machine from IBM, and I have installed all the correct updates which refers to MMAPI.
    By reading on this forums I've known about applications like this on Nokia 60's series device.
    Is there anyone who has developed applications like this for other devices (especially PDAs)?
    On which device it works ?
    Thanks.

    GerrySA wrote:
    Is there anything like this when I am playing the guitar or singing through a mic and want to capture audio?
    -- Gerry
    Yes...
    Well, almost
    If you keep "Punch On The Fly" enabled, Logic is actually ALWAYS recording, although once you hit stop, that buffer is cleared.
    So the trick to this is, if you are playing along (guitar or voice), and you realize you should have recorded that take, simply hit RECORD, BEFORE you stop. You can then "peel back" the audio region (drag the left side of that short region you'll have when stopping what you were playing to hit the record button), and drag it to the LEFT. You'll see all the audio you were playing there.

  • Capture Audio via Digital in Port?

    This seems like a basic issue, but I can't find the answer - Is there a way to set my audio capture / input to come in via the Digital in port (TOSLINK, S/PDIF)? I'd like to do this separately from the video capture input. I've found connection information in the FCP documentation, but haven't been able to figure out the settings in the software.
    Thanks!

    Thanks for the info. So, just to be clear I'll have to run the source twice, once to capture using one of the audio apps and once in FCP to capture the video? I won't be able to capture audio / video at the same time using FCP (audio from the Digital in port and Video from my BlackMagic card)?

  • Supported formats for capturing audio

    I need to capture audio in PCM format.
    According to the JDE 4.6.0 Multimedia Guide:
    "The BlackBerry® smartphone uses two formats to record audio: Adaptive Multi-Rate (AMR) and 8 kHz mono-16-bit pulse code modulation (PCM). By default, the format is AMR.
    PCM: capture://audio?encoding=pcm or capture://audio?encoding=audio/basic"
    However, when I run the code:
    Manager.createPlayer( "capture://audio?encoding=pcm" );
    This works on a Pearl 8100, but on a Pearl 8330, I get a MediaException, with the error:
    Unsupported record encoding type
    Do all handsets support PCM encoding? If not, where would I find out the capabilities of the different models?

    Supported audio formats by BlackBerry -
     The following audio formats (including extensions) are supported:
    ACC - audio compression formats AAC, AAC+, and EAAC+
    AMR - Adaptive Multi Rate-Narrow Band (AMR-NB) speech coder standard Supported AMR-NB rates are 4.75 KBps, 5.15 KBps, 5.9 KBps, 6.7 KBps, 7.4 KBps, 7.95 KBps, 10.2 KBps, and 12.2 KBps. AMR
    files must conform to the standards specified in the Internet
    Engineering Task Force (IETF) Request for Comments (RFC) document
    RFC3267, Section 5, on the Internet RFC Archive web site.
    MIDI - Polyphonic MIDI (.mid, .midi, or .smf)
    MP3 - encoded using MPEG Part 1 and Part 2 audio layer 3 Supported sample rates are 16kHz, 22.050kHz, 24kHz, 32kHz, 44.1kHz, and 48kHz.
    WAV
    - supports sample rates of 8 kHz, 16 kHz, 22.05 kHz, 32 kHz, 44.1 kHz,
    and 48 kHz with 8-bit and 16-bit depths in mono or stereo WAV files
    created using audio codec GSM6.10 are supported. However, BlackBerry
    8830 series smartphones do not natively support Global Systems for
    Mobile Communications® (GSM®) encoding and require the BlackBerry
    Attachment Service from either the BlackBerry® Enterprise Server or the
    BlackBerry® Internet Service. See KB13547 for more information. Note:
    Playback of WAV files received as email message attachments requires
    BlackBerry Enterprise Server software version 4.1 Service Pack 2
    (4.1.2). Note: If the BlackBerry smartphone
    user has a BlackBerry Internet Service 2.3 account with BlackBerry
    Device Software 4.2 or later, WAV voice mail files will work.
    Windows Media Audio (WMA 9) Standard Profile Decoder WMA 10 Professional M0 Profile Decoder WMA 9 Profile Decoder and WMA 10 M0 Profile Decoder are only supported by BlackBerry Device Software 4.2.1 or later. See KB05419 for more information.
    The
    following audio file extensions are also supported (depending on
    BlackBerry smartphone model and BlackBerry Device Software version):
    .avi containing PCM, MP3, AAC, AAC+, eAAC+, H.263, MPEG4-SP, MPEG4-ASP, uLaw/aLaw, GSM610
    .3gp containing MP3, AMR-NB, AAC, AAC+, eAAC+, H.263, MPEG4-SP, MPEG4-ASP, uLaw/aLaw, AMR-NB
    .mp4 containing MP3, AMR-NB, AAC, AAC+, eAAC+, H.263, MPEG4-SP, MPEG4-ASP, uLaw/aLaw, AMR-NB
    >.mov containing MP3, AMR-NB, AAC, AAC+, eAAC+, H.263, MPEG4-SP, MPEG4-ASP, uLaw/aLaw, AMR-NB
    .wmv containing WMV, WMA9/10Pro
    .aac and .m4a containing AAC, AAC+, eAAC+
    .wav containing PCM, uLaw/aLaw, GSM610
    Note:
    Support is available for streaming stereo audio over a Bluetooth®
    connection (A2DP and AVRCP Bluetooth profiles) on the following
    BlackBerry smartphone models:
    BlackBerry® 8800 Series smartphones (running BlackBerry Device Software 4.2.2 or later)
    BlackBerry Curve 8300 Series smartphone (running BlackBerry Device Software 4.2.2 or later)
    BlackBerry Pearl 8100 Series smartphones (running BlackBerry Device Software 4.2.2 or later)
     Note: DRM (Digital Rights Management) copyright protected files will not play on BlackBerry smartphones.
    Source: KB05482 
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • No Audio using WMV Format using Live Ultra Mod. VF0060

    Recently purchased a Creative WebCam Li've Ultra Model VF0060 and I am having problems capturing WMV formatted video and audio at the same time. Video works fine however, when I try to include audio all I get is and error message suggesting that I don't have enough disk space ( I have PLENTY) and to check the audio and video compressor settings. There are no audio compressor setting in?the WMV mode?and the video is limited to small or large file. I can capture AVI formatted video with audio?just fine but it uses to much memory to use as Email attachments. Does anybody have any suggestions?

    The web center do not work any more with windows media . I try every thing also customer service. Only responce is to go back to a older version of windows media players. Still working with .aviCreative was a real strong compagny, with good support, but now it is a falling. No more support, no more update. Customer support is nullThey remove them self from the NASDAQ, so be prepare that the end is near.

  • Capturing Audio using iTunes

    Greetings! Is it possible to capture audio from an external source using iTunes for Windows? I have some old cassettes I'd like to transfer to CDs. I can connect my tape deck to the microphone jack on my PC, but can't get the audio saved on there. If a 3rd party software is necessary, can iTunes do the job? I can't find a way to do it using the usual MS programs (MovieMaker, Media Center, Media Player 11).
    Thanks,
    Jay
      Windows XP  

    Here's what i do.
    download audacity, a freeware audio recording tool.
    it records things to WAV files.
    you can set input to line or mic (or wave out mixer out if you have a soundcard).
    start recording.
    play yr source (cassette)
    stop recording. then you can edit the sound with audacity it has lots of utilities.
    export file (saves it as a .wav)
    go to itunes and import it and then convert it to the format of yr choice.
    if you have asoundcard the mixer/wave out actually lets you record streaming audio too.

  • I captured from mini-dv camcorder to FCP7 using control from my computer and firewire. I cannot find the file or clips I transferred anywhere except for in Finder. How do I get the clips from Finder to FCP7. Also I did not see audio on the computer meters

    I captured from mini-dv camcorder to FCP7 using control from my computer. I only find the capture clip in Finder. How do I get the clip in Finder to FCP7.
    Also my audio in the capture was not showing up on my audio meters on my computer-is this normal. Thanks

    you will not see the audio meters from within fcp move while capturing. 
    If you only see the captured clip in the finder, not within fcp, there's something wrong.  You might try deleting your fcp preferences
    https://discussions.apple.com/docs/DOC-2491

  • Record Audio in mp3 file format using FMS

    I am Recording Audio Using FMS which will record Audio file in FLV File Format default But I like to Record in MP3 File Format. Is it Possible.
    And I also Record Video In MP4 File Format using h264 encode. Which Give me Video File in MP4 File Format but When i will try to play that MP4 File it Didn't play. So, I post-processed video with a tool called F4V Post Processor. Now That MP4 Video File Play But Didn't Give me Sound in that Video.
    My Code is:
            var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();
            h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3);
            ns.videoStreamSettings = h264Settings;
            ns.publish("mp4:"+FILENAME+".mp4","record");
    I search Lot but didn't get the solution. So, Please Give me Solution for Both thing.

    The .flv format is a "container" format, not a video format.
    So that means that inside the container, you can have a video file and/or an audio file or even just an audio file.. which most likely is already an mp3 file. Use something like "FLV Extract" to break open the container and see:
    http://moitah.net/
    But really, for any Web delivery of audio, the .flv (audio only) method works just fine. Lots of media players available for the Flash .flv file.
    For example:
    Sounds from my bunk on the Lady Washington
    http://exploreolympics.com/reports/?p=2857
    Scroll down to third media player.
    A little quiet to start with... but this is a .flv file with just an mp3 audio file inside.
    Best of luck!
    Adninjastrator

  • Capturing audio from telephone for use in FCP

    My requirement is quite specific, and so far none of previous posts seem to answer my question. So...
    I'm looking to capture audio from my telephone for use in FCP. It won't be a telephone conversation, but a voice text. In other words, an SMS sent to a landline. The audio is saved as a voice message on the answer machine. My phone / answer machine is fairly basic - it has a speaker and the only ports it has is for power and the telephone line itself. I have tried a very basic method of playing the message on speaker and capturing it on a mini DV - but that results in too much audio edit to get it to sound acceptable. My Mac is a G5 and I have the full FC studio, but just not sure of best way to get audio onto the Mac without losing too much of the sound quality.
    Any suggestions?
    Many thanks all...
    Kirsten
    iMac G5    
    iMac G5    

    you need a telephone audio interface like the products made by the fine folks at gentner, telos or jk audio. i have a celltap from jk audio, works very very well. http://www.jkaudio.com/celltap.htm

  • Had some old movies from reel to reel on a vcr. i converted these to mp4 format using pinnacle video capture, quality was not great but it was decent enough on my computer. when i placed these on my ipad it was much worse and very choppy.  i have handbra

    had some old movies from reel to reel on a vcr. i converted these to mp4 format using pinnacle video capture, quality was not great but it was decent enough on my computer. when i placed these on my ipad it was much worse and very choppy.  i have handbrake and thought i could maybe change the movie so i could play it on ipad but dont know what dimensions or framerate etc. currently the movie on the computer is in 640 x 480 mpeg 4  aac.  thanks derek

    Jon,
    What Julianne said at first about re-linking made perfect sense and I followed it easily, had actually already been there.  But in my situation now, it didn't have any effect.  The directory of folders which had already been added were still just as they were, and the outstanding balance are not in the desired position.  And the folders which had been brought in earlier today when I clicked "synchronize folder", were still missing all the metadata.
    Maybe this means I need to start over, and I'm fine about doing that that, but I don't know what it takes to accomplish that.  I'm concerned now that any changes I make out of guesswork could only make the problem harder to resolve.  It just feels to me like something I did at the beginning just wasn't right, and now it's a tangle.
    Can you advise?
    Thanks,
    Gary

  • Satellite P300-19P not able to capture audio using Chicony Cam software

    Hey,
    I recently upgraded to windows 7 from vista and since then i have not been able to capture audio with the camera assistant software.
    I have tried uninstalling and reinstalling, repairing the program, changing the audio settings, running in compatibility mode, i have practically exhausted everything i can think of.
    Can anybody help at all?
    Marc
    Toshiba Satellite P300-19P
    Windows 7
    32-bit OS
    PSPCCE
    (if any other info is required then please ask me)

    Hi
    You mean you are not able to record the audio using the internal microphone.
    Is it right?
    In your case I would recommend checking the audio device settings inside the camsoftware.
    In settings -> audio tab (last tab) you will find the necessary settings.
    The audio device field should contain the microphone (2 Realtek high definition device) and the audio volume option should be set to max (to right).

  • Using JMF to capture audio from a JAR

    Hi
    I have a working application that captures audio and does some other stuff with it. The problem occurs when I export it as a JAR file - it can't find any capture devices. I have deduced that the reason for this is that it can't find the jmf.properties file that's in the lib folder along with jmf.jar. So, is there a way that I can make it find the jmf.properties file? I've tried putting it in the manifest and including it in the JAR itself but unsurprisingly that didn't help.
    Thanks in advance...
    Rob

    You can't use iDVD for that, but if you're willing to jump through a number of hoops, search the forum for threads about editing DVDs. Once you have ripped and converted the video file, you can extract the audio from that with iMovie (if you converted it into a DV Stream file).
    John

  • Using Flex to capture audio from Flash

    Hi!
    I've been trying for a while to figure out how to capture audio from a flash-application (http://www.delorean.se/mixer)
    and store it as a mp3-file.
    Since I've studied Java for 2 years I thought I'd try and use it to capture the audio but I'm running into problems all the time,
    and I've been advised to look up Flex by other Java users.
    So, I got some questions:
    Is Flex a good tool to use to capture audio from flash-applications and store the audio as a mp3-file?
    Is Flex hard to learn (I've been working with Eclipse for a long time so the IDE shouldn't be a problem and learning another language/framework is always nice)
    Any tips in general?
    Any answers would make me very happy!
    Thanks!

    physical are closed : how will it managed the queues and overspill queues when target is not present? Also the data dictionary must reflect the primary but If you run capture, then you introduce rules that are not on primary: How ?

Maybe you are looking for

  • The off button does not switch to 'hibernate' or lock when playing music.

    The off button does not switch to 'hibernate' or lock when playing music. I have to hold the off button down for a prolonged period of time to get it to switch off; have had to resort to holding the off button and the main button simultaneously to re

  • VA03 -  VBAP- CHARG - Text change from Batch to Charge

    HI SD Experts, I got one issue as the text for this field VBAP-CHARG change from Batch to Charge , i think there is no such request from user or my team to change this text, but some how its was change. Is there any way i can revert to change this te

  • Burn a PDF file onto a CD that contains music

    Hello, I'm currently in the process of completing a physical version of some music I made. I also want to include the lyric booklet PDF file but I would like to keep the CD as a music CD so there won't be any compatibility problems. Is there any way

  • Burning error #-34506?

    I've verified that my original G5 iMac can burn DVDs from the Finder. However, all attempts to burn an iMovie HD project via iDVD have resulted in a complete encoding of video and audio to be instantly followed by the following error report (note: no

  • Sun VDI 3.1.1 error with Sun 7310

    Hello, I'm working on a Sun VDI solution using a 7310 with Sun Storage 2010.Q1.0.0 and am having a provisioning error when importing a template or desktop. It errors about copying disk image to storage. Upon switching to a Solaris ZFS storage server