|
Sorry I'm a noob. Two questions:
1. From the UI it looks like it can send from local end point to Target IP. But how do I receive and listen to the audio at the target IP?
2. I'd like to use this on 2 devices that's on the same WIFI, and they have the same public IP address, so what should I put in the Local end point and Target IP?
|
|
|
|
|
Hello Ivar,
Is it possible to send a wav file to play in a call?
I have tried to send using a RTP_SendStream but it is only playing some random noise like the package is wrong.
Maybe my package is wrong because I have to buffer the sound, I have seen that the buffer size is 1400 and this might be the problem but I do not know how to solve it.
Thank you in advance.
|
|
|
|
|
With your program, we send audio, but I don't know that how do I get the audio to another computer? How do i listen audio that i send, in another computer?
Thank you very much for attention and your program.
|
|
|
|
|
Hi, At first I must to say that you got good job.
So I have questions.
1- local endpoint ip cannot be changed multicast ip lik ""235.4.4.4". And I need to send A computer'sound to B computer by udp. So I have used your program. But how do i take the sound in B computer. I tried to take with vlc player but your local ip adreess "127.0.0.1" can not open in vlc.
I wonder that do you understand me? I am very happy if you help me.
|
|
|
|
|
Hello,
is it possible to send audio to android device, or getting audio from android device, thank you.
|
|
|
|
|
Hi,
I would like to try to broadcast audio from my microphone to all clients on the LAN using something similar to the following:
IPEndPoint endPoint = new IPEndPoint(IPAddress.Broadcast, Convert.ToInt32(Properties.Settings.Default.audio_port));
I get an error at runtime:
Quote: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
Additional information: The requested address is not valid in its context
Does anyone know what I am doing incorrectly and can help?
Thanks in advance.
|
|
|
|
|
I would also like to broadcast to all clients on my subnet. I believe it is a problem with LumiSoft.Net.UDP.UdpServer. I am contemplating making an adapter of some kind to get the same functionality but better (adapter is a design template). According to my "TCP/IP Sockets in C#; practical guide for programmers" there is no reason that multicast or broadcast should not be possible. I am on a wifi network, perhaps that's the problem.
I just refactored a bunch of this code into something I could use headlessly. Dude, you're code is too tightly coupled with your GUI.
|
|
|
|
|
I figured it out, you need to send via a UdpClient in order to get your data moving to all the clients on the network. I have some code, but it should probably be broken up into two components, the client and the server, or better yet something that extends from both interfaces.
|
|
|
|
|
Hey,
Once the audio is in byte array form, do you know of a way to apply some sort of noise removal to it? I wanted to amplify the audio first of all, so I just doubled all the values in the array, but that (obviously) also doubles the white noise/background noise. Any ideas on solving this?
Cheers,
Dave.
|
|
|
|
|
Hello,
I have a question from a different barrel.
Capturing and sending sound from the microphone works great.
I miss a single mechanism. As such sound arises from several people and
it should be summed up at the receiving end and played as one common sound.
Is there a solution?
Best Regards,
Jacek
|
|
|
|
|
Can I Use This Code In Web Application ? And If So how can I do it because it gave me exception in first buffer sub..... aapreciate your work. great job
|
|
|
|
|
You can send to a web server, or send commands from a web server, but you cannot run C# code on a client of the web server. Does that make sense? Your web page has no ability to run C#, it only has the ability to run javascript, CSS(cascading style sheets), and HTML.
If you wanted you could run an audio server such as this, and you could have a page which allows you to select from all the installed audio clients. You could even periodically have them execute code the server wants executed, but you would have to create a socket that first talks to the server from the client. Firewalls only allow one to first communicate out to the server first, and then the server can follow up with a reply. This is how firewalls protect us.
You would have to manually install the Audio Servers on the clients, or otherwise send them the code to install themselves.
|
|
|
|
|
hi i please want same code in VB.Net i am developing a great video chat app.i already added video and message chat capabilities now i please want a VB.Net version of this code for use in my project in VS 2013 Ultimate any way can we do same in that.
|
|
|
|
|
well i am using speech recognition engine.. in my case it asks for audio stream..
well i have no knowledge in streams.. will u show me how to get the audio as a stream from mic so that i could feed it into the engine..??
~LIFE RUNS IN CODE~
|
|
|
|
|
Hello,
We are interested in using this code for Commercial Use. Is there an associated fee for using this for commercial purposes? Thanks!
|
|
|
|
|
Hi,
It's free to use and distribute for Commercial Use ...
|
|
|
|
|
Thank you for your correspondence!
|
|
|
|
|
The concept is great; it was exactly what I was looking for!
However I'm having an issue with my microphone.
When broadcasting microphone sounds to another computer, it always comes out static no matter what (despite the codec used).
My microphone works fine with other applications such as Skype, etc, and the volume panel detects it and says everything is A-okay.
So I know the microphone is properly configured.
However I cannot get any audible voice to come out the other end. Any advice?
The microphone I am using is a built in laptop one, and it's driver is the standard "High Definition Audio Device"
(Hardware ID is: HDAUDIO\FUNC_01&VEN_8384&DEV_7616&SUBSYS_1028022E&REV_1004)
Sending computer is Windows 8 Pro, receiving is Vista Home Premium.
Any solution would be helpful, thanks!
|
|
|
|
|
Nevermind. Re-installing the driver oddly fixed the issue .
|
|
|
|
|
Man you did an Excellent job and you ROCKS!!!
|
|
|
|
|
How do you get this program to work?
I have compiled the source, but when I run it on my two pc's I do not have the option for their IP addresses.
Is there something else you have to do within the code?
Thanks
|
|
|
|
|
Ivar,
can you please offer some assistance.
Thanks
Dale
|
|
|
|
|
Hi,
thank u for the helpful code, I tested it o my LAN and it worked very well, now I'm trying to send the voice over the Internet, so for testing purpose I used my WAN IP as a Target IP and I configured the port forwarding to forward the arrived packets at 11000 port to another PC on My LAN so now the packet goes like this: PC1 -> global net-> PC2, as PC1 and PC2 on the same LAN, but unfortunately there are no packets received at PC2, I've tested this method on another application and it worked, so any Idea why it's not working with this demo?
thanks.
|
|
|
|
|
Hi,
It may related to NAT loopback, it dependant on router manufacturer and configuration.
Probably loopback not enabled.
|
|
|
|
|
Thank you for your response, I had the chance to test the demo with one of my friends (I didn't start my Mic), I received only one packet and 200 Bytes and nothing more, I checked my router log and it always shows this when my friend tries to connect to me :
07/03/2014 02:39:14 **UDP Flood to Host** 31.9.55.19, 11000->> 192.168.2.104, 11000 (from PPPoE1 Inbound)
as 31.9.55.19 is my fiend's IP
I think this eliminate the loopback factor, any more Ideas why it's not working over WAN?
thx
modified 2-Jul-14 13:15pm.
|
|
|
|