From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BMilJx014436 for ; Mon, 11 Jan 2010 17:44:47 -0500 Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.13]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BMig4Z032238 for ; Mon, 11 Jan 2010 17:44:42 -0500 Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0BMiQaU005548 for ; Mon, 11 Jan 2010 17:44:27 -0500 Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id o0BMh9ga088982; Mon, 11 Jan 2010 16:43:09 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201001112243.o0BMh9ga088982@dc.cis.okstate.edu> To: Linux for blind general discussion , Terry Klarich Subject: Re: analyze a .wav or .mp3 file Date: Mon, 11 Jan 2010 16:43:09 -0600 From: Martin McCormick X-RedHat-Spam-Score: -2 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.13 X-loop: blinux-list@redhat.com X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: Linux for blind general discussion List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 22:44:48 -0000 Terry Klarich writes: > I would like to see if anyone has an idea how to analyze a wav or mp3 > file in a shell script to see if there is any audio present; > or, it is a blank file. My thanks to someone a couple of yers ago who suggested this when I asked a similar question. It is slightly inaccurate as to the time of mp3 files but it failry close. #! /bin/sh sox $1 -e stat I believe it will handle several formats of files. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group