f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.72k stars 420 forks source link

FileInput extremely distorted audio with WAV #2165

Closed Degamisu closed 1 week ago

Degamisu commented 1 week ago

I am not sure how to work the FileInput with WAVs, since I don't know how to convert WAV -> SDRIQ. So I tried loading up a sample song to see it, used an AM demodulator, and it sounds very distorted. I am using a 16-bit Generic PCM file at 11.025k. the length is 3:11.406.

any help? (I am also not sure how to record the audio and send it)

Degamisu commented 1 week ago

Figured out how to record. So here is the audio file

Distorted_2024-06-12T20_42_21_829.zip

srcejon commented 1 week ago

FileInput can read .wavs directly - but it needs to be a .wav containing IQ samples. What does your .wav contain?

Degamisu commented 1 week ago

oh. The WAV contains a japanese song, and it is not an IQ sample. How do I convert it? thats definitely the issue.

srcejon commented 1 week ago

I'm not sure what you are trying to do.

If you want to hear audio output from AM Demodulator - then the FileInput needs to contain IQ samples of an audio signal that has been AM Modulated. To do that in SDRangel, you could use FileOutput device and the AM Modulator.

Degamisu commented 1 week ago

I'm not sure what you are trying to do.

If you want to hear audio output from AM Demodulator - then the FileInput needs to contain IQ samples of an audio signal that has been AM Modulated. To do that in SDRangel, you could use FileOutput device and the AM Modulator.

Oh yes. You are correct. I haven't done this before, mostly just getting NOAA data 😆 . Thanks a lot. I'll try this later.

Degamisu commented 1 week ago

https://groups.io/g/sdrangel/topic/how_to_create_compatible_raw/29291189 This link helped a lot. It works correctly now.