Create a new .wav file from an exisitng .wav file 
Author Message
 Create a new .wav file from an exisitng .wav file

I'm trying to write a small script that will allow me to create a new wav
file by copying/renaming an existing wav file based on the date.

Basically, I have several wav files recorded each saying a specific portion
of a date. For instance, monday.wav simply says "Monday". april.wav says
"April", and so on.

So, based on the computer's date, I want to use these existing wav files to
create 3 new wav files: CurrentDay.wav, CurrentMonth.wav, and
CurrentNumber.wav.

I could then put them into a subroutine I already have that will "speak the
date" correctly all the time... "Today is Monday, February 10th".

It seems like a simple procedure, but I just can't figure it out. Any input
would be greatly appreciated,

Bob Brislin



Sat, 30 Jul 2005 01:24:27 GMT  
 Create a new .wav file from an exisitng .wav file


Mon, 10 Feb 2003 12:24:27 :-

Quote:
>I'm trying to write a small script that will allow me to create a new wav
>file by copying/renaming an existing wav file based on the date.

>Basically, I have several wav files recorded each saying a specific portion
>of a date. For instance, monday.wav simply says "Monday". april.wav says
>"April", and so on.

>So, based on the computer's date, I want to use these existing wav files to
>create 3 new wav files: CurrentDay.wav, CurrentMonth.wav, and
>CurrentNumber.wav.

>I could then put them into a subroutine I already have that will "speak the
>date" correctly all the time... "Today is Monday, February 10th".

Assuming that you boot each day, put a batch file call in autoexec.bat;
or schedule a call for 0000h each day.

        NOWMINUS F1 L4 Eyear L2 B6 Emonth B9 Edate F5 Edow

will (today) put in the Environment YEAR=2003 MONTH=02 DATE=10 DOW=01 ;
and

        NOWMINUS F256 L3 Edow B9 Emonth L2 B6 Edate L4 B13 Eyear

will set DOW=Mon MONTH=Feb DATE=10 YEAR=2003 : it is then easy to copy
files of corresponding names, e.g.   copy %dow%.* CurrDoW.*

NOWMINUS (etc.) via sig line 3 below.

If you have privileges enough in your jscript to write a batch file, you
can write a corresponding set of copy statements; if you have privileges
to copy files directly, then A = new Date().toString().split(" ") and
use the parts.

--

 Web  <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
 PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>.
 Do not Mail News to me.    Before a reply, quote with ">" or "> " (SoRFC1036)



Sat, 30 Jul 2005 06:08:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Create a new .wav file from an existing .wav file based on the date

2. .vbs file to play a .wav if file size does not equal 0

3. Playing a .wav File from a .vbs File

4. embeded wav files

5. Playing a WAV file in VBscript

6. Help Newbie and - wav files

7. Is it possible to Play and close a wav file using Soundrec32.exe

8. Need Help Playing WAV File

9. Wav file Question

10. Wav file and muting

11. How do we use ONMOUSEOVER with WAV files

12. PLaying multiple .WAV files when page loads

 

 
Powered by phpBB® Forum Software