janvda / node-red-doorbell

Recognizes the "Rrrring" sound of my doorbell using Node-RED & Edge Impulse and posts a message on my slack channel.
0 stars 0 forks source link

access microphone via pulseaudio #7

Open janvda opened 3 years ago

janvda commented 3 years ago

The idea is to access the microphone via pulseaudio.

This way other services could also access the microphone at the same time.

janvda commented 3 years ago

many attempts:

5 Dec 10:58:17 - [info] [debug:sox-record output2] 
{ payload: 'starting', _msgid: '80818b8e.044c78' }
5 Dec 10:58:17 - [info] [debug:sox-record output2] 
{
  payload: 'ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused\n' +
,
  _msgid: '3a129f28.6ccbc'
}
5 Dec 10:58:17 - [info] [debug:sox-record output2] 
{
  payload: "sox FAIL formats: can't open input  `default': snd_pcm_open error: Connection refused\n",
  _msgid: '3a129f28.6ccbc'
}
5 Dec 10:58:17 - [info] [debug:sox-record output2] 
{ payload: 'complete', _msgid: '6a36979.599db68' }