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$ Commented Mar 8, 2021 at 14:05
  • $\begingroup$ Downloaded from here gcndevelopment.com/gnuradio/downloads.htm. Perhaps you `re right. How to add this dependency? $\endgroup$
    – Антон
    Commented Mar 8, 2021 at 14:35
  • $\begingroup$ What error occurs? $\endgroup$ Commented Mar 8, 2021 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$
    – Антон
    Commented Mar 9, 2021 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$ Commented Mar 10, 2021 at 13:08

1 Answer 1

2
$\begingroup$

Although you probably figured out the solution until now, in order to have the Wav File Source/ Sink blocks available you need to make sure to install the libsndfile1-dev dependency.

You should better run: sudo apt install pybind11-dev python3-matplotlib libsndfile1-dev \ pygccxml pyqtgraph libsoapysdr-dev soapysdr-tools , in order to install all the dependencies for the 3.9 version as mentioned here.

$\endgroup$
2
  • $\begingroup$ Hello and welcome to ham.stackexchange.com! Nice first answer! $\endgroup$
    – rclocher3
    Commented Dec 3, 2021 at 0:23
  • 1
    $\begingroup$ Thanks, but I am trying to do this on Windows $\endgroup$
    – Антон
    Commented Dec 4, 2021 at 4:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .