User avatar
mc007ibi
Posts: 66
Joined: Wed Dec 16, 2015 7:36 pm
Location: barcelona

Simple walkie talkie software over TCP ?

Sat Feb 25, 2017 3:37 pm

Hi,
I am getting mad about to get a simple voice over TCP/UDP.

I'd like to connect 2 PIs microphone/line-out with each other, so that you could speak to each other. Does someone knows
some tutorial or easy to use software ?

Currently I am stuck with a icecast-server setup (for radio broadcasting) but it comes with quit some trouble. I am sure somebody here got this done much easier.

thanks a lot.
Last edited by mc007ibi on Tue Feb 28, 2017 12:48 pm, edited 1 time in total.

User avatar
mc007ibi
Posts: 66
Joined: Wed Dec 16, 2015 7:36 pm
Location: barcelona

Re: Simple walkie talkie software ?

Sat Feb 25, 2017 3:41 pm

ah, this has to run permanently from command line, no GUI required or even desired :-)

User avatar
mc007ibi
Posts: 66
Joined: Wed Dec 16, 2015 7:36 pm
Location: barcelona

Re: Simple walkie talkie software over TCP ?

Tue Feb 28, 2017 12:48 pm

anyone?

mattmiller
Posts: 1453
Joined: Thu Feb 05, 2015 11:25 pm

Re: Simple walkie talkie software over TCP ?

Tue Feb 28, 2017 12:50 pm

I've been looking for something like this for a while but only found complicated server based ones.

PiGraham
Posts: 2682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Simple walkie talkie software over TCP ?

Tue Feb 28, 2017 12:52 pm

As a basic hack how about netcat of the output of arecord into aplay?
I guess that could work both ways.

You may be able to use the vu (sound level) option of amixer (I think) as a voice activated switch to prevent feedback. (squelch)

User avatar
mc007ibi
Posts: 66
Joined: Wed Dec 16, 2015 7:36 pm
Location: barcelona

Re: Simple walkie talkie software over TCP ?

Tue Feb 28, 2017 6:21 pm

gonna try netcat tomorrow and will let you know. thanks already so much!
greets

PiGraham
Posts: 2682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Simple walkie talkie software over TCP ?

Tue Feb 28, 2017 9:46 pm

Here you go, Google (and this fine website) to the rescue:

https://www.raspberrypi.org/blog/talkie ... ie-talkie/

mattmiller
Posts: 1453
Joined: Thu Feb 05, 2015 11:25 pm

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 9:08 am

That's what I meant about there being no serverless projects - that one uses a Mumble server :)

And its written in Go which isn't something that a lot of us are familiar with

PiGraham
Posts: 2682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 9:34 am

mattmiller wrote:That's what I meant about there being no serverless projects - that one uses a Mumble server :)

And its written in Go which isn't something that a lot of us are familiar with
Why no mumble server? Can't you just install ii on one of the pis?
Presumably that would allow you add handsets to the system.

PiGraham
Posts: 2682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 9:38 am

It might be worth searching for "raspberry intercom" as well.

User avatar
fruitoftheloom
Posts: 15135
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 9:42 am

mc007ibi wrote:anyone?
??? http://www.linux-projects.org/rpi-video ... ce-demo-os

WebRTC solution, which should work in Raspbian Jessie with Pixel OSes chromium-browser v56: https://webrtc.org
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C ARM32 SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC.
3 Mobile Huawei E5330 Mobile Mi-Fi

mattmiller
Posts: 1453
Joined: Thu Feb 05, 2015 11:25 pm

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 9:58 am

Why no mumble server? Can't you just install ii on one of the pis?
The OP is looking for a serverless solution running server on one isn't serverless :)

User avatar
mc007ibi
Posts: 66
Joined: Wed Dec 16, 2015 7:36 pm
Location: barcelona

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 11:15 am

hey, thank you all. Also the pointer to the rpi-videoconference-demo-os tool was definitely helpful.

However, after messing with mumble-talk-pi I went for "mumble" just. It seems stable so far and its funny to abuse our "motioneye" setup for talking to people in that building.

thanks again, more links to other tools are always welcome :-)
g

PiGraham
Posts: 2682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 12:03 pm

mattmiller wrote:
Why no mumble server? Can't you just install ii on one of the pis?
The OP is looking for a serverless solution running server on one isn't serverless :)
Oh, well done! But we don't know why, so I asked. It seems like a viable solution. It's not smart to rule out viable options without good reasons. Maybe "server" was taken to mean a stand-alone server PC or other extra hardware. Who knows unless the question is answered?

mattmiller
Posts: 1453
Joined: Thu Feb 05, 2015 11:25 pm

Re: Simple walkie talkie software over TCP ?

Wed Mar 01, 2017 2:38 pm

It seems like a viable solution. It's not smart to rule out viable options without good reason
And you were entirely right to do so as that is what OP has gone with - I was wrong #AllsWell :)

mbbs1024
Posts: 9
Joined: Sat Apr 11, 2015 7:33 pm

Re: Simple walkie talkie software over TCP ?

Fri Sep 15, 2017 5:26 pm

My answer is probably a bit late, I just read this topic.
Why use TCP, Voice or video transmission over IP is normally transmitted over UDP because it is real-time and TCP is not suited for real-time signals.

Perhaps you can install a sofphone, and have them pointing to each other instead of pointing them to a sip server.
If you do that, the softphone takes care of all voice transmission issues

User avatar
mc007ibi
Posts: 66
Joined: Wed Dec 16, 2015 7:36 pm
Location: barcelona

Re: Simple walkie talkie software over TCP ?

Sat Sep 16, 2017 11:23 am

mbbs1024 wrote:
Fri Sep 15, 2017 5:26 pm

Why use TCP, Voice or video transmission over IP is normally transmitted over UDP because it is real-time and TCP is not suited for real-time signals.
yeah, that's right. thanks!

User avatar
Ronaldlees
Posts: 245
Joined: Sat Apr 16, 2016 4:28 pm
Location: North Carolina, US
Contact: Website

Re: Simple walkie talkie software over TCP ?

Thu Sep 21, 2017 1:28 pm

For a really nice, latency resistant UDP command line audio link, see:

http://www.pogo.org.uk/~mark/trx/

I use it on my Pi2, and it works well for me.
I am The Umbrella Man

User avatar
piglet
Posts: 799
Joined: Sat Aug 27, 2011 1:16 pm

Re: Simple walkie talkie software over TCP ?

Thu Sep 21, 2017 2:01 pm

Ronaldlees wrote:
Thu Sep 21, 2017 1:28 pm
For a really nice, latency resistant UDP command line audio link, see:

http://www.pogo.org.uk/~mark/trx/

I use it on my Pi2, and it works well for me.
Interesting. Do you have a write-up? I've been looking for something we can use around the house

User avatar
Ronaldlees
Posts: 245
Joined: Sat Apr 16, 2016 4:28 pm
Location: North Carolina, US
Contact: Website

Re: Simple walkie talkie software over TCP ?

Sun Sep 24, 2017 10:37 pm

piglet wrote:
Thu Sep 21, 2017 2:01 pm
Ronaldlees wrote:
Thu Sep 21, 2017 1:28 pm
For a really nice, latency resistant UDP command line audio link, see:

http://www.pogo.org.uk/~mark/trx/

I use it on my Pi2, and it works well for me.
Interesting. Do you have a write-up? I've been looking for something we can use around the house
Hi,
I didn't do a very detailed writeup, but only as part of another blog article related to ham radio. But, it's probably enough to get you started:

https://amateurmiscellany.wordpress.com ... nalog-rig/

The streaming software (i.e. a "potential" walkie talkie foundation) is towards the bottom of the page.
I am The Umbrella Man

Return to “General programming discussion”

Who is online

Users browsing this forum: No registered users and 4 guests