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

Re: New cli voice chat application, testers needed!

Thu Oct 05, 2017 9:46 pm

DaveDischord wrote:
Wed Oct 04, 2017 7:33 pm

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

Everything seems ok so far...
DaveDischord wrote:
Wed Oct 04, 2017 7:33 pm
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

Using hw:1,0 for capture and hw:0,0 for playback works, but of course that's not what you want.
DaveDischord wrote:
Wed Oct 04, 2017 7:33 pm
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

When trying to use hw:1,0 for both capture and playback it fails while initializing the playback audio device, not sure why... have you checked that no other process is using the audio card? Also, can you confirm that the audio card is capable of full duplex by running:

Code: Select all

arecord -f cd -Dhw:1 | aplay -Dhw:1
Cheers,
Holden

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

Re: New cli voice chat application, testers needed!

Wed Oct 18, 2017 4:30 pm

Wow, I guess I didn't get notified of your response. Sorry about that. How would I check for other audio processes? And yes, it does support full-duplex. When I set it up initially, Using their wiki page here: http://wiki.seeed.cc/ReSpeaker_2_Mics_Pi_HAT/, it tested fine.

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

Re: New cli voice chat application, testers needed!

Sat Nov 04, 2017 10:41 am

DaveDischord wrote:
Wed Oct 18, 2017 4:30 pm
Wow, I guess I didn't get notified of your response. Sorry about that. How would I check for other audio processes? And yes, it does support full-duplex. When I set it up initially, Using their wiki page here: http://wiki.seeed.cc/ReSpeaker_2_Mics_Pi_HAT/, it tested fine.
Hi, have you made any progress on this? You could use htop to check if you have any processes that might be using your audio card, like pulseaudio.

Other than that, I see on the page that you linked that the driver for that interface is not included in the kernel and it has to be installed manually. The procedure was updated in September, just make sure you have the latest version.

Holden

harmenl
Posts: 1
Joined: Thu Dec 21, 2017 1:58 pm

Re: New cli voice chat application, testers needed!

Thu Dec 21, 2017 2:04 pm

Hee,

I tried using your application for my project, but I am still learning a lot about Linux and RPi. One thing I couldn't figure out is this step:
- Configure libopus with ./configure --enable-fixed-point to select the fixed-point implementation and enable the assembly optimizations.
Since i can't find a configure file for it?

And when I run the application now it keeps saying: [alsa] Cannot set sample rate (Invalid argument)

I am using a usb headset connected to the Pi, the headset works when I uses Mumble but I rather use Seren.

If you have any ideas how to fix this pls let me know.

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

Re: New cli voice chat application, testers needed!

Fri Dec 22, 2017 3:05 pm

harmenl wrote:
Thu Dec 21, 2017 2:04 pm
Hee,

I tried using your application for my project, but I am still learning a lot about Linux and RPi. One thing I couldn't figure out is this step:
- Configure libopus with ./configure --enable-fixed-point to select the fixed-point implementation and enable the assembly optimizations.
Since i can't find a configure file for it?
You should not need to perform that step (it is only valid if you compile libopus from the sources). Just do a 'sudo apt-get install libopus-dev' and you will have everything you need.
And when I run the application now it keeps saying: [alsa] Cannot set sample rate (Invalid argument)
It looks like your audio card does not support 48kHz sample rate. Try to run seren with '-v -v' to get more information. Also, you could try -d plughw:X where X is 0 or 1 depending on which card you are using.

Holden

tegarrukmana
Posts: 2
Joined: Sun Feb 11, 2018 6:59 am

Re: New cli voice chat application, testers needed!

Sun Feb 11, 2018 7:07 am

Hi
I was use this voice intercom (seren) to my RPi3 model B, and it great!
And i will ask when i use autoaccept i need ringtone call will ringing once. How i can it ? Thanks
Sorry for my bad english, i’m from indonesia

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 8 guests