You are not logged in.

#1 2019-10-02 22:03:00

archlinuxuser154
Member
Registered: 2019-10-02
Posts: 5

[SOLVED] Anki application sound is not working.

Hi, I am using a relatively new archlinux install, and have been able to diagnose and troubleshoot most of the problems I have encountered. Being a fresh linux user I am unsure if this problem is on my end, but here it is:
I use the program Anki to study flashcards, and some of these flashcards come with audio, the audio portion of the application does not seem to be working. It is not listed in the program applications for sound, while others, such as firefox are and provide sound just fine. I am not sure where to start with this problem, any help would be much appreciated.
Apologies for the little amount of information provided, I'm not sure what would help.

Last edited by archlinuxuser154 (2019-10-03 00:30:44)

Offline

#2 2019-10-02 22:07:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Anki application sound is not working.

Check the optional dependencies of the anki package, you will want to install either mpv or mplayer (though apparently prefence should lie with mpv, it is also generally more actively updated)

Offline

#3 2019-10-02 22:24:00

archlinuxuser154
Member
Registered: 2019-10-02
Posts: 5

Re: [SOLVED] Anki application sound is not working.

I have MPV currently installed. How would I enable it, then?

Offline

#4 2019-10-02 23:15:46

archlinuxuser154
Member
Registered: 2019-10-02
Posts: 5

Re: [SOLVED] Anki application sound is not working.

MPV's config seems to be correct. I still do not see anki listed in the Audio Volume > applications tab. Still no output

Offline

#5 2019-10-02 23:28:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Anki application sound is not working.

Terminal output when using anki from a terminal? What does

sudo fuser -v /dev/snd/*

give you? Post the outputs in [ code ][ /code ] tags without the spaces

Offline

#6 2019-10-02 23:50:31

archlinuxuser154
Member
Registered: 2019-10-02
Posts: 5

Re: [SOLVED] Anki application sound is not working.

V1del wrote:

Terminal output when using anki from a terminal? What does

sudo fuser -v /dev/snd/*

give you? Post the outputs in [ code ][ /code ] tags without the spaces

 [tristan@black mpv]$ anki
qt: Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
   QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
   QT_SCREEN_SCALE_FACTORS to set per-screen factors.
   QT_SCALE_FACTOR to set the application global scale factor.

[tristan@black ~]$ sudo fuser -v /dev/snd/*
[sudo] password for tristan: 
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  tristan     960 F.... pulseaudio
                     tristan   248989 F.... speaker-test
                     tristan   266606 F.... speaker-test
                     tristan   267397 F.... speaker-test
                     tristan   267949 F.... speaker-test
                     tristan   271221 F.... speaker-test
/dev/snd/controlC1:  tristan     960 F.... pulseaudio
/dev/snd/controlC2:  tristan     960 F.... pulseaudio
/dev/snd/pcmC0D0p:   tristan   248989 F...m speaker-test
                     tristan   266606 F...m speaker-test
                     tristan   267397 F...m speaker-test
                     tristan   267949 F...m speaker-test
                     tristan   271221 F...m speaker-test
/dev/snd/timer:      tristan   248989 f.... speaker-test
                     tristan   266606 f.... speaker-test
                     tristan   267397 f.... speaker-test
                     tristan   267949 f.... speaker-test
                     tristan   271221 f.... speaker-test

Offline

#7 2019-10-03 00:02:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Anki application sound is not working.

Where are you spawning so many speaker-tests? They will block pulse from accessing your device.

I've installed it now and it works, do you actually actively attempt to listen to something? Anki will only open the mpv stream when audio has to be actively played back (as it uses mpv for this, the relevant audio stream will come from mpv not from anki) I picked a random stack with actual audio and told it to tell me about the solution.

Also please edit your thread title of the initial post and include anki as part of it, so that the title actually defines what application you are having issues with

Offline

#8 2019-10-03 00:27:06

archlinuxuser154
Member
Registered: 2019-10-02
Posts: 5

Re: [SOLVED] Anki application sound is not working.

V1del wrote:

Where are you spawning so many speaker-tests? They will block pulse from accessing your device.

I've installed it now and it works, do you actually actively attempt to listen to something? Anki will only open the mpv stream when audio has to be actively played back (as it uses mpv for this, the relevant audio stream will come from mpv not from anki) I picked a random stack with actual audio and told it to tell me about the solution.

Also please edit your thread title of the initial post and include anki as part of it, so that the title actually defines what application you are having issues with

Tried playing the audio after closing a bunch of firefox windows, noticed mpv Media Player appearing briefly, was able to switch the default program to my headphones and unmuted. Thank you, fixed.

Offline

#9 2019-10-03 00:29:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Anki application sound is not working.

Glad to hear please mark as [SOLVED] by prepending to the title, so that people might find a solution here should they stumble over the same problem

Offline

Board footer

Powered by FluxBB