From: Toru Yagi <yagitohru@yahoo.co.jp>
To: "sox-users@lists.sourceforge.net" <sox-users@lists.sourceforge.net>
Subject: sox can't encode to 16-bit
Date: Thu, 17 Jan 2019 22:41:39 +0900 (JST) [thread overview]
Message-ID: <652273.73317.qm@web102218.mail.kks.yahoo.co.jp> (raw)
Hi all,
I'm trying to record by sox, splitting the input to multiple files:
$ sox --version
sox: SoX v14.4.1
$ rec -c 2 -b 16 -r 48000 -p trim 0 20 |
sox -V3 -c 2 -b 16 -r 48000 -p test.wav trim 0 10 : newfile : restart
I want to record 16-bit wav files, but the files generated are 32-bit ones.
$ soxi test*.wav
Input File : 'test001.wav'
Channels : 2
Sample Rate : 48000
Precision : 32-bit
Duration : 00:00:10.00 = 480000 samples ~ 750 CDDA sectors
File Size : 3.84M
Bit Rate : 3.07M
Sample Encoding: 32-bit Signed Integer PCM
Input File : 'test002.wav'
Channels : 2
Sample Rate : 48000
Precision : 32-bit
Duration : 00:00:10.00 = 480000 samples ~ 750 CDDA sectors
File Size : 3.84M
Bit Rate : 3.07M
Sample Encoding: 32-bit Signed Integer PCM
During recording, I have a message saying:
"rec WARN formats: sox can't encode to 16-bit"
When I record without splitting, I can get 16-bit wav files.
$ rec -c 2 -b 16 -r 48000 test.wav trim 0 20
$ soxi test.wav
Input File : 'test.wav'
Channels : 2
Sample Rate : 48000
Precision : 16-bit
Duration : 00:00:20.00 = 960000 samples ~ 1500 CDDA sectors
File Size : 3.84M
Bit Rate : 1.54M
Sample Encoding: 16-bit Signed Integer PCM
Is there any way to record 16-bit wav files, not 32-bit?
Regards,
--
Toru Yagi
yagitohru@yahoo.co.jp
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
next reply other threads:[~2019-01-17 13:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 13:41 Toru Yagi [this message]
2019-01-18 12:54 ` sox can't encode to 16-bit Måns Rullgård
2019-01-18 14:47 ` Toru Yagi
2019-01-18 21:44 ` Måns Rullgård
2019-01-19 15:58 ` Toru Yagi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-users
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=652273.73317.qm@web102218.mail.kks.yahoo.co.jp \
--to=sox-users@lists.sourceforge.net \
--cc=yagitohru@yahoo.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).