Change audio playback speed while transmitting via RTP

Hi,
Basically I want to be able to change the speed/tempo of audio in real time (like you can on a turntable, for example) from a file stored locally. My program currently plays the audio on the local machine and transmits this same audio via a live RTP stream. I intend to include a slider on the GUI that changes the speed of the audio (like can be found on a turntable or DJing programs).
I am unsure if this would be possible, or how I would go about doing it. So far, I have found out the following:
The setRate() method of a Player should do what I want but it doesn't always work (the rate 1.0 is only required to be supported). I only require my program to work with WAV files, and setRate() only seems to support a rate of 1.0 with this file type.
One way of changing the speed is to change the sample rate (I don't care about pitch changes), but I don't think this can be done in real time with JMF. It is possible using a SourceDataLine or TargetDataLine with JavaSound; however, I believe I would firstly need to write code to feed data from a SourceDataLine to a TargetDataLine that an AudioInputStream can read from (as I don't think many systems, including mine, have a Mixer with both a SourceDataLine and TargetDataLine). If I did this, would I then need to do some processing to convert the sample rate of this AudioInputStream into the sample rate of the DataSources that are currently playing or transmitting data (I have a custom DataSource to go from AIS to DS, and so the read() method in this would possibly have to 'throw away' or duplicate samples to get the desired sample rate)? Would this solution be possible, or would there be a better solution?
Thanks

I have previously tried getting a FrameRateControl for a Player and a Processor, and I have just tried again, but the getControl() method always returns null. I have tried this with several WAV files. Is there any other way to change the sample rate in real time with JMF?
For Java Sound, I already have code that lets me convert from DS to AIS and from AIS to DS. The problem is that I am unsure how to increase the sample rate in real time without using a SDL or TDL. But I think, if the AIS is reading from a file, the DataSource would have to read faster, or slower, from the AIS, and then do something with the samples to match the actual sample rate being used by the Processor in JMF. I am not sure whether this is anywhere near the right approach though, and I'm not sure how I could get the effect of changing the speed of audio without changing the sample rate of the Processor.

Similar Messages

  • Audio Playback Speed Control

    Hi,
    I am working on Flex based Audio Player. I want to change the
    playback speed like 50% of the normal speed or 150% of the normal
    speed. I did some research on flash.media package but couldn't find
    anything useful. Anybody has any idea how we can control the
    playback speed of mp3 files?
    TIA
    -Ghulam

    I know the law, but thanks for the legal advice. Wouldn't it be curious to ask this question if I already possessed software that allowed keyboard commands for transcription purposes?
    Right now, I'm using MPlayer X. ( A lousy, often unstable program). What appears to be keyboard command functionality  -- under AVS at the top of the screen -- does not function that way and,  even if it did function, is not fully what I need. I'll look further into VLC, but a preliminary look into it shows me a program more adapted for video applications. My experience has been that such software is not designed to meet my particular needs. The Adobe program is to EDIT audio. It is not designed to have the keyboard functionality one uses for transcription. This is exactly the problem I  keep running up against with several programs. I can do sophisticated sound editing, but I cannot do simple transcription functions -- keyboard commands to speed up, slow down, move back, move forward.  It is an incorrect assumption that an audio editing program would have those controls, in my experience.

  • How to change audio/video speed

    Hi,
    I'm trying to change audio/video playback speed, so I could
    play it faster, but I haven't find any solution.
    It has to be changed dynamicaly - there is no possibilty of
    making normal, fast playing file.
    Thank you
    LN

    If you convert the video into an SWF and embed it playing
    through the frames, you should be able to "skip" frames or pause
    between frames through flex to increase/decrease playback speed
    through the MovieClip.gotoAndStop method.
    Not sure this would work or not. Just a thought.
    Happy coding.

  • Audio playback stops while the video is still running!!!

    Hi friends...
    I use my final cut for online streaming... and usually make a timeline for 11-12 hrs and run it in loop... everything worked fine all these years... but offlate we have been having problems with the audio playback... THE PROBLEM IS... while the timeline is still running and we can see the video on the screen the audio stops... but it stops after a few hours not at the time we start the timeline... as of now all we do is tap the spacebar twice to stop and start play again and it works again... but i would want a more permanent solution if anyone could help me out...
    thanks
    Anshu

    Hi,
    Yes, using all the default out of the box Coherence POF support, you would need to restart the cluster to pick up any changes.
    Do you really need the Java classes on the server side? Depending on what server side functionality you are using you might not actually need Java representations of the .Net classes. For example, if these are you entities that are being cached and you are never calling code that deserialises them, then there is no need for Java classes.
    You could potentially write your own implementation of a POF Serializer (PofContext) that is used on the server side that can dynamically add and change classes.
    JK

  • Changing video playback speeds

    I'm trying to watch videos for class on Blackboard. Quicktime is not supported. I use Real Player. I would like to be able to use quicktime. I also would like to be able to speed up and slow down the lecture. I have heard of a program called Enounce, but it is only available for windows. Is there a similar program to use with Mac OS???

    Are you able to alter playback speeds, to speed up and slow down while watching a video. What I mean is, if I'm relistening to a lecture, can I speed up the lecturer and slow him back to regular talk when it is an important portion to the lecture. I noted a product called Enounce (enounce.com). It is available for windows based computers only. Please look at this and tell me if there are settings or options in Quicktime or anyother video player that you can preform these same functions. I'm relatively new to Mac. I love the computer, but am still learning the differences from PC. Thanks again.

  • Audio playback speed/scrubbing without affecting pitch

    I have had this issue forever and have never found a workaround. In Final Cut Pro 7 you can use the JKL keys to toggle play forward, pause, and reverse. If you hit it several times it increases or decreases the speed. What I really enjoyed (probably the only thing in FCP 7 that I did like) was when you would fast forward at 2 or 4x speed the pitch of your file would not change. You would get some stuttering at higher speeds, but honestly I'm ok with that. In Audition and Premiere Pro if you fast forward the pitch increases. Gives you that chipmunk effect. Is there any setting, keypress, or any workaround that would enable me to fast forward while retaining pitch?
    I edit voices and I listen for key words or phrases said by specific people so when the pitch changes it can difficult to actually find the correct spot. Any help would be much appreciated.

    In Premiere once you're playing the clip in double speed you can press SHIFT J to pitch down. It's key stroke heavy and annoying for anyone that needs to scrubb at high speed, I edit documentaries so do it often, but it works. Not sure if the same is true for Audition.
    Let me know if you find something better. 

  • Audio playback speed too fast

    Please help. After installing Security Update 2010-002 on Leopard 10.5.8 all audio tracks play several bpm faster. This is true for pre created tracks in Logic and playing tracks in Toast or using quick preview. All iTunes material is also affected. I also have a Snow Leopard partition which I haven't updated in any way and the problem exists there too. I'm using a late 2008 Macbook Pro. Any ideas? Best, L.

    Without actually looking at your system, I'd be hard-pressed to pinpoint the culprit. I don't even have a hunch. I could be a conflict between some third-party application/plug-in/login item/ and something else.
    The only thing I can suggest is this:
    1. Move the Preferences folder from ~/Library/ (that is the Library folder in your home directory) to the Desktop.
    2. Log out and log back in.
    Your familiar working environment will likely look very different from what you're used to, since Mac OS will recreate the missing preferences and use the default settings.
    Launch the applications that you experienced trouble with and test them out. Be prepared to reconfigure them, as they will likely launch in their default state. If everything works fine, you're going to have to add your old .plist files back one by one, logging out and back in each time.
    You can speed up the process by batch-adding back the .plist files that you feel have little to do with the underlying problem. (For example, iPhoto or iWork .plists are the least likely candidates to cause any problems, etc.) You're going to make a few educated guesses and learn a great deal on the way.
    I'm sorry I can't be more specific. Your problem is very unusual, and if I experienced it myself, I'd do exactly what I described above. At least, you were able to localize the problem to your user account.
    A few pointers.
    It's a good idea to keep the two Preferences folders open side by side, both set to List View. When moving your old preferences to the newly created Preferences folder, hold down the Option key (to copy them, rather than move). This will save you a great deal of time if you have to start all over again.
    Cheers.
    <hr />
    Ast A. Moore on YouTube

  • Change default playback speed

    Hello group,
    I have an older model PowerBook G4 running Tiger on a 867 MHz processor with 1.12 GB DDR SDRAM.
    When i open You Tube or just about any video playback, the default playback resolution is 360p. I can change the resolution on each playback to 240p, which is low but will stream uninterrupted on my laptop. Is there a way I can go into default settings and change the default video playback from 360p to 240p?  I have tried to find a way on my own and have failed.
    Thanks in advance for any assistance.

    YouTube has to work with the raw materials its contrbutors submit. If they get a high-res video, they can post it that way. However, they can't take a grainy, low-res submission and turn it into awesomeness. So it's actually the submittors--not YouTube or Apple--that would have to be re-engineered, and that's not possible.

  • Iphone 4 no longer changing audio source to make call via in car bluetooth.

    Hi, I have an Audi A4, my iphone 4 connects to it, you can look at the directory's, calls made, missed etc,
    When you want to make a call or receive a call, the audio source from the phone is not put through the car, its only goes through the phone.
    Checking the iphone, it used to show a list of audio sources i.e. the car's bluetooth connection, the speaker or the phone.
    No it doesn't show the car's bluetooth.
    My HTC Desire S has no such issues and voice can be heard through the car's bluetooth, so I assume that the car's bluetooth is not at fault.
    Thanks for any help

    I had this same problem with my iPhone 4 and my BMW. I deleted the pairing and paired the phone to the car again, and the same issue occurred.
    I reset the iPhone by pressing the on/off switch and the home button and that worked! The audio sources showed up and I was able to get audio from the car.

  • Change audio feedback speed, or amount of "talking"

    Hello. Just purchased an Apple TV 2, and am just now learning how to use it.
    My first impression is that it "talks" way too much, especially when I was setting up all of my accounts, and such, and when I am searching and looking for movies, and pretty much anything I do.
    It also seems to read the movie descriptions at a very blinding rate of speed, much like those radio ad's where the guy reads the "legal mumbo jumbo" at the end so fast you can't really understand what's being said.
    I've found nothing in any of the menus that seem to have any effect on this voice feedback.
    Thanks in advance.

    I don't believe there are any adjustments for voice over. I assume you want voice over on.

  • Changing Audio Book Playback Speed?

    I wasn't able to find where you can change the playback speed of Audio Books in iTunes.  Can someone point me to where this setting is?
    It's pretty easy on iPhone/iPod/etc... it's just a little button under the scrubber that allows for 1/2x, 1x, or 2x.  But I can't see the option in iTunes.  I'd assume iTunes on a Mac is capable of as much or more than the functions on an iPod/iPhone, but...  I can't find the button.

    In any case, if my Mac had problems, I'd send it in for service....!!!
    About your problem, I don't think that it depends on hardware.
    I'd check Live configuration and the SR of the audio files: you know, Live has so many features to modify speed and a lot of other parameters that bacomes easy to forget something.
    Try recording something with Garage Band so you will be sure if there is a real problem.
    cheers
    rob

  • QT7 Playback Speed

    The audio playback speed setting in QT7 is a manual slider. I have been unable to discover either a keyboard shortcut or a menu setting that would allow one to precisely set the playback speed/pitch of an audio file (e.g. decrease speed by 10%). I have also noted that pitch changes cause stuttering in mp3 fiiles. This is critical because I am using QT/ iTunes for dance teaching and like to slow down the music at first. I used to do this with a variable speed cassette deck but was hoping to do it with QT. Would QT7 Pro help here?
    Thanks for any secret keyboard shortcuts or advice.
    15in PB G4   Mac OS X (10.4.3)  

    The additional audio controls appear when you are playing music and tap the now playing screen.
    The additional audiobook and podcast controls when you are playing _an audiobook or podcast_ and tap the now playing screen.
    In either case, tapping the screen while the additional controls are showing will hide them.

  • Playback speeded up

    I have an iTouch. I imported a cd with meditations on it into my computer. They all play just fine. I created a playlist on my iTouch, and put them into it. When I play the playlist on my iTouch - 3 of the 4 are in fast mode...I deleted the playlist, and tried it again - same thing happened... Any suggestions on how to fix. The iTouch is up to date, as is the iTunes on my computer....

    Go to the play screen with the three fast content.  On the right and slightly below the scrubber bar is there a ox with 1/2X, 1X or 2X?  Those are the playback speeds that appear with podcasts and audio books.  To change the playback speed, tap the box to cycle through the speeds.

  • MY ITOUCH AUDIO BOOK SPEED IS TOO FAST

    When I started to listen to my itouch audio book and music this morning the voice was fast and now it is super fast.  How do I set the voice to normal speed?  When I go to itune to download a book or podcast it sounds normal.  

    One the audio book playing screen there is a box on the right-hand side just below the scrubber bar.  In the box should be 1/2X, 1X or 2X.  Those are the playback speeds.  Tap the box to cycle through/change the playback speed.

  • Saving playback speed?

    Hi, I'm using Quicktime Pro and i noticed that you can change the playback speed in the A/V controls, however I can't seem to find a way to save it like this? I have a video I want to speed up and save that way. I first did this in iMovie HD, but when I saved it, the quality was noticeably worse than the original, so I was hoping maybe there is a way to do this in Quicktime.

    I first did this in iMovie HD, but when I saved it, the quality was noticeably worse than the original, so I was hoping maybe there is a way to do this in Quicktime.
    Basically there are two strategies here -- 1) rescaling the player duration in QT Pro or 2) re-scaling the time reference in an application like the JES Deinterlacer (free).
    1) In the first method, simply create a new QT player having content whose duration is a fraction (less than 1X length for fast motion) or a multiple (greater than 1X the length for slow motion), copy/paste the original content to the new player using the "scale" option, delete the track used to reset scaling, and save the modified file.
    2) In the second, you simply rescale the timing reference scale for the movie playback and re-save the file under a new name.
    Since no re-compression of the video track is performed, the original video quality is not changed as such.
    SEE MY QT PRO "QUICKIE TUTORIAL" T002: Fast Motion Effect
    SEE MY QT PRO "QUICKIE TUTORIAL" T003: Slow Motion Effect
    SEE MY JES DEINTERLACER "QUICKIE TUTORIAL" T001: Motion Effects

Maybe you are looking for

  • Problem printing photos in a lab with an exported iPhoto CD

    Hi all, I wanted to print photos from my iPhoto library. I filled a complete CD with photos (altogether 317 picutures) and brought it to a printing shop (Pharamprix in Canada) to let them do the printing. Please note I have done that with my Windows

  • HT201401 no sounds when receiving messages emails phone clls

    am receiving no sound alerts either outgoing or incoming. Any help gratefully received

  • After using migration assistant, Acrobat wont launch on MacOs 10.6.7

    Used migration assistant on a new Mini-Mac to bring all the programs/files/settings over. It seems everything came over pretty smooth. The Mini Mac is running OS 10.6.7. I have 3 versions of Acrobat Pro installed and none of them will launch now. Whe

  • Query Builder Help

    Hello, I am hoping someone can provide me with a query that can give me a list of all reoccurring scheduled instances, what time they are scheduled for and list of report parameters. I have searched all over but to no avail.  This would be such a gre

  • Workflow explanation

    Hi guys, I have a potential customer that tells me he wants to automate some processes by getting the info (docs, scanned papers, id papers, etc.) from his customers, then it will start an approval or declined subprocess for that customer. After that