Voice Chat in C#

Comments

[this is good]
I like your coding articles, it's good stuff. Definitely informative since I haven't had the time to delve into it myself! Keep them coming (finally had time to go through some of your posts!).
[this is good]
This tutorial is AWESOME!! I have 3 questions though...

1. Will this work over the Internet? I mean, other than a LAN connection? Say I want to chat with someone over the Internet.

2. Does it allow many people to join in and talk at the same time, or is it only for 2 people to talk in private?

3. Could you make a text, chat system with private message ability? Again, in order to work over the Internet and allow many people to join in.

For question #3, if you need to charge a fee in order to create this, please let me know. I am willing to pay for it.
This solution can be configured to work over the internet using what's known as port forwarding. Unfortunately I do not have the proper code in place for NAT Traversal (which is required to traverse through subnets and routers) mostly because routers tend to treat them differently. Xbox Live has spent a lot of their money, resources and time building their service for NAT Traversal.

There is an alternative to traversing which is UPnP, and it's fairly simple to implement; most routers have UPnP enabled by default. Please contact me with my e-mail address if you have any further inquires. :D

As for texting/chat, adding that would be even easier than the voice chat because all that needs to be done is to convert the byte stream into text. This of course will require a packet protocol to be implemented, but overall pretty easy.

Oh, and as for joining in to create a "voice room" it will require a broadcasting architecture where the data can be streamed to all computers at once (i.e. it will need to be setup with a server).

I'm working on wpf , C#. I'm getting error while Init().

Bass.BASS_RecordInit(0);

Cannot create instance of 'MainWindow' defined in assembly 'WPFChat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation.

[this is good]

Is it possible to record to an int _stream and them playback that stream to audition it? I couldn't figure it out so I used the wav encoder to write it out and then loaded the wav into another stream to play it back.

Can you playback a stream without involving file IO?

[this is good]

oops, posted too soon, i figured it out - I had the set the

BASS_ChannelPlay restart boolean to true - works like a charm now. Sweet!

[this is good]
[this is good]
Hi Thomas,

Could this voice chat be made to work also in the new BASS for Windows Mobile/CE?

Regards
I created a c# project for Win Mobile and added your RecordUtil&NetworkUtil classes + the necessary buttons/event handlers in the Form.

But if run, you get:

The version of the assembly System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 cannot be loaded by this version of the Microsoft .NET Compact Framework.

"The version of the assembly System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 cannot be loaded by this version of the Microsoft .NET Compact Framework."

" at SmartDeviceProject1.formMain..ctor()\r\n at SmartDeviceProject1.Program.Main()\r\n"

with debugger pointing to line:

networker = new NetworkUtil();
Firstly, I'm impressed that there is a Windows Mobile version of Bass. That's awesome.

Second, my network utility was built for the full .NET Framework and thus will not work under the CF. Though, there is probably not much effort needed to port it over to a .NET CF compatible library. I can take a look at it as soon as I get the chance, but if you want you can check out the source code for the network library I wrote.

it would be great to have a simple example of a tcp (I guess udp is not covered?) peer to peer (no chat room / fancy functionality) out of the network API program you wrote.
That simple example would be much easier to check against the BASS win CE library, than the full tcp network example you provided.

Thanks
[this is good]
[this is good]
Did you ever get it working on Windows Mobile? I had found some issues with the Bass CE version but Radio42 seems to have that fixed:


Hi all,
I am learning to program telephony in C# where I would develop an application that acts as a telephone for chatting on Intranet and other NTs.
I already have a NT messenger and I am moving to the next challenge.NT voice chatting on TCP/IP.
I discovered Thomas Holloway application 'Voice Chat in C#' and have been trying to use it on our NT to get an impression of how it works but it is simply not working. I distributed the assemblies on the workstations such as 192.168.1.2 and another one 192.168.1.11 both of which have head sets with microphones.I used the port 8000 on each which working perfect with messenger module.First The status message does not change at all to give any indication.Second I and my colleague can't hear each other at all.
1-How do we use it the demo
2-how do we get it to work. I'wll be very inspired to continue with my research if I get this application to work.
Please reply soon.
Thanks in advance
На нашем порно сайте вы сможете скачать бесплатное порно, а также посмотреть порно ролики скачать, а также скачать бесплатное порно видео различных категорий.
Сайт для взрослых Xrest.net представляет вашему вниманию: порно ролики онлайн и конечно же порно бесплатно, большое выбор порно видео скачать бесплатно на любой вкус.
hello friend it's very great idea that I have ever seen ;
dear friend can u plz tell me how i can use ur project in the localhost (127.000.000.001) ;
i have downloaded ur project already ,
and run it ,i can see the user interface like in the above u put ;but i dont know what to enter in the 'create a local voice session' feild . plz tell me the steps how i can use ur project in the localhost.
hear from u soon!!
thanks!
I am waiting ur responce. Tell me how do ur application works what to enter on the fields , how to use it in a local host
[this is good]
it works, i have checked it, really nice work, but how can i see Network dll and others dll in side, the class, the method etc--
thanks

will it work with Microsoft Visual Studio 2008?

Secondly, a simple tcpserver and client object cannot voice?

It's possible to migrate to Visual Studio 2008, a simple TCP Server and client will suffice. I think I simply wrote this using my existing network library.

Post a comment

Already a Vox member? Sign in

Thomas Holloway

About Me

Thomas Holloway
United States
worry less, do more
Messaging:
Send

My Groups

Neighborhood

Explore friends, family, friends & family, or entire neighborhood.

Archives