pydub
pydub copied to clipboard
play audio from remote file
Steps to reproduce
from pydub import AudioSegment
from pydub.playback import play
sound = AudioSegment.from_file("http://www.nch.com.au/acm/8k16bitpcm.wav", "wav")
play(sound)
Expected behavior
Load audio from remote file.
Actual behavior
FileNotFoundError: [Errno 2] No such file or directory
Your System configuration
- Python version: 3.10.8
- Pydub version: 025.1
- ffmpeg or avlib?:
- ffmpeg/avlib version:
Is there an audio file you can include to help us reproduce?
remote file here
Seems like a duplicate of #56. I don't think pydub offers this functionality.
Thanks, I'll go with this workaround then!