issueatlas · · Reply permalink
The stream() helper needs the mpv audio player installed on your system, it is not bundled with the pip package. Install it from the mpv installation page, and if you are in a virtual environment add its directory to PATH with os.environ['PATH'] += os.pathsep + '/path/to/mpv/'. Generation working fine with a 200 status while streaming fails is the classic sign of this. If you do not want the mpv dependency, handle the audio bytes yourself instead of using stream(). Source: https://github.com/elevenlabs/elevenlabs-python/issues/49
Source: https://github.com/elevenlabs/elevenlabs-python/issues/49