question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Audio Setup problem for VLC and SoX - need advice

See original GitHub issue

Your OS (including version) where you are running AlexaPi:

Rapsbian

Your hardware platform and model you are running on:

Rasp pi 3+

Python release (python2 --version):

Python 2.7.13

Description of problem:

I have a problem with audio setup and don't know how to fix it.   
I have tried both vlc and sox and followed the instructions for [PulseAudio](https://github.com/alexa-pi/AlexaPi/wiki/Audio-setup-&-debugging).

With vlc:

[6c6004e0] pulse audio output error: PulseAudio server connection failure: Access denied
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied

[6c6004e0] alsa audio output error: cannot open ALSA device "default": Connection refused
[6c6004e0] core audio output error: Audio output failed
[6c6004e0] core audio output error: The audio device "default" could not be used:
Connection refused.
[6c6004e0] core audio output error: module not functional
[73837a78] core decoder error: failed to create audio output


With sox:

 DEBUG: Error attempting play. sox FAIL formats: can't open output file `default': can not open audio device: Access denied

Same with pulseaudio / alsa

Expected:


Problem-relevant config.yaml entries:

sox
  input_device: "USB PnP Sound Device: Audio (plughw:1,0)"
  output: "pulseaudio"
  output_device: ""
  playback_handler: "sox"


vlc
  input_device: "USB PnP Sound Device: Audio (plughw:1,0)"
  output: "pulse"
  output_device: ""
  playback_handler: "vlc"

Steps to reproduce:

  1. Clean install

Traceback (if applicable):


Additional info:

 http://www.alsa-project.org/db/?f=d9b972e381a285c30c5226566684278ed89b6da8

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shinyonecommented, Jul 19, 2018

Had one last look at the documentation to see if I had missed anything.

If you are running the root override (like on a CHIP or Orange Pi), you also need to add the user root into the pulse-access group: sudo adduser root pulse-access

Ignored it the first time, because I didn’t think is was required…

That seems to have done the trick!

0reactions
EmerickHcommented, Jul 19, 2018

Ok, good to know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Easiest Ways Here! Fix VLC No Sound Problems
Part 2: Top 7 Solutions to VLC No Sound Problems · 1. Turn on Audio/Unmute Audio on VLC · 2. Enable Sound Device...
Read more >
VLC command-line help - VideoLAN Wiki
VLC command-line help for Windows users about VLC media player ... HDMI/SPDIF audio passthrough Change this value if you have issue with HD ......
Read more >
Tips for Fixing VLC Player Has No Sound
The VLC has no sound problem may be caused by an outdated VLC version, which you can fix it by upgrading to the...
Read more >
VLC - Gentoo Wiki
USE flags for media-video/vlc Media player and framework with support for most multimedia files and streaming ; faad, Enable AAC audio decoding library...
Read more >
Error Opening Sound File
Many users prefer SoX, which is free and can be called from the Windows Command Prompt or Mac OS X Terminal. (See installation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found