This is my first time asking a question in Stack Overflow. I was trying to convert from wav to mp3 but when I wanted to download pydub it shows a syntax error. What should I do in this situation?
pip download pydub
from pydub import AudioSegment
AudioSegment.converter = "REDACTED.wav"
wav = AudioSegment.from_wav(Path)
wav.export(r"REDACTED.mp3",format="mp3")
pip download pydub ^ SyntaxError: invalid syntax
I expect to make sure that pydub can work after the download and hoping to convert the rest wav files to mp3 automatically without any websites.
Oh I see now. you are trying to download pip download pydub. Instead execute the code in the terminal as:
pip install pydub
if you are using colab: !pip install pydub