Re: Wav file generated by sox won't play in Sony recorder

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

 



Peter Shute <pshute@xxxxxxxxxx> writes:

> I'm trying to generate a wav file (96kHz rate) containing just a 30kHz
> tone, and then play it in a Sony PCM-M10 recorder. Are these the
> correct commands:
>
> sox -r 96000 −n 30k.wav synth 60 sine 30000
> sox 30k.wav -c 2 stereo30k.wav
>
> The second command is to create a stereo track, as I'm under the
> impression this recorder can't play mono files. At least that's what
> happens when I try to do the same thing in Audacity.

You can do the same with a single command:

sox -r 96000 -n -c 2 stereo30k.wav synth 60 sine 30000

> When I try to play it in the recorder, it just says "unknown data",
> which is what it says if I try to play a mono file I created in
> Audacity. That makes me think it's the second command that's got the
> problem.

The above commands create a 32-bit WAV file, and the PCM-M10 probably
only supports up to 24 bits.  Setting the output to 24-bit might help:

sox -r 96000 -n -c 2 -b 24 stereo30k.wav synth 60 sine 30000

-- 
Måns Rullgård

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux