Mixing two audio files.......

Hi
I wanna mix two mp3 files and generate a new file using J2ME, so that the resultant file can play both the songs simultaniously......I have written an application for playing the indvidual files and playing the files one after the other and i also have a mp3 decoder in j2me....now i want to mix the two files and play them in a single player and listen to both the songs playing simultaniously .......(my requirement is not openning two players at the same time and play them simultaniously. I want to build an application to play both
the songs simultaniously in a single player)
Can any one please help me in this regard.......
Thanks..........

Hi there,
Seems to me you'll have to decode the two files and then merge them into a new one to play - not easy! I think wav files are easier to deal with and more mobiles will play them in J2ME, though they are larger.
See;
http://www.dv.co.yu/mpgscript/mpeghdr.htm
for details of mp3 format, and
http://www.borg.com/~jglatt/tech/wave.htm
for wav.
Good luck!

Similar Messages

  • Mixing two mp3 files and generating new mp3 file in java

    HI,
    I have problem, I have 2 mp3 files I have some defined times for both file. On particular time i want to mix both mp3 file sound and generate new mp3 file by mixing audio from both files.
    As i am new to mp3 in java , Please guide me from where should i start or any other good suggestion.
    Thanks & Regards
    Akhnukh

    Thanks a lot for ur reply....
    But my actual task is to mix two mp3 files and generate a new file where in i should be able to list the two mp3 files playing simultaniously......
    So can u please help me in writing the j2me code for mixing of two mp3 files.....
    Thank u very much
    Navya

  • Is it possible to play two audio files simultaneously.

    Hi,
    Is it possible to play two audio files simultaneously.
    I modified the 'SpeakHere' to play two audio files simultaneously, it worked perfectly on simulator but get hanged on iphone.
    To this I implemented NSTimer, which regularly checks for both player instance every second.As soon as any player gets stopped Timer task stops the second one forcefully and again starts both.
    thanks.

    Hi Jay
    Do you have the eLearning Suite? If so, you have Adobe Presenter available to you. If you don't, you should be able to download the Presenter installation file and evaluate it.
    Presenter is an add in for PowerPoint. The neat thing about it is that it provides for a Table of Contents type of functionality as you see is configured in Captivate. But the twist with that is you are able to do something you cannot do in Captivate. You are able to insert videos inside the TOC area!
    Just musing out loud... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Mixing multiple audio files using Windows Azure Media Services

    Hi,
    I'm trying to "mix" multiple audio files on the server, e.g. I have 4 different .wav files for each instrument in my song: vocals, guitar, drums, bass.  I want to create a new stereo "mix" from these, but I want to change the relative
    volume of one of the tracks, say vocals, or mute it altogether.  I can use libraries such as NAudio to achieve this, but I'm wondering if Windows Media Services can do this, and if so, can it do it dynamically, i.e. create a live stereo stream and allow
    me to add/drop individual tracks on-the-fly.  I've been looking through documentation on Azure Media Services and Expression Encoder, but haven't found the answer.
    Thanks,
    Alan

    Hi Georgios,
    There is support for using audio overlays in our service - see http://azure.microsoft.com/blog/2014/08/21/advanced-encoding-features-in-azure-media-encoder/ for examples. It may be possible to perform pairwise overlays to implement your scenario.
    However, it's currently not possible for us to integrate customer-built processor code into our service.
    Cheers,
    Azure Media Services team

  • Compare two audio files

    hi
    i have devloped one web application in Flash Builder 4.
    i have recorded the user voice  using fms 3.
    Already i have one sample voice for pronunciation.
    i want to compare the sample voice and user input voice.
    i know it's possible in flex
    but i don't know how i do.
    pls anybody  give some ideas
    thanks in advance
    regards
    athi

    I'm afraid I can't tell you much more than I have just did. I only have a bit of experience in this field with MatLab but thats about it. This is what I was able to find within a few minutes on Google:
    DAFT.as - The DSP Audio Toolkit for Flash.  The DATF is a wrapper class that  provides simple interfacing with C/C++ DSP functions via Adobe Alchemy.
    ALF.as - The Audio processing Library for Flash.  ALF plays an audio file (MP3 or  wav) using the dynamic audio functionality of Actionscript3 and  provides methods for obtaining audio features and manipulating the audio  output stream on a frame by frame basis.
    as3mathlib - The Flex/Actionscript Math Library (as3mathlib) is intended to provide a  rudimentary numerical analysis toolkit for the Actionscript/Flex  programming environment.
    My best bet would be DAFT.as. Other than that, I can't tell you anything more. You should really get some knowledge about audio (and signals in general) processing in the internet or some technical or university library. Your problem relates mostly to signal processing tasks (which is mostly mathematics) rather than Flex or Actionscript.
    Hope those libraries will be of some use.
    Michael

  • Mixing two midi files using j2me

    I have build an application for playing the midi files and also concatinate midi files......i want to build an application for mixing the midi files using j2me....Can anyu one please help me in doing this..........
    Thanks

    This should help you on your way:
    http://jedi.ks.uiuc.edu/~johns/links/music/midifile.html

  • Two audio files in one slide?

    I want to be able to record my voice and import some
    background music for a slide. I do not want to use the Captivate
    "background music" feature because the music needs to change on
    each slide.
    Is my only option to premix the two files together outside
    Captivate and bring them in as one file?
    Kind of silly to have to go through the extra work. Why not
    just have to audio "tracks' in the slide editor?

    Hi again Keith
    What you may do is to insert an object on the slide and
    assign the audio to it. Perhaps a transparent Text Caption with no
    text. The caption would display (but be invisible) and the audio
    would play.
    Perhaps that will help you achieve the desired outcome?
    Cheers... Rick

  • Two audio files compare algorithm

    Hi all,
    I am a software developer in Microsoft Technology , where we r making some custom software for our client . Here in My software application we used to compare two sound (means *.wav format file ) files. But all the algorithm is not working some specific
    situation and for that not getting the accurate value from this application.Can anyone know how to resolve this issue .
    Note :- Actually , in my situation we already have some sound in *.wav format , after that we r going to capture recording sound from mic and going to compare the two both sound. And return will be type of sound .(Like Warning,Alert,Stop,Start
    etc). In recording time we can observe some noise is attached into that music file then if we compare its not sending the accurate value.
    Thanks. 

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription. 
    This is only one forum among the many that are on the TechNet Discussion Forums, and given your post, you likely chose the wrong forum. 
    This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please don’t ignore it. 
    The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums
    are also here: http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the
    MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize! 
    Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem
    you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have
    a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • Two audio files play at once

    We find that when we insert a narrated Captivate demo into an
    Adobe Presenter presentation and run the presenation from a
    non-Connect server, the audio from the slide following the demo
    plays at the same time the demo narration plays.
    We didn't experience this problem with Breeze.
    How can we fix this problem?

    We find that when we insert a narrated Captivate demo into an
    Adobe Presenter presentation and run the presenation from a
    non-Connect server, the audio from the slide following the demo
    plays at the same time the demo narration plays.
    We didn't experience this problem with Breeze.
    How can we fix this problem?

  • Mixing audio files

    How do you mix 2 audio files in a parallel fashion.
    Example of parallel fashion for text files:-
    file1 has data:- aaaaa
    file2 has data:- bbbbb
    output file has data ababababab
    I hope i am clear with what i m trying to say. Awaiting for a solution

    hi
    There are no special methods in the Java Sound API to do this .
    However, mixing is a trivial signal processing task, it can be accomplished with plain Java code .
    So manually mixing the two or more audioinputstreams using some attitional api
    already i tried and succeed . i got the sample source with api from
    http://javasolution.blogspot.com/2007/05/mixing-two-audio-files-using-java-sound.html

  • Is it Possible to Play More than 1 Audio File Parallelly ?

    Friends,
    Is it possible to run more than 1 audio file at a time using Player or Processor ???
    For example, i have
    Audio1.MP3, which play for 2 minutes (which has only music).
    Audio2.MP3, which play for 1 minute ( which has only voice).
    I want to start with Audio1.MP3 and when it reach 1 minute, Audio2.MP3 should parallelly run with Audio1.MP3, so that 2 audio file should finish at same time.
    I want my music and voice should be mixed... (i.e) i want to mix two audio tracks..
    Is it possible thru JMF ????
    Regards
    Senthil

    I dont know if its possible with JMF, but it is with javax.sound
    You write a method to play a file, and then you create two threads where each one plays a different sound file, and tell one of them to wait 60000 millis.
    R. Hollenstein

  • How to join two audio books into one

    Somehow the audiobook that i have had for a while got split into two different audiobooks
    Is there someway to merge them back together?

    The following solution will merge two audio streams of different formats and mix two audio streams of the same format... translation, make sure they're the same format before you merge them.
    http://web.archive.org/web/20080216001555/http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Merge.html

  • Working with Groups, Region Data Somehow Misaligned Locations in Audio Files.. How to Realign?

    Hello All,
    I'm a nonexpert, so please excuse in advance any lack of knowledge that I probably should have. I've been heavily editing a recording of several days of jams for a long time, basically by cutting and aligning very disparate parts to form something new. I had been working with my drummer's audio tracks in group, so each would be aligned as I cut, pasted and stretched regions. Now to my dismay, the all of the kick drum regions have become unaligned with the other drum tracks. This isn't something I can simply nudge, because it has shifted the location of the audio data of all of the kickdrum regions back 5 or 6 seconds. Therefore, the proper start of the region is not even loaded. If you look at the screenshot below, there are two audio files, one drum overhead (0022 AIRE 2) and the kickdrum (0023 BOMBO). The regions 0022 AIRE 2.89, 107, 108, etc. should correspond in sample location with 0023 BOMBO.89, 107, 108, etc. But, as you can see, the BOMBO samples have been shifted leftwards, all of them.  All of the other drum tracks have the correct alignment for each region.  My question is: Is there a way I can copy the region mapping information between 0022 AIRE 2 and 0023 BOMBO? Or are there any other ways to tell 0023 BOMBO regions 89, 107, etc. to pull audio data from the same location as 0022 AIRE 89, 107, etc.? I really hope so, because if not I'm helpless. Thanks to anyone and all who might have some advice. JS

    Jeez, now it has happened to my other tracks as well.. If someone could please help, I would be grateful. Put too much work into it to have this ruin everything.. Here is another picture, how can I get these samples to realign? Remember, they are supposed to be part of a group and thus aligned. For some reason, the samples for the track 040 BOMBO have been all shifted leftwards in time from where they take the sample from the audio track. How can I fix this? Thank you anyone who can help..

  • Error when downloading large audio files

    I purchased two audio files (.m4a) and got emailed the download links. One was 3.7MB and when I clicked the download link in the email on my iphone 4 it streamed. The other file was 76.8MB and when I clicked the link in the email on my iphone 4 I get a 'This operation cannot be completed' message.
    Both files could be downloaded fine on my computer.
    Does anyone know why this would be the case? And what I can do about it?

    Hi,
    Per my understanding, you might want to download the content of files into database in SharePoint Hosted App.
    In SharePoint Hosted App, as we can only use JavaScript which is supposed to be executed in browser, the content retrieved will be stored in memory then to the local hard drive.
    As a workaround, I suggest you develop a Provider Hosted App and do the same job there instead. In Provider Hosted App, we can use C# to handle the file downloading which should
    be more appropriate in your scenario.
    About
    how to download file using SharePoint Client Object Model:
    http://www.lucacostante.com/item/15-download-and-upload-files-via-sharepoint-client-object-model.html
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get two audio voice and how to identify its frequencies

    hello,,
    i am new to javax.sound .. here anybody help me in my mini project
    1.. i hv to get to audio voice from two different person same time...
    2 next i hv to visualize their audio frequency.... so sure that both the audio voice vary in frequency..
    3.. i hv to seggregate this two audio voice and store it in different file and hv to play it separately
    is here any body to help me
    i will be greatly thanxful 4 ur info

    1. How are you getting the voices at the same time? Are these signals
    coming from the same line, e.g. microphone? Or are you just reading
    two audio files from disk?
    2. To get the frequency of a audio signal, you'll need to do Fast Fourier
    Transform to that signal. You'll propably need a third party library for this,
    search for this with google.
    3. If your signals are coming from the same source, it's going to be very
    hard to filter out one of these voices. If you don't know anything about the
    voices in forehand, I don't think this will be possible.
    Give some more information about what you're trying to achieve.
    kari-matti

Maybe you are looking for

  • How do I get .jpg extension to show in the name of my imported photos?

    How do I get .jpg extension to show in the name of my imported photos?

  • Photoshop CS5 tools not working

    Ok, I have taken a two classes at the University level previously, although I am quite rusty, but I haves watched no less than 10 tutorials today. I can't seem to get the basic functions to work right. Most importantly, I can't get the mask layer to

  • FCP 7 Transcoded AVCHD files offline. Please Help!!!

    So, I recently cleaned up my desktop and a FCP project went offline. The original footage is all still on the same external drive in AVCHD format. I'm thinking that I must have deleted the transcoded files. I have since re-transcoded but this has not

  • Indesign CS6   File Open Fail

    I just upgraded to Mountain Lion OSX 10.8  about 2 weeks ago and was running Indesign CS5.5 fine before the update. Started to get program crashing issues before I even updated the OS, then after, I upgraded to CS6 and now am getting crashes everytim

  • Webcam on desktop TouchSmart

    My webcam is not working properly on my touch smart desktop pc. Whenever I click on the app to bring it up, it won't load.. I never had this problem before and I didn't add any new software to my computer recently. What could be the problem or how ca