You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to load my byte data that is in binary format into audioread.audio_open, ideally I should directly give path for the audio file but I am trying to decode the mp3 after loading my audio file into tensorflow and there arises the issue.
Complete Trace Back is as Follows:
`TypeError Traceback (most recent call last)
in ()
----> 1 au = aio(buffer)
c:\users\shivam.agarwal\pycharmprojects\audioapi\venv\lib\site-packages\audioread_init_.py in audio_open(path)
78 from . import rawread
79 try:
---> 80 return rawread.RawAudioFile(path)
81 except DecodeError:
82 pass
Hi,
I am trying to load my byte data that is in binary format into audioread.audio_open, ideally I should directly give path for the audio file but I am trying to decode the mp3 after loading my audio file into tensorflow and there arises the issue.
Complete Trace Back is as Follows:
`TypeError Traceback (most recent call last)
in ()
----> 1 au = aio(buffer)
c:\users\shivam.agarwal\pycharmprojects\audioapi\venv\lib\site-packages\audioread_init_.py in audio_open(path)
78 from . import rawread
79 try:
---> 80 return rawread.RawAudioFile(path)
81 except DecodeError:
82 pass
c:\users\shivam.agarwal\pycharmprojects\audioapi\venv\lib\site-packages\audioread\rawread.py in init(self, filename)
59 """
60 def init(self, filename):
---> 61 self._fh = open(filename, 'rb')
62
63 try:
`
I tried to load the bytes as file-like object from SpooledTemporaryFile but this open in 'rb' format keeps giving the issue.
How should I load the bytes as file-like object ?
The text was updated successfully, but these errors were encountered: