Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

play back voice recorded files

by ashok (Sexton)
on Jan 09, 2001 at 04:45 UTC ( [id://50600]=perlquestion: print w/replies, xml ) Need Help??

ashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Is there any facility to playback the voice recorded data files in perl on windows? I have stored "yes" in one file and "no" in another file. Based upon the output of one user entry I want to playback the file stored "yes" if the user entry is correct. Otherwise I want to play back "no". Thanks Ashok

Replies are listed 'Best First'.
Re: play back voice recorded files
by Trinary (Pilgrim) on Jan 09, 2001 at 04:53 UTC
    Win32::Sound

    CPAN search. Learn it, live it, love it.

    use Win32::Sound; Win32::Sound::Volume('100%'); if ($correct_answer) { Win32::Sound::Play("yes.wav"); Win32::Sound::Stop; } else { Win32::Sound::Play("no.wav"); Win32::Sound::Stop; }

    Enjoy

    Trinary

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://50600]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-24 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found