Closed ramakrishnamrkpm closed 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
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