#did you install mpv try adding the
1 messages · Page 1 of 1 (latest)
To add a directory to a PATH environment variable in Windows, you can use GUI or the command line by running “set Path=%Path%;” command.
just follow this guide, using the directory where you installed mpv
path already added
C:\Users\Admin>mpv
mpv 0.35.0-407-g959ef843 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Sun May 28 12:30:13 2023
libplacebo version: v5.264.0-264-g20d63f7
FFmpeg version: N-110790-ge8e486332
FFmpeg library versions:
libavutil 58.9.100
libavcodec 60.14.101
libavformat 60.5.100
libswscale 7.2.100
libavfilter 9.8.101
libswresample 4.11.100
Usage: mpv [options] [url|path/]filename
Basic options:
--start=<time> seek to given (percent, seconds, or hh:mm:ss) position
--no-audio do not play sound
--no-video do not play video
--fs fullscreen playback
--sub-file=<file> specify subtitle file to use
--playlist=<file> specify playlist file
--list-options list all mpv options
--h=<string> print options which contain the given string in their name
when i simply type mpv
its give this
still same error
no change
Yes rebooted
Traceback (most recent call last):
File "D:\ElevenLabs\test.py", line 7, in <module>
import mpv
File "C:\Users\Admin.virtualenvs\ElevenLabs-zG-NPETf\lib\site-packages\mpv.py", line
38, in <module>
raise OSError('Cannot find mpv-1.dll or mpv-2.dll in your system %PATH%. One way to
deal with this is to ship '
OSError: Cannot find mpv-1.dll or mpv-2.dll in your system %PATH%. One way to deal with
this is to ship the dll with your script and put the directory your script is in into %PATH% before "import mpv": os.environ["PATH"] = os.path.dirname(file) + os.pathsep +
os.environ["PATH"] If mpv-1.dll is located elsewhere, you can add that path to os.environ["PATH"].
still showing this
I suggest you make an issue on the repo of the wrapper itself at this point: https://github.com/elevenlabs/elevenlabs-python
if you need a temporary solution, there's my unofficial wrapper that doesn't use mpv/ffmpeg for streaming which should work - https://github.com/lugia19/elevenlabslib (but obviously keep in mind that it's unofficial)
Ok