sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Re: (no subject)
  2007-07-25 17:02 ` [LAU] " Kevin Cosgrove
@ 2007-07-25 17:31   ` David Graff
  2007-07-25 17:34     ` Vijay Gaur
  2007-07-25 17:36   ` Rafal Maszkowski
  2007-07-25 17:37   ` David Graff
  2 siblings, 1 reply; 14+ messages in thread
From: David Graff @ 2007-07-25 17:31 UTC (permalink / raw)
  To: sox-users; +Cc: graff


kevinc@doink.com said:
> Is there a program which will convert a sound file into a text (.txt)
> or comma separated value (.csv) file?  I'm thinking that would be a
> good route to go in order to import the data from a sound file into a
> math manipulation program, e.g. octave, maxima, Matlab, Mathcad,
> Gnumeric, etc.

Someone else will probably know of existing tools for importing audio 
sample data into one or another math package, but if I had to convert 
from binary to ascii numerics, I'd probably use sox to convert the 
input file to a raw single-channel output of appropriate endian-ness, 
and run a perl one-liner to reformat the binary numbers into strings; 
e.g.:

 sox 1chn_pcm.wav -t raw - | 
  perl -e 'while(read(STDIN,$_,2)==2){printf("%d\n",unpack("v",$_))}' > 1ch_pcm.txt


(You probably want to elaborate the perl script to produce a different
output format, depending on what your math package wants as input.)

	Dave Graff



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: (no subject)
  2007-07-25 17:31   ` David Graff
@ 2007-07-25 17:34     ` Vijay Gaur
  0 siblings, 0 replies; 14+ messages in thread
From: Vijay Gaur @ 2007-07-25 17:34 UTC (permalink / raw)
  To: sox-users; +Cc: graff


[-- Attachment #1.1: Type: text/plain, Size: 1813 bytes --]

Hi,
  Did anyone used sox to convert mp3 to wav.
  I would greatly appreciate if someone can post me the instructions.
  I need to convert mp3 file to wav(16KHz, 16bit, mono).

Thanks a bunch in advance.
Vijay


On 7/25/07, David Graff <graff@ldc.upenn.edu> wrote:
>
>
> kevinc@doink.com said:
> > Is there a program which will convert a sound file into a text (.txt)
> > or comma separated value (.csv) file?  I'm thinking that would be a
> > good route to go in order to import the data from a sound file into a
> > math manipulation program, e.g. octave, maxima, Matlab, Mathcad,
> > Gnumeric, etc.
>
> Someone else will probably know of existing tools for importing audio
> sample data into one or another math package, but if I had to convert
> from binary to ascii numerics, I'd probably use sox to convert the
> input file to a raw single-channel output of appropriate endian-ness,
> and run a perl one-liner to reformat the binary numbers into strings;
> e.g.:
>
> sox 1chn_pcm.wav -t raw - |
> perl -e 'while(read(STDIN,$_,2)==2){printf("%d\n",unpack("v",$_))}' >
> 1ch_pcm.txt
>
>
> (You probably want to elaborate the perl script to produce a different
> output format, depending on what your math package wants as input.)
>
>        Dave Graff
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>



-- 
Regards,
Vijay Gaur
Do you green?
www.LimeAll.com

[-- Attachment #1.2: Type: text/html, Size: 2609 bytes --]

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: (no subject)
  2007-07-25 17:02 ` [LAU] " Kevin Cosgrove
  2007-07-25 17:31   ` David Graff
@ 2007-07-25 17:36   ` Rafal Maszkowski
  2007-07-25 17:37   ` David Graff
  2 siblings, 0 replies; 14+ messages in thread
From: Rafal Maszkowski @ 2007-07-25 17:36 UTC (permalink / raw)
  To: sox-users; +Cc: linux-audio-user

On Wed, Jul 25, 2007 at 10:02:21AM -0700, Kevin Cosgrove wrote:
> Is there a program which will convert a sound file into a text
> (.txt) or comma separated value (.csv) file?  I'm thinking that

.dat format.

R.
-- 
Jeżeli upadnie cywilizacja zachodnia, to będzie szansa na odbudowę cywilizacji
      chrześcijańskiej. (dr Stanisław Krajski, Radio Maryja, 10 X 2001)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: (no subject)
  2007-07-25 17:02 ` [LAU] " Kevin Cosgrove
  2007-07-25 17:31   ` David Graff
  2007-07-25 17:36   ` Rafal Maszkowski
@ 2007-07-25 17:37   ` David Graff
  2 siblings, 0 replies; 14+ messages in thread
From: David Graff @ 2007-07-25 17:37 UTC (permalink / raw)
  To: sox-users


Sorry -- there was a mistake in that perl script -- it should have been:

  perl -e 'while(read(STDIN,$_,2)==2){printf("%d\n",unpack("s",$_))}'

Note the "s" (for signed short int in native byte order), instead "v"
(unsigned short int in "VAX" (little-endian) byte order) -- the "s"
assumes that you're using a little-endian machine.  If you aren't, use
the "-x" (xinu) option on sox to invert the byte order of ms-wav pcm
files.

	Dave Graff




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2007-11-20 18:49 Daniel Payne
  0 siblings, 0 replies; 14+ messages in thread
From: Daniel Payne @ 2007-11-20 18:49 UTC (permalink / raw)
  To: 'sox-users@lists.sourceforge.net'

I have a requriement to provide a Java based application service to trim and
segment audio files of various formats. SoX seems to have the capabilities I
need, but I have a few questions:

1. Is there a known Java JNI interface to SoX? If not, do you consider it
feasible to create one?

2. If JNI isn't available and I make calls to the program itself, will I run
into any problems by making multiple, concurrent requests?

3. And for the real kicker... What about integrating third-party codecs not
already listed as being supported (such as, say, RealAudio)?

Thanks,
Dan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2009-01-06 20:22 JJENGR
  0 siblings, 0 replies; 14+ messages in thread
From: JJENGR @ 2009-01-06 20:22 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 819 bytes --]


 
SoX Users,
 
I have a serial digital stereo audio bit stream coming in to my PC. The  
digital audio samples are 12 bits/sample at a sample rate of  44.1KSamples/sec.  I 
want to play the audio through using a standard audio  player that would be 
present in most windows PC's (for example the standard  Mirosoft Audio Player). 
To use that player I need to get the audio into some  sort of standard audio 
format.  I will use SoX to do that so my question  is:
 
Can I stream the raw incoming data samples into the SoX converter while  
playing the output of the SoX converter through the audio player? I dont mind a  
short dealy of a few seconds.
 
Thanks in adance for your help

**************New year...new news.  Be the first to know what is making 
headlines. (http://www.aol.com/?ncid=emlcntaolcom00000026)

[-- Attachment #1.2: Type: text/html, Size: 1560 bytes --]

[-- Attachment #2: Type: text/plain, Size: 234 bytes --]

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2009-01-09  9:13 maanu
  0 siblings, 0 replies; 14+ messages in thread
From: maanu @ 2009-01-09  9:13 UTC (permalink / raw)
  To: sox-users

Hello there,

I noticed the following .au support discrepancy while trying 3 sox
versions I've compiled myself on my Ubuntu 8.10.

a) The following command line works well with this given ring.au [1]
(notice: not warning):
 me@machine:/tmp$ ./sox-14.0.1/src/sox /tmp/ring.au /tmp/ring-14.0.1.wav
 me@machine:/tmp$ ./sox-14.1.0/src/sox /tmp/ring.au /tmp/ring-14.1.0.wav
 me@machine:/tmp$ ./sox-14.2.0/src/sox /tmp/ring.au /tmp/ring-14.2.0.wav


b) Same test with another .au file [2]: (notice the warnings with 14.10
and 14.2.0):
 me@machine:/tmp$ ./sox-14.0.1/src/sox /tmp/ringbad.au
 /tmp/ringbad-14.0.1.wav

 me@machine:/tmp$ ./sox-14.1.0/src/sox /tmp/ringbad.au
 /tmp/ringbad-14.1.0.wav
 /tmp/sox-14.1.0/src/.libs/lt-sox au: header size 24 is too small

 me@machine:/tmp$ ./sox-14.2.0/src/sox /tmp/ringbad.au
 /tmp/ringbad-14.2.0.wav
 /tmp/sox-14.2.0/src/.libs/lt-sox au: header size 24 is too small


Despite the warning, the conversion is correctly done, but why this
warning message from 14.1.0 ?
Could the file be wrong (but the header looks good, it is playable, and
no windows or linux audio editors I tried complained) ? 

Note the 3 sox versions have been compiled the same way ("./configure
--without-sndfile --without-flac --without-ogg --without-wavpack
--without-lame --without-mad && make")

Emmanuel.

[1] is located at:
http://src.opensolaris.org/source/xref/bluetooth/bluetooth-gate/usr/src/cmd/audio/samples/au/ring.au
Its header looks good:
          0011 2233 4455 6677 8899 aabb ccdd eeff
00000000: 2e73 6e64 0000 0030 0000 98c7 0000 0001  .snd...0........
00000010: 0000 1f40 0000 0001 6f6e 6520 7269 6e67  ...@....one ring
00000020: 2028 6c6f 6f70 2074 6869 7329 0000 0000   (loop this)....
00000030: f775 645a 5555 5964 f2d7 cac2 bebe c3cc  .udZUUYd........
00000040: e558 443b 3634 363b 476d cab9 b0ad acaf  .XD;646;Gm......
[...]

[2] is not on internet (but I can provide it if required), its header
looks good as well:
          0011 2233 4455 6677 8899 aabb ccdd eeff
00000000: 2e73 6e64 0000 0018 0006 aeb2 0000 0001  .snd............
00000010: 0000 1f40 0000 0001 5756 534f 5054 5755  ...@....WVSOPTWU
00000020: 4f4e 4f56 5953 4c4b 515e 5e4d 4248 c9a6  ONOVYSLKQ^^MBH..
00000030: 968d 8a8a 8d94 a278 2112 0c09 080b 0f1c  .......x!.......
00000040: 3caa 968e 8a8a 8c91 9ec5 2615 0d09 080a  <.........&.....
[...]


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2012-10-29 17:42 Eli Sanders
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Sanders @ 2012-10-29 17:42 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 342 bytes --]


I am using the compand effect and getting a lot of clipping. Does the -G and norm options apply to the input? 
How do I normalize the output and prevent clipping?


sox -G --norm=-3 alien.wav alienout.wav. compand  0.3,1 -90,-90,-70,-70,-60,-20,0,0 -5 0 0.2
sox WARN compand: compand clipped 46934 samples; decrease volume? 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 573 bytes --]

[-- Attachment #2: Type: text/plain, Size: 292 bytes --]

------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2013-06-18 18:54 Paul Arnold
  0 siblings, 0 replies; 14+ messages in thread
From: Paul Arnold @ 2013-06-18 18:54 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 235 bytes --]

I am looking for an autotune function that I can control the parameters of
via a CLI/script. Hence a LADSPA plugin for sox would be fine. Autotalent
and VocProc look promising, but are GUI from what I can make out...? Any
ideas?

Paul

[-- Attachment #1.2: Type: text/html, Size: 373 bytes --]

[-- Attachment #2: Type: text/plain, Size: 184 bytes --]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2014-05-20 14:41 James Spencer
  0 siblings, 0 replies; 14+ messages in thread
From: James Spencer @ 2014-05-20 14:41 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 623 bytes --]

So I am speculating this happens because of using Ogg Vorbis.
I don't know if the effect is intriduced while mixing the
6-channel file (I doubt that), or only when playing it back


AFAICT it is introduced when mixing the 6 channel file (FWIW ffmpeg
exhibits the same behaviour).

In a freshly merged 6 channel file, I've tried remixing the channels into a
different order with the result that both the original LFE channel and the
new one sound "filtered" and have lost data.

Remixing a 7 channel file down to 6 channels also introduces the effect on
the 6th channel.

-- 

-----------------------
James Spencer
p.ota.to

[-- Attachment #1.2: Type: text/html, Size: 1296 bytes --]

[-- Attachment #2: Type: text/plain, Size: 385 bytes --]

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2014-12-27 12:12 paul fellows
  2014-12-28  5:43 ` Eric Wong
  0 siblings, 1 reply; 14+ messages in thread
From: paul fellows @ 2014-12-27 12:12 UTC (permalink / raw)
  To: sox

[-- Attachment #1: Type: text/html, Size: 145 bytes --]

[-- Attachment #2: Type: text/plain, Size: 440 bytes --]

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: (no subject)
  2014-12-27 12:12 paul fellows
@ 2014-12-28  5:43 ` Eric Wong
  0 siblings, 0 replies; 14+ messages in thread
From: Eric Wong @ 2014-12-28  5:43 UTC (permalink / raw)
  To: sox-users

paul fellows <4-werk@gmx.com> wrote:
>  how do i aviod the <=style crap

Disable HTML in your email client and use plain-text instead.
Plain-text is the most compatible with all mail software.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2015-07-11  4:40 urg
  0 siblings, 0 replies; 14+ messages in thread
From: urg @ 2015-07-11  4:40 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #1.2: Type: text/html, Size: 26 bytes --]

[-- Attachment #2: Type: text/plain, Size: 351 bytes --]

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

* (no subject)
@ 2020-05-12 20:45 Jeff Learman
  0 siblings, 0 replies; 14+ messages in thread
From: Jeff Learman @ 2020-05-12 20:45 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 1595 bytes --]

Thanks, that would be perfect!  Also, a flag to print skipped tags, if
there isn't one already.

Please forgive the late reply.  I'd just signed up and you replied so
fast the exploder didn't know me yet!

Jeff


Måns Rullgård writes:
>
> Jeff Learman <jjlearman@...>  writes:
>
>> I noticed that when converting stereo sample files to mono, the 'smpl'
>> chunks (which encode loop information used by sample players), SoX omits
>> the 'smpl' chunk in the output file.
>>
>> For example,
>>
>> sox input.wav -c 1 output.wav
>>
>> sums a stereo input.wav to a mono output.wav. However, the 'smpl' chunk in
>> input.wav is discarded.
>>
>> I have a workaround; I wrote code to extract the smpl chunk and append it
>> to the output. But it would be nice if 'smpl' chunks were supported by
>> default, at least for the easy cases. (I realize it could be difficult or
>> impossible for many cases.)
>>
>> What's the best way to file a bug report?
>
> The smpl chunk isn't part of the official WAV format, so SoX ignores it.
> It's the only reasonable thing to do with unknown chunks. Copying the macross
> to the output is risky since we can't know that the processing didn't
> invalidate them. For example, a chunk referencing specific samples is (likely)
> still relevant after downmixing stereo to mono, whereas resampling to a higher
> or lower rate will obviously make it useless.
>
> The best we can reasonably do
> is add a flag to specify extra chunks topreserve if found in the input. Would
> that be helpful in your case?
>
> -- Måns Rullgård

[-- Attachment #1.2: Type: text/html, Size: 1938 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-05-12 20:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-09  9:13 (no subject) maanu
  -- strict thread matches above, loose matches on Subject: below --
2020-05-12 20:45 Jeff Learman
2015-07-11  4:40 urg
2014-12-27 12:12 paul fellows
2014-12-28  5:43 ` Eric Wong
2014-05-20 14:41 James Spencer
2013-06-18 18:54 Paul Arnold
2012-10-29 17:42 Eli Sanders
2009-01-06 20:22 JJENGR
2007-11-20 18:49 Daniel Payne
     [not found] <kevinc@doink.com>
2007-07-25 17:02 ` [LAU] " Kevin Cosgrove
2007-07-25 17:31   ` David Graff
2007-07-25 17:34     ` Vijay Gaur
2007-07-25 17:36   ` Rafal Maszkowski
2007-07-25 17:37   ` David Graff

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).