Converting video to mp3 in opencv

Hi Randy,
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)

When I do this (1)"sample.mp3")

Or this (2)"sample.mp3")

But I am facing this error (1)

'_io.BufferedRandom' object has no attribute 'audio'


'str' object has no attribute 'audio'