swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] how to play .wav file from swf button


From: Norman Khine
Subject: [Swftools-common] how to play .wav file from swf button
Date: Sat, 4 Apr 2009 21:19:21 +0200

Hello,
I have build a captcha type of widget using SoX to generate a .wav
file. I am looking to make the interface a bit more full proof as
currently it just embeds the wav file as for example:

<embed bgcolor="white" height="16" type="audio/wav" src="tfp45.wav"
autostart="false">

The source file is generated from a python function using the
sub-process module, like:

        subprocess.call(['sox'] + sox_filenames + \
                        ['%s/%s' % (sound_output_path, (im_name + '.wav'))])

where the sox_filenames is a python list of .wav files.

Anyhow this is the background, you can see it in action at
http://uk.expert.travel - registration form.

I would like to replace the .wav player with a SWF button, so that if
a user clicks on it it will play the file.

Any advise much appreciated.

Thanks
Norman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]