Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio is not working #3

Closed
ram535 opened this issue Sep 21, 2020 · 2 comments
Closed

Audio is not working #3

ram535 opened this issue Sep 21, 2020 · 2 comments

Comments

@ram535
Copy link

ram535 commented Sep 21, 2020

When a card with audio is open, just noise comes as audio.

Is this correct (setq anki-audio-player (or (executable-find "aplay") (executable-find "afplay")))?

(executable-find "aplay") is repeat twice.

(executable-find "aplay")
=> "/usr/bin/aplay"

@chenyanming
Copy link
Owner

chenyanming commented Sep 21, 2020

This is an example of finding aplay or afplay as the ank-audio-player in system path, but you have to make sure either one is installed before playing audio. You can use other tools actually, maybe mpv or mplayer:

For example, set with

(setq anki-audio-player "/usr/bin/mpv") ;; full path

or

(setq anki-audio-player "mpv") ;; supposed `mpv` is installed in system path

@ram535
Copy link
Author

ram535 commented Sep 21, 2020

It seems I am kind of blind, I did not see the difference betwwen aplay and afplay.
(setq anki-audio-player "mpv") that works.

@ram535 ram535 closed this as completed Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants