MMAPI (recording and replaying  audio) on windows mobile

Hi
I have written a code to record and reply the audio .
It works fine on Nokia N95 .
My requirement is : It should work on HTC S710 and other windows mobile AT&T Tilt .
Have a look at the code
try {
                    oPlayer = Manager.createPlayer("capture://audio?encoding=amr");
                    oPlayer.realize();
                    RecordControl oRecordControl = (RecordControl) oPlayer
                              .getControl("RecordControl");
                    ByteArrayOutputStream output = new ByteArrayOutputStream();
                    oRecordControl.setRecordStream(output);
                    // start the recording
                    oRecordControl.startRecord();
                    oPlayer.start();
                    Thread.currentThread().sleep(5000);
                    oDisplayMessage.setText("Recording complete!");
                    oRecordControl.commit();
                    // save the recordedData in a byte array
                    oBytes = output.toByteArray();
                    // close the player
                    oPlayer.close();
               } catch (IOException oIOException) {
                    oIOException.printStackTrace();
                    Alert oalert = new Alert("Error" + oIOException.getMessage());
                    moDisplay.setCurrent(oalert);
               } catch (MediaException me) {
                    me.printStackTrace();
                    Alert oalert = new Alert("Error" + me.getMessage());
                    moDisplay.setCurrent(oalert);
               } catch (InterruptedException ie) {
                    ie.printStackTrace();
                    Alert oalert = new Alert("Error" + ie.getMessage());
                    moDisplay.setCurrent(oalert);
Can any one tell me way to excecute this code on above mentioned (windows mobile)

Ok i understand but what emulator did you use for windows mobile? Did you use j9, cre-me or other emulator?
I use the j9 for windows mobile so i can run j2me application, but as far as i know it doesn't have the mmapi package.

Similar Messages

  • Recording and playing Audio at the same time

    Hi,
    Having problem with a MMAPI imp.
    The simplest way of doing it is to start one thread playing a audio file of any kind.. As it is playing start a other thread that start a audio recording.
    As soon as the audio recording is allowed to record (Security promt) the audio playback stops. And the playerListstner sends a END_OF_MEDIA event.
    So my question is: Is there a way of doing playback and recording at the same time or is this a limit on the phone or the MMAPI?
    This has been tested on Nokia N90 and SE W550i with same reults
    Cheers
    Kenth

    i also desperately need to record and play audio at the same time.. i have a term project, i am develeoping a karaoke player in j2me and it is supposed to capture the voice at the same time background song is played.. and it is also supposed to grade the singer according to the pitch of voice.. please help me about recording and playing audio at the same time...

  • Recording and importing Audio in 24Bit/48KHz...not working??

    I cant figure out how I can set my project to 24bit/48....
    I need to record and import Audio in 24/48 in my project.
    I've already set Settings/Assets/Convert audio file sample rate when importing.....but when I drag an apple loop from the Media/Loops....it doesn't convert at all......it still show 16/44.1 in the bin.
    I'm really lost here....and can't figure a way to set my project into 24/48. Am I missing something here? I use to be a Cubase user and Cubase does converts the files that I imported to my project.I understand that if I press control C in the audio file that I imported in the bin and that will change to what ever bits or KHz that I want to,but this isn't helping cause when I import the audio file, the file is already in the tempo of the project,but if I convert audio file from the bin.... the tempo will change due to the difference in Bit.
    Please help me out here...Thanks!

    Pancenter,
    Thank you for the reply. Yes, according to the specs on page 73 of the Mac Pro User Guide (http://manuals.info.apple.com/enUS/Mac_Pro_UserGuide.pdf), it is spec'd to record 24-bit @ 48 kHz & 96k Hz. Here is the text from that page:
    Optical digital audio in
    Based on a typical situation with playback of 1 kHz, 0dBFS 24-bit sine wave, unless
    otherwise specified below.
    Â Input sample rate: 44.1 kHz, 48 kHz, or 96 kHz
    Â Signal-to-noise ratio: Greater than130 dB
    Â Total harmonic distortion + noise: Less than -130 dB (0.00001 percent)
    Additional specs include:
    Optical Digital Audio Specifications
    Â Data format: Sony/Phillips Digital Interface (S/PDIF) protocol (IEC60958-3)
    Â Connector type: TOSLINK optical (IEC60874-17)
    Â Bits per sample: 16-bit or 24-bit
    Therefore, I interpret these specs as saying that the Mac Pro is spec'd to record 24/96 without the need for a third party audio card.
    Please reply back if you have a different interpretation or you concur with mine. I am interested as I have escalated the issue to the Apple's executive level and am open to being wrong if that is the case. In July, Apple Corporate Customer Relations informed me that engineering was able to duplicate my problem and are working on a fix. This month, Executive Customer Relations informed me that they are not able to address the problem at this time. I informed them that I consider Apple to be in breach of contract.
    John.

  • Microsoft Licenses Flash Lite 3 and Reader LE for Windows Mobile

    Microsoft Licenses Flash Lite 3 and Reader LE for Windows
    Mobile – A Developers Perspective
    http://www.flashdevices.net/2008/03/microsoft-licenses-flash-lite-3-and.html
    Also some other news:
    Flash Lite has Shipped on Over Half a Billion Devices
    http://www.flashdevices.net/2008/03/flash-lite-has-shipped-on-over-half.html
    Best,

    Hi Bill,
    Can you tell when it will be available for download?
    Today I installed Flash Lite 2.1 on my Asus M530W
    WM6-Smartphone and flash&windows media enabled websites stoped
    showing correctly - for example instead of having flash media
    player with wmv content I see just white background (in the past
    everything was ok).
    Is there any Flash Activex plugin that will work with pocket
    IE?
    Thanks for support!
    Greetings,
    Robert

  • Is there and ipad app that allows you to record and edit audio, but can record in the background?  This would be to record voiceover auditions/podcasts while reading a script

    Hi wondering if anyone might be able to help me out.  I am an audio engineer and my wife is a voiceover artist.  We just got the ipad thinking she could record her voiceover auditions on the go, but we can't for the life of us figure out how to record audio while reading a script off of her email.
    Looking for an app that:
    Either can record audio while in the background (garageband cannot)
    OR Import text (copy paste I guess?) to read while recording
    The app needs to  be able to edit audio and export or email out an MP3 - by edit audio I mean trim, fades, and move around sections.
    Anyone have any thoughts on how to do this?  I have been looking around the web for answers for hours and can't find any.  Thanks in advance for your help.

    Hi-  I've done a lot of research in this area and actually am just finishing a book on this subject which will soon be in the iBookstore.
    The best app is TwistedWave.  It allows easy editing and recording, and also allows you record while you are in another app (such as a script your agent sent in your email)
    I recommend MiC by Apogee as your microphone, available at the Apple store.
    My book which goes in depth in how to get the best sound as well as how to edit is called:
    iVoiceover
    Super. Simple. Recording.
    I'll post here when it's live in the iBookstore!

  • Recording and convering audio tapes - How & which app?

    I have a USB audio capture device buoght tome time ago but it doesn't register on my Macbook Air. What kind of device and programme/ap should I use to audio-copy and preserve as a file on my MacBook the contents of a small number of precious old-fashioned tapes?

    Hi,
    Some more info on what you have would be good, what type / make and model of tape player and USB audio capture device have you got?
    and when you say your USB audio capture device "doesn't register on my Macbook Air" do you mean it doesn't register in sound settings (system preferences>sound)
    Personally
    I use a different cable to connect to my computer (link to cable here) just depends what the output options of your player...
    The program I use for recording is Audacity (download link here) it's an ok free open source program.
    -Charles

  • A Script to read and copy from a Windows Mobile device

    Hey forum....
    When I dock my Windows Mobile device in a Windows 7 PC, the Windows Mobile Device Center opens and I can browse the device and copy files between it and the PC. However, I'm looking some kind of way to automate this process. All I'm really interested in
    is a single file named TEXT.TXT which is stored in the My Documents folder. Basically, I'm looking for a script that will detect the Windows device (it's USB-attached) when docked, find the file TEXT.TXT in the My Documents folder and then copy this file to
    the /Temp folder on the desktop.
    I've tried using the synchronization feature of WMDC but it copies the file to a documents folder set up for the specific device. Instead, I'm looking to find and copy the file to C:\TEMP regardless of the device.
    Thanks in advance for any help!
    Everett

    Hey forum....
    When I dock my Windows Mobile device in a Windows 7 PC, the Windows Mobile Device Center opens and I can browse the device and copy files between it and the PC. However, I'm looking some kind of way to automate this process. All I'm really interested in
    is a single file named TEXT.TXT which is stored in the My Documents folder. Basically, I'm looking for a script that will detect the Windows device (it's USB-attached) when docked, find the file TEXT.TXT in the My Documents folder and then copy this file to
    the /Temp folder on the desktop.
    I've tried using the synchronization feature of WMDC but it copies the file to a documents folder set up for the specific device. Instead, I'm looking to find and copy the file to C:\TEMP regardless of the device.
    Thanks in advance for any help!
    Everett
    Just configure the device to sync the folders you want to sync.  Start by reading the help very carefully.
    This is not a scripting question and this forum is not for end user questions.   I suggest posting in the Windows Phone forum.
    You can also sync via OneDrive over a cellular or wireless connection.
    ¯\_(ツ)_/¯

  • Recording and playing audio files

    hi, is there a way by which one can record and play an audio file in java ?? I am doing a project in Voip but I can't find any help in this matter(actually i am a newbie in java ) .. can anyone please tell me how to proceed?
    Edited by: streetfi8er on Jun 28, 2009 2:47 AM

    >
    hi, is there a way by which one can record and play an audio file in java ?? I am doing a project in Voip but I can't find any help in this matter(actually i am a newbie in java ) .. can anyone please tell me how to proceed?>You could not find anything on ['java audio'|http://lmgtfy.com/?q=java+audio]? Where did you look, underneath the bed and in the back yard?
    Note that you might help dispel my impression that you are lazy, by applying the shift key once at the start of each sentence.

  • Text editor recording and replaying events

    Hi there.
    Ive recently started Java and am writing a text editor. I was wondering if anyone could point me in the right direction.
    I want to be able to record everything a user does to a file in an XML document and replay it later. The XML isnt the problem. I was wondering if there is an existing way of capturing all the events for replay. i would also like to be able to speed up and slow down the replay.
    any suggestions or even a point in the right direction would be great.
    Thanks.

    Hi,
    perhaps Jacareto can help you: This tool captures events and replays
    them with the robot. The events can be grouped together to structure
    the record, and you can add own structures you are interested in
    (so you may look at "MouseEvents" or at "User chose the edit menu item
    events").
    You can also add own replay modules which replay the high-level
    structures. If you do not want to replay in real-time, you can slow down
    or speed up replay by defining a delay between the events.
    The Jacareto site:
    http://www.ph-ludwigsburg.de/mathematik/personal/spannagel/jacareto/
    Hope I could help you...
    Best regards,
    Christian

  • Cisco Unified WFO - Call Recording and Quality Management with Extension Mobility agents

    Hi All,
    We're considering Cisco Unified WFO - Call Recording and Quality Management for a customer running UCCX 8.0, agents on multiple WAN sites, all agents using extension mobility.
    The documentation I've been able to find describes three different recording methods:
    Using Desktop Recording service (Endpoint) to record from an agent’s desktop.
    Server Recording - Uses SPAN (not so good for remote sites)
    Network Recording - Uses CUCM recording service / SIP trunk / phone's built in bridge.
    Network recording or Desktop recording should be suitable for the customer but it seems that Extension mobility is not supported.  Extension Mobility is not mentioned in the 8.5 installation guide, it is mentioned as ‘not supported’ in the 8.0 guide as follows:
    'Server Recording and Network Recording have the following limitations:
    • Extension mobility is not supported.'
    Neither version's documentation specifically mention extension mobility in relation to the desktop recording method, though I realise this is a similar approach to the 'server recording' method.
    So the question I have is:  Is extension mobility supported in any way on version 8.0, or version 8.5 for recording?  And if so which recording method(s) are supported?
    Thanks,
    Jonathan

    Hi,
    I had more luck asking questions over at the Calabrio forum - they make the software and Cisco re-brand a version of it - there is some good info on their portal (http://portal.calabrio.com), you have to register but it's fairly painless.  The answer I got was:
    "QM Desktop recording has always supported extention mobility as it determines the recorded user by the desktop user's login. Extention mobility was not supported for Server and Network recording until the Calabrio QM 8.6.2 release in April 2011 and will be added to Cisco QM starting with QM 8.5.2 in June 2011"
    Regards,
    Jonathan

  • Please help me with recording and playing audio simultaneously!!!

    Right now I can either play the incoming stream OR record it. I tried making Clones for datasource like :
    DataSource clone1 = Manager.createCloneableDataSource(originalSource);
    Then I pass it to these 2 classes:
    new playThread(clone1).run;
    new recordThread(clone1).run;
    playThread is a Thread class that will take the cloned datasource and then plays it while recordThread will record the incoming datasource. Here is what happens when i run them one after another:
    When I run playThread before recordThread I get ACM driver error. But if I run the recordThread before playThread the playThread's playerWindow shows up and plays for a split second then stops; The recordThread does record all the incoming stream though... Here are my questions....
    1. Anyone know what my problem is? is it resource alocation? Threading problem?
    2. Did I use the clone datasource correctly? I tried making clone1, clone2 but those didnt work well either...Should I do anything to the clones for record and play? all I did was pass them to the 2 classes and those classes just use them straight out without proccessing or anything...
    Please help me out!!!! thanks a bunch!

    i dont think it is... i tried the clone thing but samething happened... it might be a Thread problem since when i put those together sometimes record runs sometimes player runs... and at the end i get "ERROR while querying ACM driver's information" error..... i am really confused...
    DataSource clone1 = Manager.createCloneableDataSource(originalSource);
    DataSource clone2 = Manager.createCloneableDataSource(clone1);
    playerThread play= new playerThread(clone1);
    recordThread record= new recordThread(clone2);
    record.start();
    broad.start();
    anyone can help is appreciated

  • Recording and Replaying Ejb Calls

    Hi All,
    Recently i have developed an application for jboss AS which record Ejb outgoing invocations from a J2EE Client Application
    in XML form using AspectJ instrumentation. In Jboss case the recorded invocations are Dynamic Proxies with their handlers
    and some other usefull information needed to replay.
    Now i am trying to port my application on weblogic AS. My recording mechanism gives me only Stub with IOR instead of
    Dynamic proxies. I dont know how can i replay invocations using such stub information.
    Please give me some advices how can i tackle this problem?
    Here is some snippet from a recorded invocation
    - <de.novatec.ejb.FiboBeanRemoteHome__IIOP__WLStub serialization="custom">
    <unserializable-parents />
    - <javax.rmi.CORBA.Stub>
    <int>55</int>
    <byte-array>Uk1JOmRlLm5vdmF0ZWMuZWpiLkZpYm9CZWFuUmVtb3RlSG9tZTowMDAwMDAwMDAwMDAwMDAwAA==</byte-array>
    <int>1</int>
    <int>0</int>
    <int>408</int>
    <byte-array>AAECAAAAAAoxMjcuMC4wLjEAG1kAAAB8AEJFQQgBAwAAAAAMQWRtaW5TZXJ2ZXIAAAAAAAAAADdS
    TUk6ZGUubm92YXRlYy5lamIuRmlib0JlYW5SZW1vdGVIb21lOjAwMDAwMDAwMDAwMDAwMDAAAAAA
    AAQyODUAAAAAAUJFQSoAAAAQAAAAAAAAAADAFzC19YL3igAAAAUAAAABAAAALAAAAAAAAQAgAAAA
    AwABACAAAQABBQEAAQABAQAAAAADAAEBAAABAQkFAQABAAAAGQAAAEoAAAAAAAAAQmh0dHA6Ly8x
    MjcuMC4wLjE6NzAwMS9iZWFfd2xzX2ludGVybmFsL2NsYXNzZXMvVGVzdFdMRWpiX0VBUlByakAv
    AAAAAAAAHwAAAAQAAAADAAAAIAAAAAQAAAABAAAAIQAAAFgAAAAAAAAAAQAAAAAAAAAiAAAAAABA
    AAAAAAAIBgZngQIBAQEAAAAfBAEACAYGZ4ECAQEBAAAAD3dlYmxvZ2ljREVGQVVMVAAAAAAAAAAA AAAAAAAAAAAA
    </byte-array>
    </javax.rmi.CORBA.Stub>
    - <weblogic.corba.rmi.Stub>
    - <default>
    - <ids>
    <string>RMI:de.novatec.ejb.FiboBeanRemoteHome:0000000000000000</string>
    </ids>
    - <ror class="weblogic.rmi.cluster.ClusterableRemoteRef">
    <boolean>true</boolean>
    - <weblogic.rmi.cluster.BasicReplicaHandler>
    <int>1</int>
    - <weblogic.iiop.VendorInfoCluster>
    <int>504</int>
    <byte-array>AAAB9AAAAAAAAAAA//////WC94oAAAABAAAAN1JNSTpkZS5ub3ZhdGVjLmVqYi5GaWJvQmVhblJl
    </byte-array>
    </weblogic.iiop.VendorInfoCluster>
    <boolean>false</boolean>
    <string>ejb.FiboBeanRemoteHome</string>
    <null />
    </weblogic.rmi.cluster.BasicReplicaHandler>
    - <weblogic.iiop.IIOPRemoteRef>
    - <weblogic.iiop.IOR>
    <int>484</int>
    <byte-array>AAAAAAAAADdSTUk6ZGUubm92YXRlYy5lamIuRmlib0JlYW5SZW1vdGVIb21lOjAwMDAwMDAwMDAw
    2dpY0RFRkFVTFQAAAAAAAAAAAAAAAAAAAAAAA==</byte-array>
    </weblogic.iiop.IOR>
    </weblogic.iiop.IIOPRemoteRef>
    <boolean>true</boolean>
    </ror>
    </default> ..............................................................
    #######################################################################

    Angela, is most likely the best person to answer this, however from looking at the code it appears all it would do is change the state of the button to "enabled" or "disabled" while the recording is happening, or maybe show some message
    showing that the recording is occurring. I don't think this has anything other than updating the User Interface of the button on the main thread.
    As far as the ArgumentException, it's most likely the options you're selecting for the
    KStudioEventStreamSelectorCollection
    variable. There are certain options you must select, and others you can't select. For an example look at Kinect Studio and try to select some of the streams, you'll notice that when you select BodyIndex you can't have RawIR selected and etc. Another example
    is Depth requires IR, etc. You'll have to play around with the options to make sure they are valid.
    Sr. Enterprise Architect | Trainer | Consultant | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer |blog: http://dgoins.wordpress.com

  • Quicktime 7.5 - Black Video and no Audio - Using Windows Vista

    Hello,
    I tried asking this, but I don't think I was clear enough.
    Current Computer - Dell Inspiron, Quad Core, 4gig Ram, < 1yr old.
    Running OS - Vista Home
    Up until recently Quicktime worked fine, then all of the sudden the video is gone.
    The audio is still there however.
    What I have done to try to resolve -
    1) Reviewed previous topics and tried the following -
    a) update Preferences to Safe Mode (That made a white stripe in the black screen)
    b) Update preferences to remove Direct 3D video acceleration, nothing changed
    2) Reinstall Quicktime 7.5 - No change, still shows BLACK video and will play audio
    3) Reinstall Itunes with Quicktime - No change still shows BLACK video and will play audio
    Thank you for any help you can provide!

    I have found a temporary workaround for this. I can open the indeo 5.1 formatted avi's in another program (either fade to black or virtualdub) and change/convert to another indeo codec called IYUV (as opposed to IV50) and while it renders a much larger avi file, those DO open in Quicktime, and when I export to convert this larger avi into a MOV file, it is about the same file size in the end product as the ones I render from the same 5.1 avi on the other computer. Knowing I can do this as needed saves me having to re-render all 400 or so of my avi's to another codec or lose them.
    I STILL think there is a fix out there that is related to somehow telling the registry to recognize the ir50_32.qtx codec the same as I finally did to get Windows MP to play these files, but I haven't figured out how to do that yet.
    Progress is supposed to make these files SMALLER with BETTER quality, but all I see so far with these "new improved" codecs is bigger files and no better (or even worse) image/sound quality. I'll change to more "modern" codecs when they show me one that is an actual improvement over the old one based on this criteria. And AVI remains the ONLY file format that can be extensively modified and edited artistically (zoom, crop, add watermarks and color filters and special effects). Apple is shooting themselves in the foot if they make us unable to open our AVIs in the pro version so we can continue to use QT Players on our web pages. I LIKE the mov finished product for both file size and quality, and I am happy to drive new customers to them as long as they let me convert my files in QT Pro. When I can't any longer, I'll convert every single website on all my websites player to Flash.

  • Static, crackles, pops and dragging audio in Windows 7 64bit

    <'sHey guys
    I`ve just installed Windows 64 bit and im facing static, crackles, dragging audio, while im listening to music , or even watching a movie(in window mode) and at the same time im browsing the?internet, scrolling?up and?down. etc facebook page.
    The think is , its not the sound card(i have X-FI Elite PRO)?because , i`ve tried also the onboard and still the same problem. I`ve seen this problem to many forums but no answers that are fixing the problem.
    The sound is terrible.
    Anyway , please help.
    Thank you
    ?CPU :?Intel Core 2 Extreme quad-core QX9650 @ 3.0GHz
    MOBO : ASUS MAXIMUS EXTREME
    RAM : 4GB DDR3 @ 333 MHZ
    HDD : RAID 0
    SOUND CARD : X-FI ELITE PRO and SupremeFX II Audio Card
    GFX CARD: NVIDIA GTX 580
    PSU : 000 WATT
    WINDOWS 7 ULTIMATE 64BIT

    Hi,
    Are you using a software that's called "AI Suit"? (Asus own overclock tool). If this is the case disable it or if that does not work, then uninstall the software and see if it hel
    ps.
    Otherwise clear cmos (see the instruction in your motherboard's manual) and load the default settings for the bios for the time-being, boot into Windows and see/hear if there is still popping/crackling sound. Also try to update the motherboard with the newest the bios, maybe it will help.
    Hope this works for you,
    Good luck!

  • Recording and transcribing audio of a phone call

    Hello,
    I am looking for an app that will allow me to record a phone call on my iPhone and then transcribe the audio of this call into a text file. Does anyone know of an app that will do this?
    thanks,
    Tim

    You must be in compliance with any state and federal laws if you attempt to do such.
    Google voice (USA only) can assist you in this manner https://support.google.com/voice/answer/115082?hl=en
    If you're outside the states, try to use an app that does what you need.

Maybe you are looking for

  • Problem in creating dynamic array field.

    Hi there, Following are the steps we followed to dynamically build the array field. 1) Single column array field created with a single widget in the design time. 2) Few more columns were added using 'Addcolumn' method. 3) Data in the array object map

  • Install ilife 03

    Hi, I currently use iMovie 6, but I have some movies created in iMovie 3 that get screwed up when i open them in iMovie 6. So, i want to re-install iMovie 3 in order to re-edit them. How do i do this without overwriting iMovie 6? I tried installing i

  • How can i downgrade my ipod?

    I really dont like the new upgrade. I cant even download apps now. Cant even get in to app store And safari the same. I barely wrote this.

  • Douts in authorizations and reports..

    Hi Gurus, I do have some doubts on time manageents consepts like 1. what is Time manager's workplace ( TMW ) 2.what is cost assignments and activity  allocation And in Authorizations : 1. what is the general authorization checks 2. what is the Author

  • Saving videos from others' Photo Stream

    I have a Photo Stream that I share out to family.  Since the iOS 7 update, I have started adding videos to it.  Can any of my family members download videos from the stream like they can the photos?  How can I get this to work?  I have asked my siste