jiaaro / pydub

Manipulate audio with a simple and easy high level interface
http://pydub.com
MIT License
8.98k stars 1.05k forks source link

Pydub import error #782

Closed ramakrishnamrkpm closed 8 months ago

ramakrishnamrkpm commented 8 months ago

Python version: 3.11.0b4

I am trying to set a custom directory path as I am facing issues with permissions related to default system temporary file path. For that, I've used the following code snippet:

from pydub import AudioSegment from pydub.utils import set_setting

set_setting('temp_dir', 'path\to\temp_dir') audio = AudioSegment.from_wav("path\to\audio\file") audio.play()

And I am getting an import error ImportError: cannot import name 'set_setting' from 'pydub.utils'

Can someone please help me out on this ? Thanks in advance