I have a telephony modem (SIM5320EVB) which gives voice data on ttyUSB0 as PCM with 1600 bytes each 100ms.Iam able to see the data on minicom. How to capture the PCM data in linux (i use ubuntu)and hear it live on the fly or atleast save and play the data? Is there any application available or API? If the approach atleast is suggested I will try developing one..
cat /dev/ttyUSB0 > my_cap_file
# make some noise for 5s for example, then hit ^C
then get Audacity and try to open your file with it, trying different input formats. You should be able to hear the sound you produced if you will guess the right format.