#(Mpv Plugin Immersive) Can't load Forvo Audio

8 messages · Page 1 of 1 (latest)

still sluice
#

I'm just getting into sentence mining and I've decided to use the mpv plugin Immersive instead of mpvacious. I'm mostly figured out all the other parts of the setup, but I'm having trouble with it playing the loading the Forvo audio files. It is able to query and display the possible sources from Forvo for any given word, but when I try to play them there's no sound. When I check the console, I get the error shown in the screenshot. The audio doesn't show up either when exporting to Anki.

still sluice
#

(Mpv Plugin Immersive) Can't load Forvo Audio

still sluice
#

Update: Turns out it does properly download the audio file and puts it in Anki, it just can't play it. In fact, no button that is supposed to play Audio in Immersive works

still sluice
#

Update 2: I decided to do some investigating and managed to fix the issue. Since the changelogs of the latest version of Immersive mention "Fix audio preview", I thought perhaps that their fix is what was causing issues.

Therefore, I decided to try downloading the previous version of Immersive, version 1.3, and miraculously, the audio worked!

Now I didn't want to give up the other changes of 1.4, so I dug deeper to see exactly where the problem was. I isolated which part of the scripts files was responsible for playing audio, which turned out to be player.lua. I tried substituting 1.4's player.lua into my script files and sure enough, the audio stopped working again.

This confirmed that player.lua was the problem, so I just compared 1.3's player.lua with 1.4's, and it turns out the only change was adding an extra 0 argument to a command

#

After removing that 0, the audio worked perfectly, even with the 1.4 version of Immersive

#

Maybe that fix was a windows 11 thing? Or maybe an updated version of some library expects an extra argument but mine just never updated? Either way, this is what worked for me