ulaw stream input

61 views
Skip to first unread message

Aleksandr Vest

unread,
Feb 1, 2022, 12:18:36 PM2/1/22
to librosa
Hi all! 
Is it possible to configure librosa to receive an audio stream in ulaw format?



Brian McFee

unread,
Feb 1, 2022, 2:46:23 PM2/1/22
to librosa
No configuration should be necessary here, as u-law is supported by libsndfile.  It ought to work automatically, though I haven't tested it specifically.

Aleksandr Vest

unread,
Feb 2, 2022, 2:11:37 AM2/2/22
to librosa
but i get an error when loading ulaw file:

photo_2022-02-02_10-57-26.jpg

 
and here is attached ulaw sample file

and audioread method also did not work:
photo_2022-02-02_11-03-26.jpg
вторник, 1 февраля 2022 г. в 23:46:23 UTC+4, Brian McFee:
1111.ulaw

Brian McFee

unread,
Feb 2, 2022, 9:21:25 AM2/2/22
to librosa
It looks like soundfile doesn't recognize your file format.  For what it's worth, neither does sox:

$ soxi 1111.ulaw
soxi FAIL formats: no handler for file extension `ulaw'

I think you're best off taking this to the libsndfile people, as it's well out of scope for librosa.
Reply all
Reply to author
Forward
0 new messages