View Full Version : is there a way to play an audio stream ot a channel
slewis
04-14-2008, 09:54 AM
For test purposes I meed to emulate multiple usesr talking on multiple channels -
to emulate a significantly interesting community the process needs to be automated - is there a way to do this?
keith
04-14-2008, 10:36 AM
TPS Fileplayer application is a small program that uses the WAVE core library to stream audio to a unicast or multicast IP address and is very useful for demonstrations where a simulated live audio stream is to be played on WAVE PC clients.
I am putting together a Utilities section on the forum, but until then I have attached this utility. Please look at the README and example juke.cmd. I've included a sample NOAA audio file.
To configure this in WAVE:
Run this on the same machine your WAVE Media Server is on. Make a Trunk Channel using 127.0.0.1 as the audio receive. Now configure a standard channel like normal and use a Session to bridge them. You will hear audio coming out of the channel you just configured and be good to go.
Let us know if we can help with anything else.
slewis
04-14-2008, 01:43 PM
Can the IP be the server's ip allowing me to run on another box?
slewis
04-15-2008, 12:50 PM
How about some source code - I might well want to configure a few dozen players
kcarpenter
04-15-2008, 04:14 PM
You can actually setup a session to play a file, you would then create a session and standard channel for RAW audio file you wish to repeat out. You can convert a WAV file using a program called GoldWave which has a shareware version you can use. Just google GoldWave and it is the first link. Ideally I would record something using Windows Sound Recorder then convert it.
Open up your WAVE sessions page and add &advanced=Y at the end of the url. Then select Add Session and you should see a white box at the bottom of the screen. You add a line similar to <Participant ID='{F96C9E55-C04E-457C-9590-A69D5627571A}' Name='Fileplayer001' Description='Fileplayer001' Active='Y' Type='7' Direction='IN' FileName='C:/moh.raw' /> You can slightly modify the GUID by changing a letter or two, A-F works, since it's hex. Hopefully you don't duplicate any GUIDs in this process, so be aware of that. On each session change the GUID, Description, Name etc. You also want to use different RAW files as well. I've attached a screenshot of a working setup in my lab. The only options that should be the same are Active, Type and Direction. Once this is complete, add a Media server and a Standard Channel to the session, save and commit, and you should now be streaming audio to that Standard Channel.
Let me know if you have any questions.
Kenneth
slewis
04-17-2008, 07:07 AM
Can you be more explicit -
1) What is the url of the sessions page?
2) Does this happen on the server or the client
3) Is there something in the API to do this
kcarpenter
04-17-2008, 07:24 AM
1) The URL for the Sessions page can be found by clicking on Sessions on the left hand navigation panel on your Management Server web interface. When you're at the page with all of your sessions, simply add &advanced=Y to the end of the URL. I do not know your URL specifically, but it will look something like this:
http://<IP ADDRESS OF YOUR WAVE SERVER>/wave/session_mgt.asp?FLTCLR=Y&FLTR_ACT=RESET&advanced=Y
2) Since sessions are processed by the Media server, the streaming will happen from the Media server. Since you also put a Standard channel in that session, the clients should hear the audio being sourced from your Media server and outputted onto your Standard channel multicast address. This would essentially simulate audio on that channel.
3) I'm pretty sure this functionality is not available through our APIs. I will ask Leslie Lamprecht.
kcarpenter
04-17-2008, 10:27 AM
Here is a post with some sample code to play audio files using the SDK. Please post your questions here regarding this code, as I don't actually write code :)
http://devforum.twistpair.com/showthread.php?t=1225
Thanks,
Kenneth
slewis
10-07-2008, 07:37 AM
I set up file player broadcasting in a local multicast channel -
I have not used server sessions before and an faced with a bewildering
array of choices - How do I set up a server session to bridge
the multicast channel and a "ordinary" channel???:confused:
kcarpenter
10-07-2008, 07:40 AM
Configure a Standard channel for the the Communicator users
Configure a Multicast trunk channel that has the same IP multicast address as the Fileplayer's configuration
Create an Advanced Session with a Media server and these 2 channels as participants
You can use the default settings of the Advanced Session
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.