pydub icon indicating copy to clipboard operation
pydub copied to clipboard

play audio from remote file

Open anna-charlotte opened this issue 2 years ago • 2 comments

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

anna-charlotte avatar Feb 13 '23 14:02 anna-charlotte

Seems like a duplicate of #56. I don't think pydub offers this functionality.

hay avatar Feb 17 '23 15:02 hay

Thanks, I'll go with this workaround then!

anna-charlotte avatar Feb 17 '23 16:02 anna-charlotte