0
$\begingroup$

I need to burn an audio file received from a computer sound card. But in the new version of the gnu radio, I found that the "Wav File Sink" and "Wav File Source" blocks were gone. Tell me, how can I write to the WAV file now?

enter image description here

I am using the graph as in the picture, but the recorded file cannot be opened by the audio player: I get the error "The file cannot be played. The file format may not be supported, the file extension is incorrect, or the file is damaged". In this case, in the "file sink" block, I manually wrote the file extension ".wav"

$\endgroup$
6
  • 2
    $\begingroup$ They're not gone. How did you install GNU Radio? You probably are missing the libsndfile dependency. $\endgroup$ – Marcus Müller Mar 8 at 14:05
  • $\begingroup$ Downloaded from here gcndevelopment.com/gnuradio/downloads.htm. Perhaps you `re right. How to add this dependency? $\endgroup$ – Антон Mar 8 at 14:35
  • $\begingroup$ What error occurs? $\endgroup$ – Phil Frost - W8II Mar 8 at 20:14
  • $\begingroup$ "The file cannot be played. The file format may not be supported, the file extension is incorrect, or the file is damaged." $\endgroup$ – Антон Mar 9 at 2:43
  • 2
    $\begingroup$ @Антон you can't just write the raw data to a file (using a File Sink), attach .wav to the filename, and expect it to be a valid wav file. That's not how file formats work. $\endgroup$ – Marcus Müller Mar 10 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.