Coder Social home page Coder Social logo

Can't play beepR in Arch Linux about beepr HOT 5 CLOSED

rasmusab avatar rasmusab commented on July 28, 2024
Can't play beepR in Arch Linux

from beepr.

Comments (5)

rasmusab avatar rasmusab commented on July 28, 2024

Do you have any of the following programs available on the command line?

paplay
aplay
vlc

If no, does beepr work if you install vlc (like this, I think: pacman -S vlc)?

from beepr.

marcofaga avatar marcofaga commented on July 28, 2024

Yes. I already have all of them. I reinstalled vlc, but nothing happens.

from beepr.

rasmusab avatar rasmusab commented on July 28, 2024

Hmmm, ok then I would be super grateful if you would try out the following to try figure out where things go wrong:

  1. Try running beepr::beep() in an R session started from the terminal. (So not Rstudio).
  2. Try running the following commands in an R session:
fname <- system.file("sounds/microwave_ping_mono.wav", package = "beepr")
system(paste0("aplay --buffer-time=48000 -N -q ", fname))
system(paste0("paplay  ", fname))
system(paste0("vlc -Idummy --no-loop --no-repeat --playlist-autostart --no-media-library --play-and-exit  ", fname))

Did any of the approaches above work?

from beepr.

marcofaga avatar marcofaga commented on July 28, 2024

Hi!!

The aplay method works well.

With vlc method I can hear the beep, but returns the message:

lcpulse audio output error: PulseAudio server connection failure: Connection refused
[000055cc345120f0] dummy interface: using the dummy interface module...
[000055cc34441190] main playlist: end of playlist, exiting

The paplay method doesn't return any sound and show the message:

Connection failure: Connection refused
pa_context_connect() failed: Connection refused

The beep function still not working.

from beepr.

rasmusab avatar rasmusab commented on July 28, 2024

beepr tries the methods in this order: paplay, aplay and finally vlc. If any of these three programs are in your path it will be used. As you have paplay installed, but it doesn't work for you, then beepr will use it and you'll get no sound. You have two ways you can get beepr working:

  1. Fix paplay so that it works.
  2. Remove paplay so that beepr falls back on using aplay.

Sorry for the annoying solution :)

from beepr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.