Help with Audio Formats please

Hello everybody,
I have a problem with the Java AudioFormat class, can you help me please?
The thing is Im working on a voice chat using the following audio format settings:
AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sampleRate, sampleSize, 1, 1, frameRate, false);
Where:
audioReadBytes = 1024;
sampleRate = 8000.0F;
frameRate = 8000.0F;
sampleSize = 8;
My problem is that these settings can cause incrementing voice delay and sometimes even block the application. It works fine on a LAN but on the internet it never works.
I wanted to ask you if there�s a better audioformat setting that can decrease the size and quality of the sound, so it works on low bandwidths.
I�m new to audio formats so I don�t understand them much and when I tried to change the settings by decreasing the sample rate I didn�t get what I expected.
Please help me...
Thanks a lot,
Dan.

Based on the concept of Unity in a gain chain, if you set the levels properly at the output of the analog mixer, then they should be fine coming into the software after the A/D conversion. As long as you don't clip the digital input, you can adjust levels internally on an audio timeline, so it is always better to err on the side of too little rather than too much.
Digital maximum is -20 dB which is equivalent to 0 dB VU in the analog world. This provides sufficient headroom to avoid clipping in most circumstance.
Try a few different levels and see what works best for your needs.
HTH,

Similar Messages

  • Creative Zen V Plus - Seeking your help with "Audio format is not supported" error

    Hi,
    I have a problem with my Creative Zen V Plus and am looking for someone to do a quick test to help me. I listen to a lot of MP3 podcasts, so I often rewind, fast forward or set bookmarks inside tracks. When I do those operations in some tracks, I get the error ?Audio format is not supported? when I ?land on certain places in a track (and I am able to reproduce the problem, which happens always at the same place in a particular track).
    Here is what I mean by ?land?. For instance, there is a particular track (see the mp3 link below) that whenever I rewind to exactly 35 min 37 seconds, I get the error ?Audio format is not supported? and playback is stopped. If I fast forward to exactly 35 min 37 seconds, I also get the error. If I set a bookmark to exactly 35 min 37 seconds and I then go to that bookmark, I also get the error. But I don?t get the error if I play the track normally without any rewinding or fast forwarding: the track is played and passes the 35 min 37 seconds mark without any error.
    Creative Labs customer support wants me to return my player for repair, but I am not sure if the problem is with my player or if the problem would also be present on other Zen V Plus, thus my asking for your help.
    I would appreciate if someone of you could try one of my problematic tracks on their player. Here is what you could do to help me:
    1- Download and transfer to your Zen V Plus player the following audio file (it'ss a technology podcast and don?t worry, it'ss virus-free, it comes from CNET):
    http://podcast-files.cnet.com/podcas...oud_090808.mp3
    2- Go to the 35 min and 37 seconds mark, press PAUSE and set a bookmark there.
    3- Go into the Bookmarks menu and go to the bookmark you just set.
    4- Do you see the error ?Audio format is not supported?, or the audio plays just fine? If the audio plays just fine, could you tell me what are the first words you hear
    when going to that bookmark, just so that I am sure we are indeed doing the same test on each of our side?
    5- What firmware version is your player at ?
    Thank you very much for any help you could bring me.
    Patrick

    never mind. figured it out!

  • Help with audio files please....

    Well I just learned somewhat about Audiofiles today and I dont know much but this is what I programmed.
    import sun.audio.*;
    import java.io.*;
    public class music
    public static void playMusic()
    try
    String Filename="di.au";
    AudioStream as = new AudioStream(new FileInputStream(Filename));
    AudioPlayer.player.start(as);
    catch (IOException ioe) {
         System.out.println(ioe);}
    public static void main (String[]args)
         playMusic();
    Every time I do it though I get an error that says
    "Java.io.IOException: could not create audio stream from input stream"
    I tried running it with throws IOException to but that didn't do much either

    import sun.audio.*;
    import java.io.*;
    public class music
    public static void playMusic()
    try
    String Filename="di.au";
    AudioStream as = new AudioStream(new FileInputStream(Filename));
    AudioPlayer.player.start(as);
    catch (IOException ioe) {
    System.out.println(ioe);}
    public static void main (String[]args)
    playMusic();
    }Sorry I didn't know about Quotes thought I'd fix it^^

  • Help with audio question please

    New guy here,
    I have a MAC G5 with Premiere CS4. I do not prior Premiere experience. I've worked several other NLE packages so I'm not a rookie either.
    Anyway, I'm routing the audio through an analog mixer and into a Canopus ADVC 110. I've been able to capture video and audio from a DVD player with Premiere's audio hardware settings set to (Built-in line input/Built-in line output). I've been able to capture both video and audio with the hardware setting set to (Built-in digital input/Built-in line output) put when I scrub on the time line or try he clip in he preview window it will not play back when I hit the space bar or click on the play button. When using (Built-in line input/Built-in line output)everything is fine.
    Here's my question. How do I preview and adjust the audio prior to capturing it? I can hear it just fine when I'm capturing but I can't preview the audio levels to know where I'm at.
    I thought the analog audio going into the Canopus converter would out put the audio as a digital signal since it's being exported to the MAC via firewire.
    Hope someone out there is smarter than I am about this.
    Thanks!
    Jim

    Based on the concept of Unity in a gain chain, if you set the levels properly at the output of the analog mixer, then they should be fine coming into the software after the A/D conversion. As long as you don't clip the digital input, you can adjust levels internally on an audio timeline, so it is always better to err on the side of too little rather than too much.
    Digital maximum is -20 dB which is equivalent to 0 dB VU in the analog world. This provides sufficient headroom to avoid clipping in most circumstance.
    Try a few different levels and see what works best for your needs.
    HTH,

  • Help with audio book, PLEASE!!

    I have purchased an audio book form ITunes and whenever I quit the book and go back it never restarts where I left off.
    Help
    Larry

    Are you leaving your iPod off long enough for it to do a soft reset -- apple logo showing?
    If that is the case, will loose current bookmark upon automatic soft reset when left off for times that vary by iPod. You can force the bookmark by leaving the audiobook and going to a song.
    Otherwise, try a soft reset (hold menu and center button simultaneously until apple logo appears on display).
    Just to be sure, do a right click, show file to see if m4b extension.
    Try downloading some free content from somewhere and see if those bookmark. i.e., http://www.learnoutloud.com/Free-Audio-Video/Biography/Autobiography/The-Autobio graphy-of-Benjamin-Franklin/18190
    be sure to chose mp4 download of this Franklin autobiography
    All else fails, a hard reset.
    Also try iLounge.com for better audiobook forum responses
    Best of luck!

  • Help with video formats, please!

    I posted this topic once before, but got no replies. I don't mean to spam up the forums, but I would really like a response. I'm having a problem with putting videos on my iPod Nano. Currently, my videos are in MP4 format, but they're not loading onto the ipod. I can load MOV files, but the matter of converting my MP4 files to MOV files still remains a challenge. I've downloaded converters from the internet, but they're only trials and thus cut the video runtimes in half. If anyone could tell me why my MP4s aren't loading, or where I can find a free converter that won't cut the runtime of my videos, I would be ever so grateful. Thanks in advance!

    No, multiplexed wouldn't be the issue. The iPod will still play them but multiplexed files that have been converted to the iPod often lose sound because of multiplexing, but will still play.
    The Complete Guide to Converting Video to iPod Format (Mac)
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-convert ing-video-to-ipod-format-mac/
    See other tutorial articles over at iLounge...
    http://www.ilounge.com/index.php/articles/tutorials/
    Patrick

  • Help with Preview formatting please

    Since upgrading to OS X (10.7.3), all Word documents, when opened in Preview, appear as a single sheet without top and bottom margins. They also print like this, just running on and on without a break. This doesn't happen with PDFs and didn't happen prior to the upgrade.  Does anyone have any ideas how to correct this, pls?

    Hello ekrapple,
    Thank you for using Apple Support Communities!
    Sounds like your Pages documents are not printing out correctly.
    I suggest these troubleshooting steps from this article:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/TS3147
    Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
    Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
    Delete the affected printer, then add the printer again.
    If the issue persists, try these additional steps:
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Contact the printer vendor or visit their website for further assistance.
    Regards,
    Sterling

  • Help with Audio for Premiere Project

    Working on a lengthy project and need some help with audio which is not my specialty!
    I am recording using a Sony EX1r and a wireless lav mic,     OK.  Here is what is happening.
    When I import the clip into project I get Audio from the left speaker.   If I burn a DVD and playback on home player with surround sound, I get audio out of just the left speaker which makes sense.    SO I go to Premier and use "Fill Left" which fixes the audio on my computer and get sound from left and right speakers.    The odd thing is that when I play this version back from DVD on the surround sound system, the audio now only comes from the CENTER speaker.  I dont get anything out of left OR the right speaker so it sounds hollow.
    I am sure I am missing something obvious so please be kind.
    Is there an easy way to get my audio to come out of Left, Center, and Right speakers (and rear for that matter) ???
    Thank you
    Ted

    Bill,
    The DVD player is a Sony BluRay and the receiver is an Onkyo AV receiver HT-R380.    
    My thinking is that it is something that I am doing wrong inside Premiere vs something that the DVD player or receiver is doing.    My final product will need to play on a variety of DVD players so I need to get it right.
    It just seems odd that my default output DVD provides sound to the left speaker but then removes it when I fill Left.
    Am I setting up my audio tracks wrong?  Or should I being doing something with a 5.1 track???
    Thanks
    Ted

  • Help with access control please

    So I'm trying to set up my brother's PSP to the wirless network through MAC address timed access. What I want to do is make it so that he can only access it through certain times in the day. I'm having troubles with actually getting it to work. Everytime I set it up, the PSP only show's up as a DHCP client and not a Wireless client. I tried the option panel with the add wireless clients through the first try access. Could I get some help with this issue please? Thanks!

    Just to calm your fears... There is no conspiracy. If someone had an answer or a suggestion they would post it.

  • Please help with audio problems, thanks!

    Hi, I'm relatively new to DVD studio Pro and so far the manual has been useful but i've run into some sound related problems. I'm a composer/sound designer and this DVD is to be my reel so these are fairly integral issues to its success.
    First, I want to add a sound effect to each of the roll over states, so one sound for the "over" and one sound for the "down" state. Currently i can only add audio as the backing track for each menu.
    Second, whilst most of the items on the dvd are movies that include my music, I also want to have a page purely of audio tracks which play when pressed without changing the page. How can i do this? The only DVD i've seen this done on is "The Thin Red Line" extras, promoting the soundtrack to the film.
    Thanks.

    Welcome to the forum/discussions CC!
    Sorry to have to inform you, but unfortunately layered menus aren't supporterd with audio in DVDSP, and technically what you're attempting is a layered menu-type function - although it just may be possible with scripts, I doubt it.
    Your second request can be done however and there's several ways to go about doing it.
    I like DVD@ccess but others would recommend a method of simply placing the audio files in the built file of the DVD making them accessible to users.
    Another method I could suggest is to make a menu page exactly like the one you want to look the same and have the song you'd like to play as the music track for that duplicated-menu in question - set the target of the link for the song in the menu to go to the menu that has that song as the music track. Repeat that for the number of songs you'd like to have this feature.

  • Large iDVD Project (help with iMovie formats, time totals, quality)

    Hi,
    I am in the process of finishing up a large DVD project. I went on a six month backpacking trip, and have lots of photos/small clips to make a DVD from. I will have a main menu in iDVD with submenus for each country (Mexico, Cook Islands, NZ, Australia, Vietnam, Thailand, India)
    On each submenu will be around 4-5 movies of around 2-5 minutes each.
    I created movies using iMovie (imported sound-less iPhoto slideshows 640x480 expored as MOV file) and added captions, music etc in iMovie. Each 'movie' is about 1-5 minutes long.
    First question:
    What is the best format to export these movies in? I will be adding them to iDVD. But when I export them, they are around 100-700Mb each depending on time of the movie. I used the expert settings (to Quicktime Mov) using the following settings:
    Video:
    Compression: Mpeg-4 Video
    Quality: Best
    Frame Rate: 60
    key frame rate: 24
    Dimensions: 720x526 4:3
    audio:
    format: AAC
    Sample rate: 48.000Khz
    Bit Rate 128
    Stereo
    In my iDVD project - the menu loops are maximum 30 seconds each, with the audio cut to the same length (ie. not trimmed in the menu - the actual mp3 added is 30seconds etc)
    Now, big question is:
    Do I have a total of 2 hours for everything? All menus,and all movies ? Is there ANY way of calculating this in iDVD or do I have to do it manually (estimate) ???
    I notice with iDVD 8.0 it has a indicator of the space available etc. I have iDVD 6.0 so that doesn't help me now I guess?
    What I need to ask is that - maybe using expert settings to mov files is unnecessary? What would you recommend as the export settings?
    I have been working on the iMovie projects for months and can re-export them all in different format if need be, and can simply re-add the movies to iDVD. I have set up the shell of the DVD in iDVD but not added the movies yet (I have the placeholders there for them).
    Anyway - hopefully I haven't blabbed on too much that someone out there can offer some advice?
    Cheers and THANK YOU!
    Alessandro

    Best Performance: For projects up to one hour
    Best Quality: For projects up to two hours
    If your project is longer than one hour, you have to use Best Quality. Generally, the quality will be fine but the closer your get to that two hour limit, the more possibility you have of seeing some quality hits.
    I deal with lots of long projects and generally if a project is longer than 90 minutes (specially since my projects have lots of fast motion, low light, etc) I split them up over two DVDs, keeping each under the one hour limit. That does give you your best quality option

  • Help with audio books

    I bought and downloaded an audio book from itunes, to my computer.  How do i get it on my ipod touch?  I tried to synic it it showes up on my ipod but it won't play and I can't do anything with it. Please help........

    Take another look. The Aldoblog isn't really complicated. The summary of items to note
    - You can reduce your file size by going to preferences/advanced/import and changing to 32kps (more details in the blog). Not necessary, but will save you lots of space.
    - You want to joint the cd tracks to limit the number of files. Highlight all the tracks, and select join tracks from the advanced menu. You do this each time you import a disk, and end up with one track for each CD.
    - Once you've got all your disks read in, then select the tracks to get info (you can right click). Under options, select "remember playback position". That way when you only have to remember which disk you last played.
    I create a playlist for each audio book.

  • Help with Audio Device Playback

    Hoping someone out there can help. Before I updated to iTunes 7, I played back all of my iTunes music through some studio monitors connected to a Digidesign Mbox audio interface. Since upgrading, I cannot get clean audio using this device. When I select "Digidesign Mbox: Chan 1-2" as the default sound playback device in my QuckTime preferences, playing a song in iTunes gives me a garbled sound--almost sounds like a CD that's skipping. Can anybody help with a solution? I hate having to listen to my tunes through two tiny cheap computer speakers!
    Thanks in advance,
    Mike

    I have the same problem. I get the garbled "Skipping" sound when I use the new version of iTunes. The only way I have to get around it is an old version of iTunes 6 I have saved - it has the same version of Quick Time Attached that was good (then) and should work with the WaveDriver. I have an MBOX 2 and it sounds GREAT.
    It really is bad that Apple has this "New, Great" iTunes but it won't work with the existing hardware. I can go from my Sound Card out to my Monitors, but the sound quality is bad. And it is so much easier to just use the MBOX volume adjuster - it is very handy.
    Apple, please fix this problem. I want to download DRM free music but iTunes 7.2 does not work with MBOX 2.
    AlienWare Area 51   Windows XP   4gb RAM, nVidia 6200TC, SoundBlaster Audigy, MBOX 2

  • Help with RTP: Format of Stream not supported in RTP Session Manager

    Hello everyone,
    I am quite new to JMF and RTP. So far I've succeeded in capturing audio from the microphone and playing it back. However, I failed when I tried to send the stream over using RTP.
    Here's my program, all it does is: get a DataSource from the CaptureDevice, create a Processor with that DataSource, convert the tracks in the Processor to one of the RTP formats, and create an RTP SendStream using the Processor's output DataSource.
    I can hear sound by creating a Player for the DataSource; however I get errors when I try to create RTP SendStream for the same output DataSource.
    Here's my code:
                CaptureDeviceInfo cdinfo;
                Format fmt = new AudioFormat(AudioFormat.LINEAR, 8000, 8, 1);
                Vector deviceList = CaptureDeviceManager.getDeviceList(fmt);
                if (deviceList.size() > 0) {
                    System.out.println("Device Found.");
                    cdinfo = (CaptureDeviceInfo) deviceList.firstElement();
                } else {
                    System.out.println("No device!");
                    return;
                DataSource ds = Manager.createDataSource(cdinfo.getLocator());
                Processor processor = Manager.createProcessor(ds);
                StateHelper sh = new StateHelper(processor);
                if (!sh.configure(10000)) {
                    System.out.println("Could not configure...");
                    System.exit(-1);
                // Get the track control objects
                TrackControl track[] = processor.getTrackControls();
                System.out.println("Number of tracks:" + track.length);
                boolean encodingPossible = false;
                // Go through the tracks and try to program one of them to outout some "RTP format"
                for (int i = 0; i < track.length; i++) {
                    try {
                        track.setFormat(new AudioFormat(AudioFormat.DVI_RTP));
    encodingPossible = true;
    } catch (Exception e) {
    // cannot convert
    track[i].setEnabled(false);
    if (!encodingPossible) {
    System.out.println("Could not encode..");
    sh.close();
    return;
    processor.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
    if (!sh.realize(10000)) {
    System.out.println("Could not realize...");
    System.exit(-1);
    System.out.println("Realized...");
    DataSource outSource = processor.getDataOutput();
    System.out.println(outSource.getContentType());
    processor.start();
    player = Manager.createRealizedPlayer(outSource);
    player.start();
    SessionAddress addr = new SessionAddress(InetAddress.getByName("224.144.251.104"), 8194, 4);
    manager.initialize(addr);
    //manager.addFormat(new AudioFormat(AudioFormat.GSM_RTP), 1);
    System.out.println("RTP Session started...");
    stream = manager.createSendStream(processor.getDataOutput(), 0);
    I get an error on the last line, the error is: javax.media.format.UnsupportedFormatException: Format of Stream not supported in RTP Session Manager And again, if I try to encode the tracks into *AudioFormat.GSM_RTP* instead of *DVI_RTP*, I get a different error on the same line:Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionWell I don't understand what's happening, is there something I need to do before I can use RTP?
    Hope you guys help :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    seems that you are encoding a track to RTP format but outputting a RAW format.
    Your encoding section is also a little bit lazy as you don't check supported formats...
    Try this between configured and realized state:
              // Get the tracks from the processor
              TrackControl [] tracks = processor.getTrackControls();
              // Do we have at least one track?
              if (tracks == null || tracks.length < 1)
                  return "Couldn't find tracks in processor";
              // Set the output content descriptor to RAW_RTP
              // This will limit the supported formats reported from
              // Track.getSupportedFormats to only valid RTP formats.
              ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
              processor.setContentDescriptor(cd);
              Format supported[];
              Format chosen;
              boolean atLeastOneTrack = false;
              // Program the tracks.
              for (int i = 0; i < tracks.length; i++) {
                  Format format = tracks.getFormat();
              log.info("Input format for RTP conversion: " + format);
              if (tracks[i].isEnabled()) {
                   supported = tracks[i].getSupportedFormats();
                   // We've set the output content to the RAW_RTP.
                   // So all the supported formats should work with RTP.
                   if (supported.length > 0) {
                        if (supported[i] instanceof VideoFormat) {
                             tracks[i].setEnabled(false);
                             continue;
                   else if (supported[i] instanceof AudioFormat) {
                        // set audio format for RTP transmission
                        chosen = new AudioFormat(AudioFormat.DVI_RTP);
                        tracks[i].setFormat(chosen);
                        tracks[i].setEnabled(true);
                        atLeastOneTrack = true;
                   else
                        tracks[i].setEnabled(false);
                   else
                   tracks[i].setEnabled(false);
              else
                   tracks[i].setEnabled(false);
              if (!atLeastOneTrack)
              return "Couldn't set any of the tracks to a valid RTP format";
    The important thing should be theContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);part.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I would need help with the following please: I need to save some of my email on a disk. I was going to Print, then Save PDF but then I am stuck. Help please. Thanks. Elisabeth

    I would need help with saving some eamil messages to a disk to unclutter my email. How can I do this please?
    Thanks.
    Elisabeth

    Open the email and then from the File menu select Save As Rich Text Format. That'll save it to open in TextEdit. If you want a pdf then open the email and do command-p (Print) and then from the PDF drop down box lower left corner select Save as PDF.

Maybe you are looking for

  • Maintaining mics through pi sheet

    Hi Gurus, i have assigned process inst cat QMRES in o10c to destination and after creation of the process order, i observed that this process inst cat is not copied in order/ phase. also after creation of control recipe- there is no mics are shown in

  • Won't recognize my USB stick

    i recently bought my mac pro and i also bought a 4GB USB stick from office Depot, and every time i insert the stick in the port, nothing happens. i already tried to pull up the disk utility in application, but it is unrecognizable. what do i do?

  • How to change the date format in Sharepoint 2010 to dd MMM yyyy

    Hi, I am looking to change the datetime format with in the modified column from mm/dd/yy to dd MMM yyyy. I dont want to create calculated field with dd MMM yyyy format. I want the actual modified column value to be represented as dd MMM yyyy format.

  • Idoc extension related issue

    Hi, I have a standard idoc type extended with a custom segment. I have mentioned the same in the corresponding partner profile(idoc type and the extension). When I tried to import the meta data for this idoc in XI, it is taking it as ZXXXXX, instead

  • SIGTRAN and Qos

    Hi all, I am new in QoS and trying to apply it in two of my voice links. I have a voice circuit (1xE1) between our office and HQ in USA and another voice circuit (3xE1) with another branch. I have only voice and signaling traffic on the USA circuit a