I am trying to convert an uploaded video file to audio(mp3)
I tried this code from your comments
f = st.file_uploader("Upload file") tfile = tempfile.NamedTemporaryFile(delete=False) tfile.write(f.read())
When I do this (1)
Or this (2)
But I am facing this error (1)
'_io.BufferedRandom' object has no attribute 'audio'
'str' object has no attribute 'audio'