Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

New cli voice chat application, testers needed!

Tue Feb 19, 2013 12:44 pm

Hi guys,

I've written a small cli voip program to make voice calls between two raspberrypi's (or two linux boxes in general).

The application is called 'parole' (which is and italian word that means 'words') and I decided to
write it some time ago, after I noticed there wasn't (or at least I did not find one) a simple application
to make a voice call between two users, without using an external service, create an account, exchange
user names etc. It could also be used as a 'spy bug' to remotely monitor an ambient.

It seems to work very well, so I'm publishing the source code hoping that others will find it useful
as well. I'm interested in comments/testing/bug reports. If you decide to give it a go, you will need
a usb sound card connected to your rpi, as well as headphones and microphone.

Here's the link to my page: http://holdenc.altervista.org/parole/

Thanks!

swinster
Posts: 14
Joined: Sat Jan 19, 2013 9:24 pm

Re: New cli voice chat application, testers needed!

Tue May 07, 2013 3:25 pm

Hi Holden,

I am looking for a CLi based VoIP SIP client to run on the Pi, although I do need it to be able to register with a server/registrar. Essentially, I'm looking to create a simply headless system that for the most part will only be called (rather than do the calling). The audio out of the Pi will be piped to a separate audio system, whilst the audio in (not necessary need in the majority of set-ups) would be via a USB mic. We would need to be able to adjust a few setting that could be completed via SSH, but ideally would be managed via a web interface.

I know your apps primary remit is that it doesn't register to a server, but I have no idea where to start building something like this from scratch - especially as my C programming skills are rubbish.

Chris

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Thu May 09, 2013 3:07 pm

swinster wrote:Hi Holden,

I am looking for a CLi based VoIP SIP client to run on the Pi, although I do need it to be able to register with a server/registrar.
Hi Chris,

I've only read something about the SIP protocol, but I've not yet experimented with it so far, so I'm afraid I can't be of much help. A quick search with google though suggests that there are CLI based VoIP clients like Pjsua, sipcmd or even Linphone, maybe you could try one of those.

Holden

Left4Cookies
Posts: 1
Joined: Wed Oct 02, 2013 8:40 am

Re: New cli voice chat application, testers needed!

Wed Oct 02, 2013 8:42 am

Hi Holden,

What USB sound card do you recommend for this use? Or it it irrelevant?

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Fri Oct 18, 2013 4:42 pm

Left4Cookies wrote:What USB sound card do you recommend for this use? Or it it irrelevant?
Hi,

my program uses ALSA to access the sound card, so basically any usb sound card which has a working ALSA driver in linux should work. I've got this very cheap one from ebay, and it works out of the box on raspbian:

http://www.ebay.it/itm/USB-EXTERNAL-3D- ... 5d33ba3b56

Holden

DerkG
Posts: 2
Joined: Thu Oct 24, 2013 1:05 pm

Re: New cli voice chat application, testers needed!

Thu Oct 24, 2013 1:24 pm

Is there any chance I will be able to use this for a conference-type chat with more than one person?

Also, any suggestions on using an external hardware press-to-talk? I was thinking of using a GPIO pin for that, but now figure simply interrupting the microphone may be more practical. Is the bandwidth use reduced in the absence of a microphone signal?

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Fri Oct 25, 2013 9:34 pm

DerkG wrote:Is there any chance I will be able to use this for a conference-type chat with more than one person?
Actually, after my first experience with parole I started writing a new version that supported conferences (up to ten people). This is why I haven't update parole in a while. Here's the link if you want to check it out:

http://holdenc.altervista.org/parole-conference/

It's a small program that has its limitations, but my friends and I have used it successfully on normal computers to make conferences in the past months. The audio quality in particular is excellent, thanks to the Opus codec.
I haven't tested parole-conference on the raspberrypi yet, but I suspect the arm cpu is not fast enough to handle a conference with 3 or more people. But I've read that new versions of libopus are supposed to be much faster on arm... also setting a lower complexity in the Opus encoder/decoder could help, or maybe using an integer-only build. There is also some code that could be disabled to make it faster.
DerkG wrote:Also, any suggestions on using an external hardware press-to-talk? I was thinking of using a GPIO pin for that, but now figure simply interrupting the microphone may be more practical. Is the bandwidth use reduced in the absence of a microphone signal?
The bandwidth is reduced when you feed silence, but the difference is not much (say 1.9 kB/s vs 2.2 kB/s normally). Modifying the program to read a GPIO pin that act as a press-to-talk would be easy. That way you could simply send special "silence" packets and use only a very small bandwidth (0.1 kB/s or so).

Holden

DerkG
Posts: 2
Joined: Thu Oct 24, 2013 1:05 pm

Re: New cli voice chat application, testers needed!

Sun Oct 27, 2013 9:40 am

Excellent news! I will have to look into this further.

Now, since I am just getting my feet wet with python programming for the PI I don't think I will be touching C anytime soon.

Looking at the site I notice that it generates a text based display of call status etc. Do you see any issues with running it at on headless PI? Basically I intend to use it as a wifi-based radio with only a small lcd screen to display status on. Do all the / commands translate to CLI commands? E.g. to pass an encryption key or to set microphone gain?

Regards,

Derk

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Fri Nov 01, 2013 9:06 am

DerkG wrote:Looking at the site I notice that it generates a text based display of call status etc. Do you see any issues with running it at on headless PI?
You could connect via ssh and use screen to run it on a headless PI.
DerkG wrote: Basically I intend to use it as a wifi-based radio with only a small lcd screen to display status on. Do all the / commands translate to CLI commands? E.g. to pass an encryption key or to set microphone gain?
At the moment most of those / commands are interactive commands and do not have CLI equivalent. For the future, I am working on a rewrite of this program so that it'll be more similar to a library that can be called from another application. That way, implementing something that works on a headless PI and receives text commands via a fifo or a socket would be easy.

Holden

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Mon Aug 04, 2014 9:58 am

Hello there,

for those of you still interested my voice conference program has changed name and it is now called Seren:

http://holdenc.altervista.org/seren/

It has been optimized to work well on the Raspberry Pi and it has some nice features, such as:

* audio conference with up to 10 people
* simple ncurses interface
* excellent audio quality thanks to the Opus codec
* basic support for text chat
* encryption to protect your privacy
* conference recording

As always I'm interested in any feedback from the community!

Holden

lebaal
Posts: 6
Joined: Fri Oct 26, 2012 8:57 am

Re: New cli voice chat application, testers needed!

Sun Dec 07, 2014 11:50 pm

Hi,
right now I am looking for some software to build a intercom for a friend and me for motorcycle tours. Mumble is quite heavy on the cpu and teamspeak is not open source and wont run suffiently when emulated.
I think we will try to check out how many people can talk until it gets laggy.
Maybe we need some bigger ARM (BananaPi or CubieBoard).
Thanks for the software so far.
lebaal

Ivan Tham
Posts: 75
Joined: Mon Jun 24, 2013 7:06 am

Re: New cli voice chat application, testers needed!

Mon Dec 08, 2014 1:42 am

Is there any way to use seren with the microphone on the webcam?

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Tue Dec 09, 2014 10:06 pm

lebaal wrote:Hi,
right now I am looking for some software to build a intercom for a friend and me for motorcycle tours. Mumble is quite heavy on the cpu and teamspeak is not open source and wont run suffiently when emulated.
I think we will try to check out how many people can talk until it gets laggy.
I've tested Seren with 4 nodes on the rpi and it works okay. Just make sure you have the latest version of libopus compiled with --enable-fixed-point and select the lowest complexity using "-C 0" on the command line when running Seren (it's all explained in the README or the home page).
lebaal wrote:Maybe we need some bigger ARM (BananaPi or CubieBoard).
Thanks for the software so far.
lebaal
You're welcome!

Holden

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Tue Dec 09, 2014 10:18 pm

Ivan Tham wrote:Is there any way to use seren with the microphone on the webcam?
Of course. Firstly check if your webcam microphone has been detected:

Code: Select all

$ cat /proc/asound/pcm 
00-00: ALC892 Analog : ALC892 Analog : playback 1 : capture 1
00-01: ALC892 Digital : ALC892 Digital : playback 1
00-02: ALC892 Analog : ALC892 Analog : capture 1
01-00: USB Audio : USB Audio : capture 1
I ran that command on my desktop actually, but the result would be similar on the rpi. As you can see I have a usb capture audio device (my Logitech C200 webcam) listed as hw:1,0. Next, run Seren with the following command:

Code: Select all

seren -n NICK -d plughw:0 -D plughw:1
This will use your sound card 0 for playback, and sound card 1 (usb microphone) for capture.

Holden

billw
Posts: 339
Joined: Tue Sep 18, 2012 8:23 pm

Re: New cli voice chat application, testers needed!

Tue Apr 05, 2016 5:03 pm

Seren looks good for what I want to do, but I'm getting pcm (Broken pipe) errors, maybe I'm doing
something wrong?

My two Pis are on a local lan, my router port forwards a range of ports to each pi and my router IP
has a dynamic URL setup. Each pi has a USB audio card for the mic.,
On pi with NICK bill, I run from a local terminal:

Code: Select all

~$ seren -C 0 -d plughw:0 -D plughw:1 -p xx306 -n bill
On the same pi, I ssh into the other pi and run:

Code: Select all

pi@rpi4: ~$ seren -C 0 -d plughw:0 -D plughw:1 -p xx346 -n betty
Then in seren on the "bill" pi, I call betty:

Code: Select all

/c betty.xxxx.com xx346
The "bill" pi just gives a busy like tone every 5 seconds and I don't get any audio sent from
either pi.
The "bill" seren log:

Code: Select all

[2016/04/05 10:53:16] Seren 0.0.21
[2016/04/05 10:53:16] parole-conference-engine 0.3.0
[2016/04/05 10:53:16] libopus 1.1
[2016/04/05 10:53:17] (G) [main] Welcome to Seren! Enter /h for help
[2016/04/05 10:53:17] (G) [main] Listening for incoming calls on udp port xx306...
[2016/04/05 10:53:17] (I) [stun] Using STUN to get external IP address
[2016/04/05 10:53:17] (I) [resolve] Resolving 'stun.ekiga.net'...
[2016/04/05 10:53:17] (I) [stun] External IP: 70.241.17.xxx
[2016/04/05 10:53:22] (G) [main] Verbosity level: 2
[2016/04/05 10:53:32] (G) [main] Autoaccept calls: on
[2016/04/05 10:53:41] (I) [resolve] Resolving 'betty.xxxx.com'...
[2016/04/05 10:53:41] (V) [resolve] Name: betty.xxxx.com, Address list: [ 70.241.17.xxx ], Port: xx346
[2016/04/05 10:53:41] (G) [main] (70.241.17.xxx:xx346) has joined the conference
[2016/04/05 10:53:41] (G) [main] Calling 70.241.17.xxx:xx346...
[2016/04/05 10:53:41] (E) [alsa] Cannot read from pcm (Broken pipe)
[2016/04/05 10:53:41] (V) [alsa] Starting pcm audio device...
[2016/04/05 10:54:03] (E) [alsa] Cannot write to pcm (Broken pipe)
[2016/04/05 10:54:18] (E) [alsa] Cannot write to pcm (Broken pipe)
[2016/04/05 10:54:35] (E) [alsa] Cannot write to pcm (Broken pipe)
[2016/04/05 10:54:41] (G) [main] (70.241.17.xxx:xx346) has left (reason: call ended)
[2016/04/05 10:54:41] (G) [main] Calling 70.241.17.xxx:xx346 aborted
[2016/04/05 10:54:56] (V) [alsa] Stopping pcm audio device...
[2016/04/05 10:54:56] (V) [alsa] Closing audio device...
[2016/04/05 10:54:56] (V) [alsa] Stopping pcm audio device...
[2016/04/05 10:54:56] (V) [alsa] Closing audio device...
And the "betty" seren log:

Code: Select all

[2016/04/05 10:53:11] Seren 0.0.21
[2016/04/05 10:53:11] parole-conference-engine 0.3.0
[2016/04/05 10:53:11] libopus 1.1
[2016/04/05 10:53:12] (G) [main] Welcome to Seren! Enter /h for help
[2016/04/05 10:53:12] (G) [main] Listening for incoming calls on udp port xx346...
[2016/04/05 10:53:12] (I) [stun] Using STUN to get external IP address
[2016/04/05 10:53:12] (I) [resolve] Resolving 'stun.ekiga.net'...
[2016/04/05 10:53:12] (I) [stun] External IP: 70.241.17.xxx
[2016/04/05 10:53:27] (G) [main] Verbosity level: 2
[2016/04/05 10:53:29] (G) [main] Autoaccept calls: on
[2016/04/05 10:53:42] (G) [main] bill (192.168.0.1:xx306) is calling: /y to accept, /n to refuse
[2016/04/05 10:53:42] (G) [main] Call from bill (192.168.0.1:xx306) accepted
[2016/04/05 10:53:42] (G) [main] bill (192.168.0.1:xx306) has joined the conference
[2016/04/05 10:53:42] (E) [alsa] Cannot read from pcm (Broken pipe)
[2016/04/05 10:53:42] (V) [alsa] Starting pcm audio device...
[2016/04/05 10:54:47] (E) [alsa] Cannot write to pcm (Broken pipe)
[2016/04/05 10:54:47] (G) [main] bill (192.168.0.1:xx306) has left (reason: timeout)
[2016/04/05 10:55:00] (V) [alsa] Stopping pcm audio device...
[2016/04/05 10:55:00] (V) [alsa] Closing audio device...
[2016/04/05 10:55:00] (V) [alsa] Stopping pcm audio device...
[2016/04/05 10:55:00] (V) [alsa] Closing audio device...
Any ideas?

Edit: I edited audio.c and added test for EPIPE and do a snd_pcm_prepare() in the audio_read()
and audio_write() functions. This gets rid of the Broken pipe errors, but the calling seren still gives
the 5 second interval tones. The microphone VU meters for each pi show a signal, but no sound
gets transmitted.
One seren runs on a pi3 and the other on a pi2.

billw
Posts: 339
Joined: Tue Sep 18, 2012 8:23 pm

Re: New cli voice chat application, testers needed!

Wed Apr 06, 2016 2:09 pm

billw wrote:Seren looks good for what I want to do, but I'm getting pcm (Broken pipe) errors, maybe I'm doing
something wrong?
So it turns out the Broken pipe errors are not an issue at all.
My network is configured to use aliases to get static IPs and whether the problem is with my router or
elsewhere, I discovered that if I use the router DHCP dynamic assigned IPs Seren works perfectly for me.

I'm now able to use Seren and it is a very nice and easy way to get a voice chat app running on my Pis.

konsti1337
Posts: 3
Joined: Tue Aug 08, 2017 11:33 am

Re: New cli voice chat application, testers needed!

Tue Aug 08, 2017 11:35 am

Is there any way to run seren without having an audio input / output installed. as a server so to say?

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Sun Aug 13, 2017 1:52 pm

konsti1337 wrote:
Tue Aug 08, 2017 11:35 am
Is there any way to run seren without having an audio input / output installed. as a server so to say?

No, at the moment Seren requires an audio card with a working alsa driver to run.

konsti1337
Posts: 3
Joined: Tue Aug 08, 2017 11:33 am

Re: New cli voice chat application, testers needed!

Sun Aug 13, 2017 3:39 pm

Actually I managed to solve this problem by just installing a dummy sound card

Code: Select all

sudo modprobe snd-dummy
works like a charm.

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Sun Aug 13, 2017 3:47 pm

konsti1337 wrote:
Sun Aug 13, 2017 3:39 pm
Actually I managed to solve this problem by just installing a dummy sound card

Thanks for letting me know, I'll try it when I have some time!

DaveDischord
Posts: 3
Joined: Mon Oct 02, 2017 4:49 pm

Re: New cli voice chat application, testers needed!

Mon Oct 02, 2017 5:02 pm

I'm trying Seren out, trying to use ReSpeaker2 as both the capture and playback, on both a RPi3 and RPi2. So far, I've only gotten it to work by setting the ReSpeaker2 mics to capture (RPi2), and setting playback through headphones (RPi3). I get a "Cannot set parameters (Device or resource busy)" message if setting both capture and playback to the ReSpeaker2. I believe its because they have the same hw:x,x ID, even though that seems to be the default for any device. I've tried plughw:x,x as well with the same issue. I'll continue to look into the ReSpeaker to see if there's other options on defining hw IDs.

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Wed Oct 04, 2017 6:11 pm

DaveDischord wrote:
Mon Oct 02, 2017 5:02 pm
I'm trying Seren out, trying to use ReSpeaker2 as both the capture and playback, on both a RPi3 and RPi2. So far, I've only gotten it to work by setting the ReSpeaker2 mics to capture (RPi2), and setting playback through headphones (RPi3). I get a "Cannot set parameters (Device or resource busy)" message if setting both capture and playback to the ReSpeaker2. I believe its because they have the same hw:x,x ID, even though that seems to be the default for any device. I've tried plughw:x,x as well with the same issue. I'll continue to look into the ReSpeaker to see if there's other options on defining hw IDs.

Hello Dave,

I saw your question on IRC but you left the channel before I had a change to answer :) If you have a chance come back over the weekend, I should be able to help.

Regarding your question, I have no experience with that particular audio card, but I suggest you run the following commands and paste the output here:

Code: Select all

cat /proc/asound/pcm
aplay -l
arecord -l
seren -d hw:0,0 -vv
seren -d hw:1:0 -vv

Cheers,
Holden

konsti1337
Posts: 3
Joined: Tue Aug 08, 2017 11:33 am

Re: New cli voice chat application, testers needed!

Wed Oct 04, 2017 6:46 pm

Is there any way to run seren in the back and free up the command line? Are you still working on new versions?

DaveDischord
Posts: 3
Joined: Mon Oct 02, 2017 4:49 pm

Re: New cli voice chat application, testers needed!

Wed Oct 04, 2017 7:33 pm

Holden wrote:
Wed Oct 04, 2017 6:11 pm


Hello Dave,

I saw your question on IRC but you left the channel before I had a change to answer :) If you have a chance come back over the weekend, I should be able to help.

Regarding your question, I have no experience with that particular audio card, but I suggest you run the following commands and paste the output here:

Code: Select all

cat /proc/asound/pcm
aplay -l
arecord -l
seren -d hw:0,0 -vv
seren -d hw:1:0 -vv

Cheers,
Holden
Thank you for the replay. Here are the results:
cat /proc/asound/pcm

Code: Select all

00-00: bcm2835 ALSA : bcm2835 ALSA : playback 8
00-01: bcm2835 ALSA : bcm2835 IEC958/HDMI : playback 1
01-00: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 :  : playback 1 : capture 1
aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
arecord -l

Code: Select all

**** List of CAPTURE Hardware Devices ****
card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
seren -d hw:0,0 -vv

Code: Select all

Seren, ver. 0.0.21

[2017/10/04 14:31:16] (V) [alsa] Opening pcm audio device 'hw:1,0' for capture...
[2017/10/04 14:31:16] (D) [alsa] Allocating structure for hardware parameters...
[2017/10/04 14:31:16] (V) [alsa] Setting hardware parameters...
[2017/10/04 14:31:16] (D) [alsa] Applying hardware parameters...
[2017/10/04 14:31:16] (D) [alsa] Reading hardware parameters...
[2017/10/04 14:31:16] (D) [alsa] Hardware parameters chosen:
[2017/10/04 14:31:16] (D) [alsa]   rate        = 48000
[2017/10/04 14:31:16] (D) [alsa]   channels    = 2
[2017/10/04 14:31:16] (D) [alsa]   periods     = 10
[2017/10/04 14:31:16] (D) [alsa]   period_size = 960
[2017/10/04 14:31:16] (D) [alsa]   period_time = 20000 us
[2017/10/04 14:31:16] (D) [alsa]   buffer_size = 9600
[2017/10/04 14:31:16] (D) [alsa]   buffer_time = 200000 us
[2017/10/04 14:31:16] (D) [alsa] Allocating structure for software parameters...
[2017/10/04 14:31:16] (D) [alsa] Getting current software parameters...
[2017/10/04 14:31:16] (V) [alsa] Setting software parameters...
[2017/10/04 14:31:16] (D) [alsa] Applying software parameters...
[2017/10/04 14:31:16] (D) [alsa] Reading software parameters...
[2017/10/04 14:31:16] (D) [alsa] Software parameters chosen:
[2017/10/04 14:31:16] (D) [alsa]   avail_min       = 960
[2017/10/04 14:31:16] (D) [alsa]   start_threshold = 1920
[2017/10/04 14:31:16] (D) [alsa]   stop_threshold  = 9600
[2017/10/04 14:31:16] (D) [alsa] Poll descriptors = 1
[2017/10/04 14:31:16] (D) [alsa]   0: fd = 7, POLLIN
[2017/10/04 14:31:16] (V) [alsa] Opening pcm audio device 'hw:0,0' for playback...
[2017/10/04 14:31:16] (D) [alsa] Allocating structure for hardware parameters...
[2017/10/04 14:31:16] (V) [alsa] Setting hardware parameters...
[2017/10/04 14:31:16] (D) [alsa] Applying hardware parameters...
[2017/10/04 14:31:16] (D) [alsa] Reading hardware parameters...
[2017/10/04 14:31:16] (D) [alsa] Hardware parameters chosen:
[2017/10/04 14:31:16] (D) [alsa]   rate        = 48000
[2017/10/04 14:31:16] (D) [alsa]   channels    = 2
[2017/10/04 14:31:16] (D) [alsa]   periods     = 10
[2017/10/04 14:31:16] (D) [alsa]   period_size = 960
[2017/10/04 14:31:16] (D) [alsa]   period_time = 20000 us
[2017/10/04 14:31:16] (D) [alsa]   buffer_size = 9600
[2017/10/04 14:31:16] (D) [alsa]   buffer_time = 200000 us
[2017/10/04 14:31:16] (D) [alsa] Allocating structure for software parameters...
[2017/10/04 14:31:16] (D) [alsa] Getting current software parameters...
[2017/10/04 14:31:16] (V) [alsa] Setting software parameters...
[2017/10/04 14:31:16] (D) [alsa] Applying software parameters...
[2017/10/04 14:31:16] (D) [alsa] Reading software parameters...
[2017/10/04 14:31:16] (D) [alsa] Software parameters chosen:
[2017/10/04 14:31:16] (D) [alsa]   avail_min       = 960
[2017/10/04 14:31:16] (D) [alsa]   start_threshold = 1920
[2017/10/04 14:31:16] (D) [alsa]   stop_threshold  = 9600
[2017/10/04 14:31:16] (D) [alsa] Poll descriptors = 1
[2017/10/04 14:31:16] (D) [alsa]   0: fd = 8, POLLOUT
seren -d hw:1,0 -vv

Code: Select all

Seren, ver. 0.0.21

[2017/10/04 14:32:24] (V) [alsa] Opening pcm audio device 'hw:1,0' for capture...
[2017/10/04 14:32:24] (D) [alsa] Allocating structure for hardware parameters...
[2017/10/04 14:32:24] (V) [alsa] Setting hardware parameters...
[2017/10/04 14:32:24] (D) [alsa] Applying hardware parameters...
[2017/10/04 14:32:24] (D) [alsa] Reading hardware parameters...
[2017/10/04 14:32:24] (D) [alsa] Hardware parameters chosen:
[2017/10/04 14:32:24] (D) [alsa]   rate        = 48000
[2017/10/04 14:32:24] (D) [alsa]   channels    = 2
[2017/10/04 14:32:24] (D) [alsa]   periods     = 10
[2017/10/04 14:32:24] (D) [alsa]   period_size = 960
[2017/10/04 14:32:24] (D) [alsa]   period_time = 20000 us
[2017/10/04 14:32:24] (D) [alsa]   buffer_size = 9600
[2017/10/04 14:32:24] (D) [alsa]   buffer_time = 200000 us
[2017/10/04 14:32:24] (D) [alsa] Allocating structure for software parameters...
[2017/10/04 14:32:24] (D) [alsa] Getting current software parameters...
[2017/10/04 14:32:24] (V) [alsa] Setting software parameters...
[2017/10/04 14:32:24] (D) [alsa] Applying software parameters...
[2017/10/04 14:32:24] (D) [alsa] Reading software parameters...
[2017/10/04 14:32:24] (D) [alsa] Software parameters chosen:
[2017/10/04 14:32:24] (D) [alsa]   avail_min       = 960
[2017/10/04 14:32:24] (D) [alsa]   start_threshold = 1920
[2017/10/04 14:32:24] (D) [alsa]   stop_threshold  = 9600
[2017/10/04 14:32:24] (D) [alsa] Poll descriptors = 1
[2017/10/04 14:32:24] (D) [alsa]   0: fd = 7, POLLIN
[2017/10/04 14:32:24] (V) [alsa] Opening pcm audio device 'hw:1,0' for playback...
[2017/10/04 14:32:24] (D) [alsa] Allocating structure for hardware parameters...
[2017/10/04 14:32:24] (V) [alsa] Setting hardware parameters...
[2017/10/04 14:32:24] (D) [alsa] Applying hardware parameters...
[2017/10/04 14:32:24] (E) [alsa] Cannot set parameters (Device or resource busy)

Oops, there was a problem and the program was terminated:

pc_engine_init() failed

Holden
Posts: 29
Joined: Thu Aug 16, 2012 10:54 am
Location: Italy

Re: New cli voice chat application, testers needed!

Thu Oct 05, 2017 9:35 pm

konsti1337 wrote:
Wed Oct 04, 2017 6:46 pm
Is there any way to run seren in the back and free up the command line? Are you still working on new versions?

Hi, the best way to run Seren in background is by launching it inside a screen session and then pressing "Ctrl-a d" to detach the screen and return to the terminal. I am still working on it, you can find development version at the following address:

http://seren.nsupdate.info/

Cheers,
Holden

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 18 guests