How can I simply convert audio from Devialet to Linux command line? - Printable Version +- Devialet Chat (https://devialetchat.com) +-- Forum: Devialet Chat (https://devialetchat.com/Forum-Devialet-Chat) +--- Forum: The Vinyl Thread (https://devialetchat.com/Forum-The-Vinyl-Thread) +--- Thread: How can I simply convert audio from Devialet to Linux command line? (/Thread-How-can-I-simply-convert-audio-from-Devialet-to-Linux-command-line) Pages:
1
2
|
How can I simply convert audio from Devialet to Linux command line? - ggt667 - 26-Jul-2021 `lsusb -d 28d4:0008` shows me that the Expert Pro is connected to the computer as 1) How can I simply copy audio from Devialet to Linux command line blindly? And in Which format is this? *1 I expect an answer on the form `cat /dev/someDev > ~/currentRecording-$(date).what` RE: How can I simply convert audio from Devialet to Linux command line? - ogs - 26-Jul-2021 The Devialet USB chip is XMOS. USB is a standard and I guess something like arecord will save output from this device. It's most likely PCM. Try it and look at the format of the saved file. RE: How can I simply convert audio from Devialet to Linux command line? - ggt667 - 27-Jul-2021 In which gives me: Code: $ arecord -L | tail -n 9 Which in turn made me try the following: Code: $ arecord -d 10 -D usbstream:CARD=E20 --disable-resample --disable-format -t raw output.raw This gave me no error and empty output( 15 MB of zeroes ) Code: $ arecord -d 10 -D default -f S32_LE -r192000 -c 2 -t raw output.raw The entire file has zeroes only; minor snippet below, I can hear music from the turntable through the Devialet Expert Pro, so this must be the wrong `-D`? I also tried `default:0`, `default:1`, `default:2`, as individual values for `-D` none of those options suffixed `:[0-9]` work. Code: 0025eda0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ This works to a certain extent Code: arecord -d 10 -D sysdefault:CARD=E20 -f S32_LE -r192000 -c 2 -t raw output.raw Code: 005088d0: 0000 5cf6 0000 9cf7 0000 04f7 0000 1ef8 ..\............. Code: $ arecord -d 10 -D sysdefault:CARD=E20 -f DSD_U32_LE -r192000 -c 2 -t raw output.raw How unprocessed is it possible to tap this information? RE: How can I simply convert audio from Devialet to Linux command line? - thumb5 - 27-Jul-2021 How about using Audacity as a first step to record from the Devialet? It might be able to work out the format automatically and then tell you what it is. RE: How can I simply convert audio from Devialet to Linux command line? - ogs - 27-Jul-2021 You can also look in /proc/asound, maybe /proc/asound/card0/pcm0c/info while playing and see if it displays a sample rate and other information EDIT: cat /proc/asound/card0/stream0 may be better... RE: How can I simply convert audio from Devialet to Linux command line? - ggt667 - 28-Jul-2021 (27-Jul-2021, 18:25)thumb5 Wrote: How about using Audacity as a first step to record from the Devialet? It might be able to work out the format automatically and then tell you what it is. It imports quite fine using Audacity -> File -> Import Raw( with these specs: Signed 32 bit Little Endian, Rate 192000 Hz, Stereo, ) I just find it strange that every 2 words always is 0x0000 and the opposite 2 words of the same long word contains data. This however does not explain why there is 16 bits of data within the 32 bits available, when there should be 24 bits spent out of those 32. According to: /proc/asound/card2/stream0 Format: S32_LE, Channels: 2, Rates: 44100, 48000, 88200, 96000, 176400, 192000, Bits: 24 In other words I would expect some data where I put the Xs in the below example; or byte swapped? as BE and LE are no longer part of my active vocabulary: XX00 or 00XX Code: 00508970: 00XX 49f3 00XX fdf2 00XX c7f2 00XX 7cf2 ................ RE: How can I simply convert audio from Devialet to Linux command line? - ggt667 - 28-Jul-2021 (27-Jul-2021, 20:31)ogs Wrote: You can also look in /proc/asound, maybe /proc/asound/card0/pcm0c/info while playing and see if it displays a sample rate and other information Code: $ find /proc/asound/ -iname E20 Code: $ exa -T /proc/asound/card2 Code: $ cat /proc/asound/card2/stream0 RE: How can I simply convert audio from Devialet to Linux command line? - ogs - 29-Jul-2021 Did you play vinyl while checking this? Status is Stop so nothing is transferred... RE: How can I simply convert audio from Devialet to Linux command line? - ggt667 - 29-Jul-2021 (29-Jul-2021, 07:53)ogs Wrote: Did you play vinyl while checking this? Status is Stop so nothing is transferred... Yes, the music played and when I record using `arecord -d 10 -D default -f S32_LE -r192000 -c 2 -t raw output.raw` and it records as described 16 bits out of 32 contains the expected music, the 8 bits are missing; while 24 announced - 16 recorded in the 32 bit file as pr this example: Code: 005088d0: 0000 5cf6 0000 9cf7 0000 04f7 0000 1ef8 ..\............. for 24 bit I expect values in the range: 0x00000000 through 0x00ffffff as S24 recorded in S32 space. RE: How can I simply convert audio from Devialet to Linux command line? - thumb5 - 29-Jul-2021 (29-Jul-2021, 10:24)ggt667 Wrote: ...looks like S16 casted to S32 To me it looks like it's a 16-bit value zero-extended to 32 bits, not sign-extended. |