voip-like phone using Max

dodgeroo's icon

Hi all,

I've searched the forums to no avail.

I'm trying to create a patch that is like a voip phone but within max. i.e. there is a phone plugged into one computer and another phone plugged into a second computer and folk can talk to eachother over the network.

I have no difficulty sending audio from one computer to another using jit.net.send, etc. but when I try to send it in both directions I'm getting a feedback loop. I have selected different ports to send the audio from each computer.

And this is over a LAN so no connection to the web is necessary.

and i'm using headphones with mic like the ones that come with the iphone.

Hopefully, someone has done this before?

Cheers,

Carey

LSka's icon

Hard to say without looking at your patch.

dodgeroo's icon

below is the patch. there is one of these on each computer with the changing of the send and receive ports to match. it's a bit messy as it's a work in progress.

my main question is... is it possible to both send and receive audio between computers on a LAN?

Cheers,

Max Patch
Copy patch and select New From Clipboard in Max.

Carey

dodgeroo's icon

Hi,

I found solution. There must have been an audio feedback loop internally somewhere in my previous patch? A lesson in keeping patches tidy ;)

Attached are simple patches that can be used to send and receive audio over a network.

I'm surprised I couldn't find this on the forums. Maybe I wasn't looking in the right place?

Anyway, I think this could be useful for a variety of applications.

Cheers,

Carey

sendANDreceive-audio-LAN-comp1.maxpat
Max Patch
sendANDreceive-audio-LAN-comp2.maxpat
Max Patch
dodgeroo's icon

I am still getting feedback?

attached are some updated patches that work for my phone application but it would be great to have the ability to send and receive audio over a LAN without feedback within Max. maybe something to do with the 'localhost'. I'm not versed enough in network stuff to troubleshoot the issue.

Cheers,

Carey

redphone-macbookpro.maxpat
Max Patch
redphone-macromini.maxpat
Max Patch