我的錯誤訊息長這樣
D:\PythonEditVideo>python play.py
<pydub.audio_segment.AudioSegment object at 0x01AEEA30>
Traceback (most recent call last):
File "play.py", line 6, in <module>
play(sound)
File "C:\Python37-32\lib\site-packages\pydub\playback.py", line 71, in play
_play_with_ffplay(audio_segment)
File "C:\Python37-32\lib\site-packages\pydub\playback.py", line 15, in _play_with_ffplay
seg.export(f.name, "wav")
File "C:\Python37-32\lib\site-packages\pydub\audio_segment.py", line 867, in export
out_f, _ = _fd_or_path_or_tempfile(out_f, 'wb+')
File "C:\Python37-32\lib\site-packages\pydub\utils.py", line 60, in _fd_or_path_or_tempfile
fd = open(fd, mode=mode)
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\win10\\AppData\\Local\\Temp\\tmpf68zi_mn.wav'
我目前已經嘗試過
安裝pydub
安裝FFmpeg
把FFmpeg加進環境變數
安裝simpleaudio
安裝pyaudio(但是安裝失敗)
用系統管理員身分開啟終端機
請問要怎麼解決這個問題呢?