Handling Audio streams accross a network

Hi,
I have written a Computer Telephony Interface package for a SIP based PBX system and I'm currently exploring the possibility of turning it into a fully functional SIP softphone. The program has a basic SIP stack which I have extended to include the call setup messages, I just need some advice in how I can handle RTP properly.
The PBX uses G.711 A-law audio codec and I have noticed that the JMF doesn't support type 8 RTP for A-law.
Here is the scenario, a call comes into the program over the network using a standard Datagram socket, when my program answers the call I can see a load of bytes fired into my system every 20ms (160 bytes audio), I need a solution to convert those bytes into an audio stream and play them through my computer speakers.
Can anyone give me any guidance on this?
Thanks
Brett

I'm currently doing something similar, and I think this explains a lot
http://java.sun.com/developer/JDCTechTips/2002/tt0319.html#tip1
atleast how to play those data bytes as audio and how to do some
encodings.
If you're using datagram socket, the packets come in in a random order,
so doesn't your audio sound a bit weird? Unless you have some mechanism
to put the packets in correct order.
kari-matti

Similar Messages

  • Live audio streaming over wifi network

    What I would like to know, is it possible to stream live audio over a wifi network.
    PC A records a stream from a mic and then simultaneously broadcasts that same stream live over the entire wifi network, sorta like a radio station only on a much smaller and simpler scale.
    Is this possible?

    It seems like I'm missing something with icecast. If I understand it correctly then you can only play an existing media file, no real time live broadcasting?
    I have finished setting it up and can listen in over the network, but I need real time broadcasting. Is there a way to do this in icecast or should I look at something else.
    SYNOPSIS:
    While someone is talking over the mic the server records the stream with Audacity for editing later on. The problem is that I want this stream to be simultaneously streamed live to another PC so that people next door to the meeting can hear it real time, no delays. A few seconds delay is not critical, but I cannot record and hour long session and then broadcast it, it has to be real time.
    To complicate things, there is no internet available, we are in the middle of nowhere on a secluded convention centre, so that is why it seemed to me like the easiest would be to broadcast via WIFI.

  • Streaming audio file over the network w JMF. How to know when the file end

    Hi
    I am streaming audio file over the network using JMF. I want to be able to know when a file end so I can close the streaming session.
    Can some one please help
    Thanks

    If you put a ControllerListener on the Processor that's associated with generating the RTP stream, it'll generate an "EndOfMedia" event when the end of the file is reached.

  • MP3s on Network Storage appear as MPEG Audio Stream

    I store all music on my network attached storage device and map it to my iMac via the AFP protocol. After upgrading to iTunes 10.5.1, all of these Mp3 files now appear as a type 'MPEG Audio Stream' to iTunes and can no longer sync with my iPod or be matched via iTunes Match.

    Hi Jens,
    I will suggest you to call the support center, cause there are some bugs related to the issue you are having.
    http://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html
    Regards.

  • Can Premiere Pro CC handle AVI files with multiple audio streams?

    I have an AVI file with two audio streams and I am wondering if there's any way to access the second stream in PP? So far I can only get the first stream to play. I know I can extract the second stream in for instance VirtualDub, but it would be nice to not have to do that in the interest of an effective workflow.

    Hello again Jim! Thank you for your reply, you seem to be working hard here on the forums! The info I have found from 2011 suggested that it wasn't possible then, but I was hoping maybe they added this feature.

  • BEFW11S4 Hangs on audio stream

    I am accessing the Internet through a BEFW11S4 router, connected to a DSL modem.  I am using a wired connection - wireless is disabled.  The Router handles PPPoE, and manages DHCP for my computers.
    When I access the following audio stream (http://www.ouradio.org/index.php/ouradio/ouradio_asx/8190/ou.asx), the audio streams as it should, but the router then hangs.  I can then no longer access anything on the Internet, and cannot even access the Router's administration page.  Even when I stop the audio stream, it is still hung, until I reset the router (by cycling power).

    I did check the firmware, and it has the latest (1.52.03 7/9/05).  The hardware rev is 4.
    I tried with different computers connected to that router.  IT did nnot matter which one I used.  I do not have easy access to another network with a different router.

  • Can I use the new Apple TV without a display for audio streaming only?

    Here's my situation...
    I have an Airport Express in my living room connected to my DSL modem to create a wifi network. I also have a current model MacBook Pro and would like to add an Apple TV to my bedroom system for music and Netflix audio streaming. I do not own a TV to do any setup.
    If I bought an ATV for my bedroom and connected the optical output to my DAC, would I be able to accomplish my goal or is there a setup procedure on the ATV which mandates a display?
    I realize I could just buy another Airport Express for easy audio streaming, but then I wouldn't have the Netflix audio capability which I would like since I watch movies on my MBP. I'm hoping like an Airport Express, the ATV would configure itself for audio streaming once connected to my wifi network.
    Thanks for any help or ideas.

    If you're planning to stream from iTunes to the AppleTV controlling the material via iTunes, I suspect it may just appear as an Airtunes speaker option for iTunes without any setup needed.
    No Netflix in UK so don't know much about it, but I suspect you'd need to control the AppleTV directly for this unless you were viewing on the MBP and used something like Rogue Amoeba's Airfoil to transmit audio.
    If you have no desire for controlling AppleTV either on an TV or using Remote app for iPhone etc (and you'd need to set AppleTV up with a TV for Netflix or AppleTV controlled streaming anyway), you might want to consider using another Express upstairs and hook it's optical out to your DAC if you're just after stereo audio.
    AC

  • Streaming audio from my IPAD to my Apple TV from Rhapsody application.  when Apple TV go into Screen Saver mode, about 5 minutes after that it stops playing the Audio Stream and goes into Sleep mode.

    I am Streaming audio from my IPAD to my Apple TV from Rhapsody application.  when Apple TV go into Screen Saver mode, about 5 minutes after that it stops playing the Audio Stream and goes into Sleep mode.  I am using the Optical Out from the Apple TV to my receiver, the Apple TV is hard Wired to the Network, the IPAD is Wirelessly attached to the network (it continues to play the Audio Stream).  When the Apple TV is turned back on it resumes playing once I manual select it for output from the IPAD.  All device are on current releases of software.  I have no Video hooked up to the Apple TV.  How do I correct this?

    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

  • How to publish a local audio stream using NetStream?

    As all we know, if we want to publish a stream to FMS or Red5, we can code like below:
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/myApp");
    var ns:NetStream = new NetStream(nc);
    ns.attachAudio(Microphone);
    ns.publish("audio", "live");
    my problem is that we can pass an instance of Microphone to ns.attachAudio() only, if I want to attach a local audio stream,like playing a local sample.flv file to become a audio stream, how can I do?
    this issue has been asked 7 years ago, see the post. but i can not find any solutions.
    any tips will be appreciated. thx in advance.

    how to watch my local network stream using java,help!http://www.ethereal.com - a third party program (but not using java)

  • How to merging two audio stream using jmf?

    I have received two rtp audio stream,i want to merging this to one but createMergingDataSource dou work well。please help 。

    You might use an alternative approach: Run exec task and use a external tool to do the encoding.
    You can for example use "The Swiss army knive of Sound" :) SoX: http://sox.sourceforge.net/
    I think from a performance point of view or to handle large files it would be even recommended in using such tools rather then encoding inside your application ... that might be different if you need to do the encoding in real-time ...
    Sebastian

  • [SOLVED] "No codec present that can handle the stream's type" issue

    Hello. I got a python program that would play musics on a website, which doesn't work for a "no codec present that can handle the stream's type" issue. I have installed things like gstreamer, gstreamer-plugins, gstreamer-python, gstreamer-ffmpeg, and libmpeg2, etc. However, this issue still remains. Would someone here be able to help?
    Here's the error message:
    ** Message: don't know how to handle audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)24000, channels=(int)2, parsed=(boolean)true
    Error: There is no codec present that can handle the stream's type. gstplaybasebin.c(2322): prepare_output (): /GstPlayBin:player
    Here's the program, written by a Chinese: https://github.com/zhendi/DoubanFM-CLI
    Edit:
    I'm able to play the musics on the websites via chromium.
    Edit:
    I tried to download the music, and use gst-launch-0.10 filesrc location=~/p535960.mp3 ! decodebin ! autovideosink, but only find these messages:
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegAudioParse:mpegaudioparse0: GStreamer encountered a general stream error.
    Additional debug info:
    gstbaseparse.c(2695): gst_base_parse_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegAudioParse:mpegaudioparse0:
    streaming stopped, reason not-linked
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
    Freeing pipeline ...
    Last edited by lastland (2012-02-18 07:47:47)

    Sorry. I just found the reason. I missed gstreamer-ugly in this case.

  • How can I get certain devices to play one of the audio streams I uploaded?

    I uploaded my Music On Hold Audio Source. I restarted Media services. Then I went to one of my devices and select the audio stream needed for User Hold MOH Audio Source and Network Hold MOH Audio Source.  I hear dead air.

    Internally I can hear the audio I selected. But when I call in to test from an external devise I hear nothing when I place the call on hold and/or hit the transfer key.  If I set everything back to default I hear the MOH internal and external, works fine.
    Thanks
    Jami

  • Audio streaming with a microphone

    Hi,
    I want to realize audio streaming on the net using Java Sound API :
    - I get a computer, server on witch I connected a microphone, and I want to capture sound and transmit it in real time on the network to any browser that request to play sound from my server.
    - I want to use JMF API and I need also a code sample that solve my problem and I will adapt it to my project when mastering JMF
    Thank you.

    Hii Frends ..
    Here is lick http://www.dickbaldwin.com/tocadv.htm. Go to the bottom of webpage and u will find a list of articles with live code for caputring and playing sound. hope ti would help
    Regsrds

  • Audio stream - record and listen simultaneously

    Hi!
    I would like to record and listen RTP stream simultaneously, but I don't know how... I can record to a file OR listen in headphone but just separately.
    If i create a datasink for recording on a port I cannot use that port to listen. But in this case how can I listen the audio stream on headphone?
    Maybe the good solution would be for me if I could clone the stream but I cannot do, because I get an exception
    javax.media.NoProcessorException: Cannot find a Processor for: com.ibm.media.protocol.CloneablePushBufferDataSource@1d8957fThis is the code:
    DataSource ds = Manager.createCloneableDataSource(Manager.createDataSource(media_locator));
    processor = Manager.createRealizedProcessor(new ProcessorModel(ds, formats, outputType));Has anybody got any idea?
    Thanks!
    Ric Flair

    rflair wrote:
    Thank You, it was not a big help for me...That's too bad. But considering that JavaSound doesn't handle RTP, and all of the code you've posted in JMF code, that doesn't change the fact that it's a JMF question...

  • Audio stream to an Airport Express fails.

    Audio stream (sent by Itunes, Ipad, Iphones, Ipod....) to an Airport Express satellite works some seconds, then cuts then stops. It worked well for a couple of months than problems rised. Any solution?

    I'd like to put an AE upstairs so I can use AirPlay from my Mac to both the downstairs AppleTV and the upstairs Airport Express at the same time.
    The AirPort Express will work for this if it can receive a good quality wireless signal where it will be located.
    Also, I'd like the Airport Express to act as a Wi-Fi Network extender for the O2 router that's downstairs.
    The "extend" feature appears to be a proprietary function with Apple products. It is extremely unlikely that it will work with the O2 router. As far as we know, this feature only works among Apple products.

Maybe you are looking for