I want to read a microphone (class 1 from NTi), which is connected to auxiliary power source (Phantom 48V power supply) and then the output is teed through it. The sensor has a XLR connector and I got a XLR to USB cable and connected it Pi 4.
It shows under /dev/hidraw3. I don't know how to read hidraw and I could barely find any information on internet about it.
lsusb shows this for the mic:
Bus 001 Device 006: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
ls - l shows this:
crw------- 1 root root 244, 3 Mar 1 14:09 /dev/hidraw3
I am able to change the permission and at first I thought its a serial port and tried reading it with a serial read script but it throws error. I found that this is a completely different connection and not serial.
I am wondering can I somehow read this microphone as a serial device on Pi, maybe with a usb to serial converter or writing a script for that? Is that even possible or the sensor output itself is not serial? Any guidance regarding this is helpful.
Edit 1: I tried to use it on windows, it records voice. Then, I thought of trying it on raspberry for voice recording and to my surprise, it is able to record voice on pi i.e. it is being read as an audio device.
cat /dev/hidraw3
and make a sound ... see if anything happens