Problem in voice recording

Hi friends.
I�m developing an application for voice recording.
It works fine with the imulator provided with �k-tool bar� .
But while running in the device, it throws exception
In nokia N70 : java.io.IOEXception :opening a connection failed :-5
Motorolla : �java.io.IOEXception :Invalid locator�
here is my code :
try {
                    init.append("record voice ...\n\n");
                    // Create a Player that captures live audio.
                    p = Manager
                              .createPlayer("capture://audio?encoding=pcm&rate=8000&bits=16");
                    p.realize();
                    // Get the RecordControl, set the record stream,
                    rc = (RecordControl) p.getControl("RecordControl");
                    output = new ByteArrayOutputStream();
//                    rc.setRecordStream(output);
                    rc.setRecordLocation("file:///c/Ansh.wav");
                    rc.startRecord();
                    p.start();
                    Thread.currentThread().sleep(5000);
                      rc.stopRecord();
                      rc.commit();
                       p.stop();
                       p.close();
               } catch (Exception ioe) {
                    init.append(ioe.toString());
               }when i cange
rc.setRecordLocation("file:///c/Ansh.wav");to
rc.setRecordLocation("file:///root1/Ansh.wav");i dont get any error in motorolla, but i'm not able to find the recorded file
can any one help me out please!!!!!!!!!
Thanks in advance..
Message was edited by:
Ansh.

Hi,
IOException comes if the device doesnt support a particular encoding so first get the device suppoted encodings using,
String audioEncodings = System.getProperty("audio.encodings");
this will give u a list of device suppoted encodings. from that list select a particular encoding & record in that encoding instead of hardcoding a particular encoding. emulator supports 'pcm' encoding but the device doesnt.

Similar Messages

  • Speakerphone problem - lost voice from speakerphone while playing music or gaming youtube, while call or voice recording playing - all works fine, so speakerphone is working but not on all apps. hard reset done - no changes

    or gaming youtube, while call or voice recording playing - all works fine, so speakerphone is working but not on all apps. hard reset done - no changes.
    iphone 4
    SOLVED plugin to charger solved it - so problem was with contacts -- no idea why - phone is new - no water - no havy dust - usual using  
    hope will never return. Thanks

    We checked it with an iPhone 5 in house multiple times and could not reproduce this Problem. Must be something specific to your device. Maybe your speakerphone volume is turned down completely?
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • When I make a call, I can hear the person on the other end but they can't hear me. It's not the mic, I use the voice recorder all the time and I have no problems w FaceTime. My headphones and Bluetooth do the same thing as far as not being able to be hea

    When I make a call, I can hear the person on the other end but they can't hear me. It's not the mic bc face time or voice recorder are not affected. I can't even use my headphones or Bluetooth to get around the problem. This has stumped 2 geniuses, they just try to swap it out for $150.

    I am having the same issue with my iPhone 4. I can hear everyone but they can't hear me. Visited Apple Store and they said speakers were out, both bottom mic and top one for speaker phone. Said they were busted. Reloaded all software and didn't work. Got in parking lot and worked for 1 call. Now it's out again. Wanted $150 for new phone, haven't done it yet. don't know what to do.

  • Voice recorder problem in nokia 6300

    hi friend's,
    i am using noka6300 . i recored voice via voice recorder ,but it's sound is very very low . is it mobiole's problem ? how can i solve it /? . please send me replay sooooon .
    ur vincent

    Can you please give me the exact menu items for copying numbers from the phone to sim on a 6070 ? Thanks a mil. The screen on my phone is broken so i can't see hwat to do.

  • Voice recording problem i iMovie

    I have a problem with voice comments in i Movie. It worked. Then it suddenly doesn't. The recording seems to work. But when I play it afterwords there is no sound. The strange thing is that I have managed it, in the same movie. So when I play the first part there is a sound, and when I come to the latter part there isn't a sound. Without me changing anything. What can be wrong?

    This muted voiceover problem has been reported on a number of occasions in the forum. I think it was also a problem for some users of iMovie '09.
    Try this - In Finder, locate your project in your Home folder Movies > iMovie Projects (or at the top level folders in an external drive). Right-click (or Control-click) on the project name and select Show Package Contents from the pop-up menu. In the package you should see your voiceovers - they will be named Voiceover Recording.caf (probably with a number in the name).
    Copy then Paste the voiceovers to your Desktop. Open them separately in QuickTime Player then export using "File > Export To > iTunes". The files will be converted to a different format, depending on your iTunes import settings (mine convert to AAC format). Once converted they will appear in your iTunes Library.
    Now you can drag the voiceovers to the project timeline from the iTunes section of iMovie's Music Browser. Hopefully, the voiceovers will now play correctly.
    John

  • I have an ipod touch 4th genereation and have problems when i record you can barley hear the voices and sounds recording i don't know what the problem is?

    i have an ipod touch 4th genereation and have problems when i record you can barley hear the voices and sounds recording i don't know what the problem is?

    sounds like ur ipod's mic is blocked with something check the back on the ipod near the back camera

  • Problems with voice memo

    Hey,
    i've got a problem with voice memos. When i record them they are very quiet. It's something different when i record sound via video or use the headphones to record a voice memo. Then they have a normal volume. Any ideas?
    Got an iPhone 6 with iOS 8.1.1
    Thanks.

    Do you have Include Voice Memos selected under the Music tab for your iPhone sync preferences with iTunes? If so, this means the voice memos on your iPhone should have been transferred to your iTunes library on your computer. If these are available in your iTunes library, delete the voice memos from your iTunes library on your computer followed by a sync.

  • How can I use my ipod touch 2G as a voice recorder?

    I'd like to use my old ipod touch as a voice recorder. It's an ipod touch 2G (8 gig) using iOS 2.2.1. I tried updating the iOS but an unknown error (-1) occurred. I'm using iTunes 11.3 on a MacBook Pro 10.7.5. Any ideas?

    Error (-1)
    Try on another computer
    Also see:
    iOS: If you can't back up or restore from a backup in iTunes
    Then see:
    -1 error
    -1 error too
    If still problem  that means a hardware problem. In that case make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar
    If you get it to work I then the 2G iPod has a built-in Voice Memos app but you will need to purchase an microphone since the 1G-3G iPods did not have built-in mics. The mic plugs into the headphone jack.

  • IPhone 4s running on ios 7.0.4 voice recorder

    I have been using my iPhone on ios 6 for over a year and the voice recorder had no problems. After I updated my iPhone to ios 7 (I am currently using 7.0.4), the voice recorder showed 3 problems. First of all, it sometimes stops recording alone although I have more than 25 gb available in the memory. It also displays some of the recordings' durations as 00:00 and doesn't want to play them even though they take up part of the memory. The third problem happens when I'm listening to a recording and i try to unlock the phone for some reason. The recording stops playing alone. The ios 7 voice recorder is really disappointing and I have to use the recorder frequently. Any help? If I can't solve these problems, is there a way I can get the ios 6 voice recorder back??
    Thanks in advance..

    It will show up depending upon the carrier. Many carriers do not allow the settings to be cganged so the settings will not appear.

  • Want to use my voice recorder with my MacBook Pro

    I have Olympus Voice-Trek V-11 and want to use it. The problem is that it's no longer supported by Mac. I use MacBook Pro with OS X 10.8.5. I appreciate it very much if anyone knows what should I do to make my voice recorder usable with my MacBook Pro?
    In other words, I'm looking for something like Apache's Open Office to  MS office suit.
    I appreciate anyone's help very much!

    Welcome to Apple Support Communities
    To do what you want, do not use Migration Assistant. You will damage OS X. Instead, you need to erase the hard drive, remove everything from your MacBook Pro and restore the Time Machine backup, so you will be upgrading to OS X Mountain Lion.
    It is as simple as holding down Command and R keys while your computer is starting up. Then, connect the external drive with the Time Machine backup, choose the option to transfer a Time Machine backup and follow the steps in the display.
    As you will lose everything you have in the MacBook Pro, you may want to make a backup of its files first.

  • When sending voice recording in iMessage to another iPhone in IOS 8 they just get a ? mark.

    Trying to send a voice recording in iMessage but my friend only gets a box with ? Mark in it. He can send voice to me okay. Both of us have IOS8 on iPhone 5S. Anyone haveing this Problem?

    I just had to Reboot my iPhone and then it started sending voice recordings. Not sure why that did it but all is good now.
    Thanks

  • PC voice recorder recording into Mac iTunes

    I have an Olympus voice recorder that said it would work on my Mac but it doesn't.  So I use it on a pc.  But my iTunes is on my Mac and I'd really like to get a recording off of the recorder and into iTunes.  I tried mailing the recording from a pc, opening and downloading it on my Mac but it comes up as garbled text. 

    Save the WMA files onto the Mac.  Play them with VLC or install Flip4Mac on your computer to play them with Quicktime player.
    VLC media player - http://www.videolan.org/vlc/ - general media player that plays just about anything.
    Perian codecs for Quicktime - http://www.perian.org - plugins to add functionality to Quicktime for playing additional audio and video formats
    Quicktime audio problems, Perian, VLC - http://discussions.apple.com/message.jspa?messageID=9013669 - read note about uninstalling prior DIVX support before installing Perian.
    Free Flip4mac QuickTime player components - http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
    Flip4Mac - http://www.telestream.net/
    After installation a new Flip4Mac pane will appear in System Preferences.  Make sure you set the boxes to ensure that it will play WMV files in Quicktime.  There is a free version but they don't make that very clear (I wonder why?).  To do conversion vs. just playback you have to use the paid version.
    Alternatively, try converting them (there will be quality loss): 
    Switch (free basic version) - http://www.nch.com.au/switch/index.html
    All2MP3 - http://download.cnet.com/All2MP3/3000-2140_4-190407.html - mixed success with WMA

  • E65 voice recorder going haywire!

    Please help! My nokia e65 has started going crazy, it keeps popping up with a voice recorder, that asks you to say someones name. It started last night when it was charging, and would just randomly start. It was annoying, and i needed to sleep, so i closed the slider, and locked it, which was a mistake because now there is 5 hours worth of it popping up every second. Can someone please tell me how to shut it down, because my phone is not usuable until i do, because it keeps popping up every single second!!
    Thanks

    The same is happening to mine. Nokia have reloaded software but the problem is still there and they have it in their workshop again. Did you get your problem sorted and if so how?
    Do you sync from a mac by any chance?
    Cheers

  • E-63 voice recorder hang

    For media/office use, we bought 2 E 63. We want use it for our reporters gathering information on the field. All the other application work well but the voice recorder which is principal for reporter's job.
    Voice recorder : original program from Nokia can only record once and it just hang after the first recording.
    I think the problem lied down on software than on hardware. I browsed on internet where I found a freeware Sound Recorder 1.0.
    Still we have the problem, it takes some click on button before Sound Recorder work well and never hang.
    You can play the the file on the original nokia player and make it as sound bite for report from our journalists
    ( Voice of Indonesia, Jakarta: www.voi.co.id )

    God I wish somebody would answer this.  Its really hard to search for and I've been hunting around for ages using keywords like 'soundclip' 'audio recorder' 'numbering'.   There has to be a solution.

  • Problems importing HD recording from Sony HD-HCR3

    Apologies but I am new to this!
    I just bought the Sony HCR3 - when I try to import (via Firewire) HD movies, the picture is very jumpy, single clips are getting broken up and the audio is distorted (voice sounds an octave lower) even though the playback on the camcorder is fine. I don't have any problems when I record and import in DV format.
    I have upgraded to iMovie 6, but have yet to upgrade from 10.3.9 (which means that some features of iMovie HD don't work). Is this the reason for my problem?
    Thanks in advance for any advice.
    iMac G5   Mac OS X (10.3.9)  

    Well, I have a similiar problem with the Sony HDR-HC1E.
    The imported movie ist too slow, so it sounds an octave lower. This problem occures on my powerbook g4 and on my powermac g5. There are no problems with imovie 5.
    Nobody could tell me why this problem occures....
    You should go bac to imovie 5. iDVD 6 has also some problems.
    Sincerely....

Maybe you are looking for