discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] wav file source question


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] wav file source question
Date: Tue, 09 Jun 2015 22:04:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hi fffdddoo (is that really the name by which we should address you?),

I'm guessing you try to save audio directly from the audio source to a
wav file, right?

So, my blind guess is that Baokum wrongly configured the audio source
and simply nothing came out of it.
For example, no soundcard normally uses a sampling rate of 32kHz. A
typical rate is 44.1kHz.

You might want to check your console output for errors. Most of the
time, the audio sink complains about things like the device name not
working or something else going wrong; this all depends very much on
which operating system you use GNU Radio.
Do you get any errors?

Of course, when using a file_sink you don't generate a wav file, that's
why we have the WAV sink :)

Best regards,
Marcus

On 06/09/2015 09:34 PM, fffdddooo wrote:
> Well. I read the workaround. The problem is if you use file source and file
> sink instead of wav file source and wav file sink, you are not generating a
> wav file. You can name it *.wav, but it isn't a wav file at all.
> What I want to do is generating a wav file wich can be playd with any wav
> player (that I can do with wav file sink) and been able to use it again in
> gnu radio (wich does not work with file wav file source).  
> I've tried 8 and 16 bits and different data rate 
>
>
>
>
>
> Marcus Müller-3 wrote
>> Hi fffdddooo,
>>
>> Baokum Liu asked that two years ago. Some things have changed since
>> then; do you have a question that we might help you answer?
>>
>> Best regards,
>> Marcus
>>
>> On 06/09/2015 08:46 PM, fffdddooo wrote:
>>> Did you find the solution?
>>>
>>> regards
>>>
>>> Baokun Liu wrote
>>>> Hi guys,
>>>>
>>>> I am playing with gnuradio companion. I have a question on wav file.
>>>>
>>>> I play like this first (the samp_rate set to 32k)
>>>>
>>>> *Audio Source ---> Wav File Sink;*
>>>>
>>>> I save the file as test.wav. It sound well.
>>>>
>>>> Then, I play the file back (samp_rate is 32k).
>>>>
>>>> *Wave File Source ---> Audio Sink; *
>>>>
>>>> The error comes as: WAV file does not contain any samples.
>>>>
>>>> Could anyone point out the problem? How could I use the 'wav file
>>>> source'
>>>> block?
>>>>
>>>> Thanks,
>>>>
>>>> Baokun
>>>>
>>>> _______________________________________________
>>>> Discuss-gnuradio mailing list
>>>> Discuss-gnuradio@
>>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://gnuradio.4.n7.nabble.com/wav-file-source-question-tp42578p54103.html
>>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>>
>> Discuss-gnuradio@
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
>
> --
> View this message in context: 
> http://gnuradio.4.n7.nabble.com/wav-file-source-question-tp42578p54105.html
> Sent from the GnuRadio mailing list archive at Nabble.com.
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]