I need to create a lot of fairly-short audio files from the
concatenation of a lot of even shorter audio files. I'd like to control
that from a Perl script. The audio files would presumably be AIFF or
WAV files, preferable AIFF.
Do any of you know of Perl commands to accomplish this? Specifically,
* A call to create and open a new, empty AIFF or WAV file,
* A call to append onto the end of that open audio file the audio
content of an existing non-empty audio file, and
* A call to close the created concatenation file.
Thanks for the ideas!
--
(Preferably reply to the newsgroup, please. If you reply by Email, I
will sincerely try to receive your message, but it will probably get
buried in spam.) 4 5976
Gary Morrison wrote: I need to create a lot of fairly-short audio files from the concatenation of a lot of even shorter audio files. I'd like to control that from a Perl script. The audio files would presumably be AIFF or WAV files, preferable AIFF.
Do any of you know of Perl commands to accomplish this? Specifically, * A call to create and open a new, empty AIFF or WAV file, * A call to append onto the end of that open audio file the audio content of an existing non-empty audio file, and * A call to close the created concatenation file.
Thanks for the ideas!
Try this: http://search.cpan.org/~taiy/Audio-SoundFile-0.15/
Ximinez
--
Our three weapons are fear, surprise, and ruthless efficiency...
and an almost fanatical devotion to the Pope.... http://www.ai.mit.edu/people/paulfitz/spanish/t1.html
Chel van Gennip wrote: I hope you are using OS X and have some knowledge of the Unix system, as it is convenient for scripting.
"Yes" to both. I've done a bit of Perl scripting on my Sun workstation
at work.
Make a script that, using SOX strips headers and if needed convert to the same samplerate, samplewidth, etc., and outputs raw audio data to stdout. Input this raw datastream in SOX through stdin to generate a WAF or AIIF file. http://sox.sourceforge.net/
Ya know, thinking back a long time ago (I think it was around the time
when MacOS 7 first came out!), I wrote some code code to dork around
with AIFF files. I may be able to resurrect and adapt that code for
doing the actual opening and writing of the AIFF files themselves. If I
can find it, that is!
--
(Preferably reply to the newsgroup, please. If you reply by Email, I
will sincerely try to receive your message, but it will probably get
buried in spam.)
Gary Morrison wrote: Chel van Gennip wrote:
I hope you are using OS X and have some knowledge of the Unix system, as it is convenient for scripting.
"Yes" to both. I've done a bit of Perl scripting on my Sun workstation at work.
Make a script that, using SOX strips headers and if needed convert to the same samplerate, samplewidth, etc., and outputs raw audio data to stdout. Input this raw datastream in SOX through stdin to generate a WAF or AIIF file. http://sox.sourceforge.net/
Ya know, thinking back a long time ago (I think it was around the time when MacOS 7 first came out!), I wrote some code code to dork around with AIFF files. I may be able to resurrect and adapt that code for doing the actual opening and writing of the AIFF files themselves. If I can find it, that is!
Yeah, the sox stuff seems to be able to do almost anything. The syntax
learning curve is a bit steep, though, as I recall from previous
experiments.
Ximinez
--
Our three weapons are fear, surprise, and ruthless efficiency...
and an almost fanatical devotion to the Pope.... http://www.ai.mit.edu/people/paulfitz/spanish/t1.html
The Spanish Inquisition wrote: Yeah, the sox stuff seems to be able to do almost anything. The syntax learning curve is a bit steep, though, as I recall from previous experiments.
I'll start with that. Thanks.
--
(Preferably reply to the newsgroup, please. If you reply by Email, I
will sincerely try to receive your message, but it will probably get
buried in spam.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave Benjamin |
last post by:
Guido gave a good, long interview, available at IT Conversations, as was
recently announced by Dr. Dobb's Python-URL! The audio clips are available
here:
...
|
by: Rajesh Kapur |
last post by:
Hello All,
We are building an application that will dynamically choose and pre-pend
short underwriting messages to the audio streamed over the web. We will use
SMIL files. We need to decide if...
|
by: fuliopen |
last post by:
I like to create some audio files for my web site. These are all
language files to help the visitor learn a foreign language. There is
no music.
As far as I know, I can create three types of...
|
by: ViperCB |
last post by:
Hello from a newbie,
I am trying to do some research on an upcoming project that involves reading
in audio files of various formats and using the audio signal as a source of
noise to generate...
|
by: hzgt9b |
last post by:
Using VS2003, VB.NET,
BACKGROUND
I have a window forms based application that will be distributed and
executed directly from CD media. The app contains a TreeView control and a
WebBroswer...
|
by: anil.rita |
last post by:
When the user chooses an AV file to play, based upon the type of file,
I want to use the default installed media player to play it.
I am wondering if this is a good way - any alternatives,...
|
by: peteinglastonbury |
last post by:
I'd be most grateful if someone would help me. I hope I'm in the right forum (apologies if not) - I'm not sure whether my problem is CGI or Javascript related.
I found a script called...
|
by: Dököll |
last post by:
Greetings, Good buddies!
I am for the first time, since I started learning VB, going to build an application I wanted to build for my first son, a language and activities program that will allow...
|
by: TeenaRoz |
last post by:
HI,
I am new to perl and I am trying to write a perl script which does the following: Can someone help me?
Firstly,
There are a set of files named yyy.properties present in many folders in...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
| |