Once its saved audio playback

Can someone tell me how I should play an audio recorded? I'm recording in default AMR format. The data are stored in an array of byte []. Now, I want to play these data once registration is completed. Please can someone give me a code example of how this could be done.

My code is,

Reader = Manager.createPlayer ("capture://audio");

Player.Realize ();

rcControl = player.getControl ("RecordControl") (RecordControl);

output = new ByteArrayOutputStream();

rcControl.setRecordStream (output);

rcControl.startRecord ();

Player.Start ();

Once I hit the stop button, it does the following:

rcControl.commit ();

data = outout.toByteArray ();

output. Close();

Player.Close ();

Now, when I hit the play button,

Reader = Manager.createPlayer (new String (data));  Note: data are a byte array

drive. Realize();

Player.prefetch ();

Player.Start ();

But when I hit the play button, the player does not have these data. Can anyone help me please with this. I'm really stuck with it. Can someone give me a code to play this audio recorded? Thank you.

Kind regards

David

I did not try it, but I think it goes something like this:

(data [] byte)

ByteArrayInputStream bi = new ByteArrayInputStream (data);

Reader = Manager.createPlayer (bi, "audio/amr");

Tags: BlackBerry Developers

Similar Questions

  • LOCK the form once its saved?

    Hello

    I developed a form, opening in the browser, like online, though.

    But, if the user registers once this form on the local computer, all the field LOCKED or grayed OUT, it should to just DISPLAY use

    Pls let me know hoe can get this requirement, the snippet of code JS pls?

    Thank you

    Then, you must use the postSave event.

  • Auto volume leveling audio playback

    It's really annoying:

    His sound is amplified to sound at a reasonable level. When a strong part of the song comes automatically to the grave level then produce audio quiet parts annoyingly loud & the annoyingly quiet strong part... Sorry it's the best way I can describe this... once again:

    Only happens when its had seconds on silence (eg. break) - at this time the system begins to 'think' base volumes creeping upward for himself. Then when the song begins again you are treated volume which is quiet quickly when the system realizes, there is a higher level of sound through the...

    It's very frustrating because I use my computer to record & thus need to have audio playback to its correct level - not to the level of the computer think it should play to...

    I've raked by looking for an "auto off" option arrangements and have spent a lot of time looking for an answer online.

    Any help you could offer would be greatly appreciated.

    Thank you!

    Hi pablo647,
     
    Welcome to Microsoft Windows 7 answers Forum!

    We would like to get some more information from you to help solve your problem.

    You use any sound card on the computer?

    You can try to play the song even to a differnet headphones or speakers.

    I think it might be a problem with the sound card drivers.

    You can update the drivers for audio devices and try after that.
    1. click on start and then click Control Panel.
    2. click on system and Maintenance, click System, and then click Device Manager.
    Note that if control panel is in Classic view, double-click System and then click on Device Manager.
    3. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.
    4. in the device, expland 'sound, video and game controllers' Manager, the "sound, video and game controllers" right click and go to properties.
    5. navigate to the tab Update and then click on set to update driver.
     
    You can also check on the website of the manufacturer of the sound card and check if they have any updated drivers for Windows 7 and you are trying to install it.

    It will be useful.
     
    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum

  • No audio playback for hp pavilion m7 running Windows 7

    Following a Saturday night automatic update I lost all audio playback on my laptop. I tried to do a system restore and download and reinstall the audio driver. A bit of a loss here, suggestions?

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp57501-58000/sp57966.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you're done, shut down the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key esc that you start the computer to launch the Start Menu, and then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once this done, do a right-click the speaker icon in the taskbar and select playback devices.  'Speakers and headphones' left click once to highlight, and then click the Set Default button - check if you now audio.

    Kind regards

    DP - K

  • Buzz audio playback from any computer in the House

    In the last day or two, suddenly my laptop Dell XPS Windows 7 had this weird behavior: when playing audio or video, on youtube or other sites, or locally the MP3 files on my computer with Windows Media Player, every once in a while, there's a hum, kind of like when the judges love not something on one of these talent shows and they ring the buzzer.  It's as if Simon Cowell is right there inside my computer, buzzing just once in awhile, at random moments.  It continues for about half a second, and then the video or the audio continues.

    Then when my wife got home, she was complaining about the same thing on his laptop, which has just begun to happen in the past day also.  She had the same problem that watching videos online, or talking to someone on Skype.  She usually use Chrome or Firefox to watch videos, while I was using IE.  It seems that any software or computer is used, and if the file is local or online, happens as long as there is audio playback.

    Doing some research, I notice that someone described a similar problem happening after a Windows Update 4 years ago, and this person had to update some other driver to be compatible with the Windows Update.  I noticed that there was some very critical updates in the last days, and I wonder if they are responsible.  If it is a driver incompatibility problem, I don't know yet how to solve it.  Any help is very appreciated.  Thank you!

    YES!  I was wondering if it was a question of Dell and would make troubleshooting more tonight.  (I needed to understand why Dell DataSafe kept fails, too).  I had noticed the pop-up blue Dell SupportAssist a couple of days, but don't connect it might have caused a problem.  It seems that it is the culprit, because I've been without buzz since I dropped it and restarted.

    Thanks for the help!

  • Control Panel does not, audio playback does not

    Greetings.

    I accused several problems on my device.
    Symptoms:

    • Audio playback does not. Troubleshooter does not solve the problem; If clicking on "options to explore" the program gets just closed.
       
    • Not opening Control Panel. By clicking on the icon will display the window, but it will remain a Virgin and load indefinitely.
      After some time, estimated at about fifteen minutes, the window will always understand in the taskbar, but it will not be open upwards (while still showing the blank page on the preview).
    • Action Center to report problems of signature with a Microsoft Account and forcing the user to validate its identity. On trying to click on 'check', nothing happens. Switch to a local account and re - try to sign causes a "Please wait" message permanently on the app settings PC NOTE: accessing the said account from the web or with other devices is quite possible and does not generate any unusual behavior. The password of the account was changed, but this caused no change in the current situation.

    Please note that the above issues may or may not have a common cause. I'm not experienced user, so I am not able to discern the useful information. It should be noted, however, that none of these issues have been already presented, and the machine has worked perfectly so far.

    Thank you for your time.

    Hi, Marcello,.

    Thank you for an update on the issue. I appreciate your efforts to resolve the issue.

    As you have tried almost all the steps to solve the problem, this problem could be by the corruption of the user account.

    I suggest to create a new user account and check if that helps.

    Refer to create a local account

    See also: all about accounts

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you

    Thank you

  • Audio playback altered in Adobe Premiere Pro CC2014Sequence

    We started the Assembly of a draft standard CC2014 - we work with the cloud and all our software are up-to-date Adobe said CC

    The project implemented to the point - we've added an audio track - all played back fine.

    As we finished the project we have had to add a second layer of audio as the last piece will be narrated by 2 narrators one until the customer decides who will read what to keep two audio in the timeline panel, and disable the file on the right. (We did this in the past without problem projects.)

    That's where the problems are developed - poltergeist any as re-read us the sequence we hear various audio ghosts (for lack of a technical term) as - hear us the audio stops playing below at a lower level and distortion - but even more strange - audio playing under another part of the timeline is - so if I turned on the file below , I could now hear 3 track audio playback - 2 turned on and to place and one 3rd-audio lower flat and distorted.

    Troubleshooting steps so far:

    I think that hmm... perhaps it is an audio or a 3rd party software problem - I did so to disable all my audio playback software and send the audio to the desktop - problem still there

    I think hmm... maybe it's a corrupted file - so I open a new project file and import the sequence - problem still there.

    I think that hmm... the second audio is maybe a problem - so I delate all the sound elements to add - a single layer of the audio in the project - now the problem there re-routed self to give me the same problems, but always using the audio line in the sequence.

    I think hmm... maybe it's a problem or a question of platform - I played this sequence back on 3 different computers, ranging from OS 10.8, 10.9 to 10.10

    Some with and without 3rd party software. -problem still there

    After 45 minutes on hold with Adobe - they agreed it needs to be examined by a specialist software - connect and chat - they ask to connect to the desktop - and unfortunately we are disconnected - no call back as of yet.

    Anyone with ideas - I've heard of and seen a lot of problems with 3rd party but I trust, I ruled that - I too confident that this isn't a platform or a conflict of OS.

    It really looks like a corrupted file or a bug in the software.

    Audio files are a standard .mov file is saved with Adobe Premiere Pro 2014 CC capture mode.

    Video files are nothing out of the norm for us - variety of photos, graphics, videos, assembled in a deliciously funny and wonderful way.  Wish just that we could get the audio to work.

    Hi valeriav80637310,

    Welcome to the Adobe forums. We regret the inconvenience that you are currently experiencing with Premiere Pro.

    Please try these steps and let us know if it works:

    1. go in the preferences > media and clean the cache and re - open first to check on the issue.

    2. create a new sequence of a clip that you used in the project by right-clicking and selecting 'new sequence of the clip.

    -erase the media in the new sequence

    -Copy all the files from the original sequence and paste them into the new sequence

    Check on the issue and please let us know more communication.

    Concerning

    Anand Sachan

  • Audio playback on listening? When I started to work with more than 1 audio track.

    Hello!

    I have been using first elements 12 for the full HD video editing.

    Brand new for me just bought it 2 weeks ago.

    Now, during the last two weeks, I had this MAJOR proglem with audio editing.

    This problem is the headache and turn my simple editing in almost impossibilities.

    I had this problem with all my projects. SUBJECT

    Generally, the problem appears when I want to start working with multiple audio tracks.

    At somepoint that my projects just gets ruined, I do not mean just the audio tracks.

    The audio starts to disappear at random all audio tracks.

    It is not only about reading. When I exported the video, the audio has been partly missing, as well as the project.

    I tried to get help on the forums and find all that I could find, but have not been able to solve this problem.

    Small fix helped a little:

    I have the audio export to single track and bring back to the project. It works but I still usually edition more to do.

    I do not understand why reading disappears, I fear that this is a bug.

    I found a lot of problems in previous version on people with the same type of problems, but no help for this version of the program.

    To solve the case, I changed my audio setting in ss12.

    I tried to first WDM Sound and ASIO4ALL V2 components, but same problem on both.

    I have looked up my device for audio playback and ss12 matches are not on mute, and volume up.

    I deleted my first items appdata\roaming\adobe C:\ & first 12 items folder preferences... help do not...

    I press the update about every day in the hope of a new version... But yes, program always tells me it's the last.

    I usually work with 3 maxinum of audio track only. And I do really basic here stuff...

    I have put all my audio to the fore and he gave me the best results, but it does not appear to take the problem by far as at somepoint randomly my audio playback is missing again, randomly through the reading.

    Please someone? I feel desperate here.

    Info about my computer:

    Operating system: Win7

    Processor: AMD Athlon (TM) x 4 955 processor 3.20 GHz

    (vivid RAM) memory: 4GB

    system: 64-bit

    < left download, installation, setting up mod-kglad forum >

    Post edited by: kglad

    Tascruel

    Thank you for asking. I wanted to put that in my last answer and I forgot to do.

    The Adobe party line is that you cannot change a predefined project settings when it is enabled and that you are in the Premiere Elements workspace. I described a way to do in some cases when editing Notepad document of the project saved/closed (project.prel) file.

    http://www.atr935.blogspot.com/2013/05/pe11-changing-project-settings-without.html

    It is often easier to start a new project with the appropriate project preset, blocking the automatic action of the program in this regard. To do

    Open Premiere Elements in his workspace Expert.

    Go to file Menu/New/Project and in the project preset together preset that matches your source media properties. Before leaving the new project dialog box, make sure you have a checkmark next to the "Force selected setting on this project."

    Back in the workspace of elements Expert first, then go to add media/files and folders to your source media in the assets of the project which you drag the media from the source to the timeline.

    Please let us know if it works for you.

    Thank you.

    RTA

    Add it... Check your project settings via Edit Menu/Settings/general project, against the readings, especially in editing Mode, timebase, and image size.

  • How to capture audio playback PC?

    Audition CS6, Win 7 Pro, Toshiba L5xxxxx, Realtek High Definition

    I'm a total noob with audio software, I'm a web developer by trade and want to record audio playback (capture), but I can't figure out where and how. I see in the audio settings for the card its a recording from the microphone option or then choose map map but don't know what to do at the hearing.

    Any help or a link to a tutorial is most appreciated!

    Having put in place the correct material at the hearing and open a new file in waveform view simply click on the record button. In the view Multrack you must first Record select the track you want to record ontoby by clicking on the arms register 'R' for the button in the track header Panel. This click the button Save.

  • HP Envy stop my Audio playback

    My HP Envy seems to interrupt my audio playback sound and to hear my music, that I have to restart my computer.  In addition, in Services, I tried 'restart' Audio, but it will not respond.

    If anyone knows how to solve this problem, I'd appreciate it.

    Thank you

    Only happens with headphones? Your sound works normally on the other speakers?

    In addition, what is your PC model number and what operating system are you using?

  • ThinkPad L420 8 64-bit Audio Playback jitter/Battery/Charging distorting Windows - Help -.

    It's so on the only issue that I have with Windows8 on my laptop, I tried different audio provided OEM drivers

    drivers directly from the Realtek site and I can't address the issue

    Only during the loading of my laptop, or when the notebook is on battery occurs blurred or distorted audio playback. Occurs during playback Flash or the local media using tell VLC playback, sometimes the deformation may freeze or block system

    I tried the drivers Audio, video and my BIOS is the last

    Does anyone else know this problem, also the problem of reading is moved under Windows7 when I had it installed

    It seems my Audio problem and a problem of suspension have been corrected in an update provided Lenovo as

    updated a BIOS linked here

  • Random popping / ticking during audio playback

    Hey,.

    W500 4058-CTO running x 64 Vista Ult using drivers latest 5th Jan.

    I feel random noises clicking / popping during audio playback MP3 of WMP11 on speakers/headphones.

    If I use my headset Bluetooth AD2P no questions, yes mp3 and WMP is fine.

    Someone knows the similar problem?


  • The external speakers with bluetooth audio playback stops working after 20 minutes

    I have a weird problem with bluetooth audio on my Acer Aspire 7600U. I have a bar of his JBL SB200 with support bluetooth and when I'm playing audio to it from my laptop (Sony Vaio) or my phone (Nokia Lumia) it works fine. But during audio playback of the IOA, the soundbar goes off after about 20 minutes in the middle of a song with such as Spotify. I suspect it's something different with the Aspire AIO bluetooth adapter which does not sound bar to stay on. No idea why? Does anyone else have this problem?

    I have now solved. It's another computer, I had who took control of bluetooth speakers every now and then...

  • No audio device is installed in the audio playback option

    Hi, I use windows7 family basic computer laptop vaio sony, I started recently in the face of the question with my his laptop. The system is not identify internal speakers and the sound icon is to have a sign of X.

    I tried to update the drivers and all also reinstalled windows again but the problem persists. When I go to the sound icon reading devices it says no audio devices are installed. realtek high definition audio is not visible in the Device Manager section.

    Have tried to reset the default BIOS settings as well.

    Please help what needs to be done now.

    If your computer has problems play a sound, try using the Audio playback problems resolution to solve the problem. For measures and additional information, see o ink below.

    Open the troubleshooting of Audio playback

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-troubleshooterOpen

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx?type=hardware

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    You have a fluorescent lamp next to your computer which could be emitting a rf? This could interfere with the microphone.

    In Windows 7

    Click Start > Control Panel

    Click on hardware and sound

    Under sound, click on manage audio devices

    Under playback (tab)

    Choose speakers you have in your output device

    Click Properties >

    Click levels (tab)

    check if the value is 100% >

    GoTo Enhancments > select Loudness balancing

    Apply and OK

    Should be much stronger now...

    For enhancment bit,.

    and if you have HD realtek soundmanager (R2.37) in your control panel

    Try a classic Equalizer setting

  • Audio playback through headphones and speakers

    Headphones or speakers in windows 7, it cannot have them both?

    Looked at other issues, nothing seemed close.

    My machine has dual boot, Windows 7, XP and Vista ultimate and now XP. In XP and Vista I have the speakers and headphones plugged together, playerd noise, so I could use one or the other by plugging them in front and back taken audio.

    This allows me to play during the day with speakers, and then at night with headphones and no round reaching under my desk to remove the cables.

    Now I use windows 7 and many other issues I have with it, I can't play with speakers or headset until I went through a lot stupid click on deactivate one or choose the other as a default value. Why this has been changed in windows 7 after Vista, it seems totally useless logic. I can turn off my speakers with the power button and get the helmet works. Now, I'm either or. So my new IR headphones are wasted. Please, someone tell me there is a work around?

    It's little interference silliness like this that give me want to stay under XP.

    Much thanks in the meantime someone has found a work around.

    I have my Jabra GN9350 both my speakers for computer, audio playback at the same time. :)

    Here's the trick (and it is verified on 3 other systems Win 7):

    (1) R click on your speaker icon, select "Recording Devices" (if you have the sounds dialog box to the top, it's the 2nd 'Recording' tab)

    (2) click on R in the white space, make sure that the TWO "show disabled devices" AND "show disconnected devices" is checked.

    (3) * now, this step will take some thought for each computer used: on my laptop (HP Elitebook) I get a "Stereo mix" device, ACTIVATE this device.

    4) click on properties, click on the "Listen" tab

    (5) check the box 'Listen to this device', also change the drop-down list below 'read through this device' to be your second audio device

    -To check that you have done this correctly, go back to the tab of the dialog box sound reading, you should now see two of your audio devices showing green graphics small displacement.

    Here are the specific parameters that I have on my laptop, maybe this will help you with your settings:

    Speakers - GN9350 (by default the communications device)

    Speakers - SoundMAX Integrated Digital HD Audio (default device)

    Feature 'Listen' stereo Mix - point this device on my GN9350 headset.

    Paul

Maybe you are looking for

  • I have lost my disc for my Tablet TC4200. Any Suggestions?

    I have lost my disc for my Tablet TC4200. Any Suggestions? Jim

  • Why my response to system restore used

    A few weeks ago I left my computer laptop xps (m1530) dell unattended & my 2yr.old'm ahold of it... I don't know what he did or clicked on, but whatever he's done now could open programs or exequte properly... almost all my programs try to open w / w

  • WRT610N broadcasting at 5 GHz: how to tell him?

    I installed my WRT610N to broadcast at 2.4 and 5 GHz and I put the SSID broadcast on "Enabled" for both.  Each configuration has a different SSID.  However, the computer I tried to connect, via the adapter DWA-140 (which is able to use a band), only

  • BlackBerry Smartphones my BB does not work without the code aera

    Hello I live in France and my BB Tour won't allow me to send an SMS or to call someone with a classic French number. However, when I add the + 33 (aera France code) it works. You have a solution? Thank you

  • Where can I findt pilot lot

    I want to install windows 7 utimat or premium, but I need to update a driver: RCA USB Cable Modem, Thomson Inc. My problem is that I can't. I have to lode it down and burn to a cd, I have windows vista home basic, but I don't want to upgrade, I I wil