Comments (5)
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.
Yes. I already have all of them. I reinstalled vlc, but nothing happens.
from beepr.
Hmmm, ok then I would be super grateful if you would try out the following to try figure out where things go wrong:
- Try running
beepr::beep()
in an R session started from the terminal. (So not Rstudio). - 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.
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.
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:
- Fix paplay so that it works.
- Remove paplay so that beepr falls back on using aplay.
Sorry for the annoying solution :)
from beepr.
Related Issues (20)
- beep(0) on RStudio Server HOT 1
- Rscript & beepr HOT 1
- Beep on error HOT 3
- beepr with RStudio server? HOT 1
- Multiple calls crash R/Rstudio HOT 3
- WISH: beep("none") and beep(sound = -1) HOT 2
- Add URL and BugReports to DESCRIPTION HOT 1
- Feature request: Make sound play when finished knitting HOT 2
- Project says GPL-3.0 license, but includes sounds from video games HOT 1
- Soundbites echo at the end HOT 1
- RStudio Server Support?
- Some of the sounds have a stutter HOT 2
- Sound request: old Windows "tada" and "critical stop" sounds HOT 1
- Rstudio Jobs and beepR HOT 1
- paplay not working with Ubuntu 20.04 HOT 1
- Add URL and BugReports to DESCRIPTION HOT 1
- BUG: MS Windows requires download.file(..., mode = "wb") HOT 1
- WISH: Make package lightweight by dropping dependency on 'stringr' HOT 1
- beepr crashes R on Windows 10 & 11 machines HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beepr.