10 bit, 12 kHz uncompressed no header output

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
freepiston
Posts: 6
Joined: Mon May 15, 2017 12:49 pm
Operating System: Windows 7

10 bit, 12 kHz uncompressed no header output

Post by freepiston » Mon May 15, 2017 12:56 pm

Windows 7
Audacity 2.1.3

I cannot figure how to get a non-compressed file output in 10 bit format with sample rate of 12kHz and with no header. Is it possible using Audacity?

Thanks.

DVDdoug
Forum Crew
Posts: 9287
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: 10 bit, 12 kHz uncompressed no header output

Post by DVDdoug » Mon May 15, 2017 2:07 pm

I don't believe so, since computer files are stored in bytes (8-bits) so audio files (all files) are 8, 16, 24, 32-bits, etc.

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 10 bit, 12 kHz uncompressed no header output

Post by steve » Mon May 15, 2017 2:09 pm

Audacity does not have built-in support for 10-bit export.
That's a very strange format - what's it for?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: 10 bit, 12 kHz uncompressed no header output

Post by Gale Andrews » Mon May 15, 2017 2:18 pm

Is this something your science teacher asked for? Might they have meant 8-bit?

Or do you mean NICAM?

Do you have an application that can play the file you want to export?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

freepiston
Posts: 6
Joined: Mon May 15, 2017 12:49 pm
Operating System: Windows 7

Re: 10 bit, 12 kHz uncompressed no header output

Post by freepiston » Mon May 15, 2017 6:03 pm

Oh to be young enough to have a teacher!

I want to program an Atmel 8 bit processor in 10 or 12 bit format with sample rate of 12kHz. I can make the digitising circuit but though I could cut corners by using a Windows application.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: 10 bit, 12 kHz uncompressed no header output

Post by Gale Andrews » Mon May 15, 2017 6:18 pm

I guess you could try SoX with the -b parameter: http://sox.sourceforge.net/sox.html. It is a command-line application.

Downloads are at https://sourceforge.net/projects/sox/files/sox/.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 10 bit, 12 kHz uncompressed no header output

Post by steve » Mon May 15, 2017 6:48 pm

12 kHz sample rate is simple enough. Just set the "Project Rate" (lower left corner of the main Audacity window) to 12000, then export as WAV.

For 10 or 12 bit, you can export from Audacity as 16-bit WAV, and ignore 6 or 4 LSBs when you read the data into your device.
Gale Andrews wrote:I guess you could try SoX with the -b parameter: http://sox.sourceforge.net/sox.html. It is a command-line application.
As far as I'm aware, neither SoX or FFmpeg support 10-bit encoding.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: 10 bit, 12 kHz uncompressed no header output

Post by Gale Andrews » Mon May 15, 2017 7:42 pm

steve wrote:For 10 or 12 bit, you can export from Audacity as 16-bit WAV, and ignore 6 or 4 LSBs when you read the data into your device.
I thought of that, or possibly manipulation in MATLAB, but are there universal commands for ignoring least significant bits (LSBs)?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

DVDdoug
Forum Crew
Posts: 9287
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: 10 bit, 12 kHz uncompressed no header output

Post by DVDdoug » Mon May 15, 2017 8:02 pm

Actually, if you export to RAW you'll get a file without a header.

Export Audio
Save as type: Other uncompressed files
Header: Raw (Header-Less)
Encoding: Signed 16-bit PCM

Then, ignore the "extra" LSBs in your Atmel code.

freepiston
Posts: 6
Joined: Mon May 15, 2017 12:49 pm
Operating System: Windows 7

Re: 10 bit, 12 kHz uncompressed no header output

Post by freepiston » Mon May 15, 2017 8:05 pm

Thanks all for your quick and helpful advice. Steve, I'll go with your simple solution. :D

Post Reply