-
Notifications
You must be signed in to change notification settings - Fork 1
respeakerd in pulse mode, module-pipe-source rate:16000? #2
Comments
Hi @pipe89 Have you done the 1.1 part of README ? https://github.com/respeaker/respeakerd#11-prerequisites Although the scripts cover many details underneath, there're two commands very important:
The 2nd error, simply you need reboot the board. |
I have done the first part.
I have tried running the command:
But when I run the respeakerd, I still get the same error.
|
@pipe89 You should have noticed that respeakerd is consuming audio stream from the source
The installation script error, it's new to me. Could you post the output of the following commands?
Thank you. |
Hi,
I've been having issues getting respeakerd to work in pulse mode.
When I load the pipe module and add the default source:
pactl load-module module-pipe-source source_name="respeakerd_output" format=s16le rate=16000 channels=1
pactl set-default-source respeakerd_output
I get this error:
connected to fifo file: /tmp/music.input
(39ms)INFO -- pulseaudio context connecting... [pulse_collector_node.cc:317]
(40ms)DEBUG -- context state: 1 [pulse_collector_node.cc:328]
(41ms)DEBUG -- context state: 2 [pulse_collector_node.cc:328]
(42ms)DEBUG -- context state: 2 [pulse_collector_node.cc:328]
(43ms)DEBUG -- context state: 4 [pulse_collector_node.cc:328]
(43ms)INFO -- pulseaudio context connected to the server. [pulse_collector_node.cc:341]
(43ms)INFO -- The target source name: default [pulse_collector_node.cc:344]
(44ms)INFO -- The source's original info: name: respeakerd_output, rate: 16000, format: s16le, channels:1 [pulse_collector_node.cc:372]
(44ms)ERROR -- PulseCollectorNode the sample rate can not be negotiated, it's fixed to 48000 for now! [pulse_collector_node.cc:381]
(44ms)ERROR -- PulseCollectorNode it's for bypassing the resamplers inside PulseAudio since we have builtin resampler in this node. [pulse_collector_node.cc:382]
(44ms)ERROR -- PulseCollectorNode please configure PulseAudio to work at a default 48000 sample rate. [pulse_collector_node.cc:383]
Assertion 'pa_atomic_load(&(s)->_ref) >= 1' failed at pulse/stream.c:320, function pa_stream_unref(). Aborting.
Aborted
When I change the code to:
pactl load-module module-pipe-source source_name="respeakerd_output" format=s16le rate=48000 channels=1
I get this error:
connected to fifo file: /tmp/music.input
(39ms)INFO -- pulseaudio context connecting... [pulse_collector_node.cc:317]
(40ms)DEBUG -- context state: 1 [pulse_collector_node.cc:328]
(42ms)DEBUG -- context state: 2 [pulse_collector_node.cc:328]
(43ms)DEBUG -- context state: 4 [pulse_collector_node.cc:328]
(43ms)INFO -- pulseaudio context connected to the server. [pulse_collector_node.cc:341]
(43ms)INFO -- The target source name: default [pulse_collector_node.cc:344]
(44ms)INFO -- The source's original info: name: respeakerd_output, rate: 48000, format: s16le, channels:1 [pulse_collector_node.cc:372]
(44ms)INFO -- The source's negotiated info: name: respeakerd_output, rate: 48000, format: float32le, channels:1, flat volume: 1 [pulse_collector_node.cc:404]
(44ms)INFO -- Initialize RingBuffer successed. [pulse_collector_node.cc:426]
(46ms)DEBUG -- record stream state: 1 [pulse_collector_node.cc:482]
(56ms)DEBUG -- record stream state: 2 [pulse_collector_node.cc:482]
(57ms)INFO -- Connected to PulseAudio server. [pulse_collector_node.cc:493]
(57ms)DEBUG -- PulseCollectorNode input: channels 1 rate 48000, output: channels 8 rate 16000 [pulse_collector_node.cc:504]
(57ms)INFO -- PulseCollectorNode thread started. [pulse_collector_node.cc:506]
Failed to setschedparam: Operation not permitted
(59ms)INFO -- PulseCollectorNode thread joined. [pulse_collector_node.cc:635]
Can not start the respeaker node chain.
Segmentation fault
How can I get respeakerd to work in pulse mode?
Thank you for your time!
The text was updated successfully, but these errors were encountered: