Re: How to import Wave files into python?

2013-12-21 Thread diesch111
On Wednesday, December 18, 2013 8:45:08 AM UTC-8, twilk...@gmail.com wrote:
> How exactly do I import a .wav file and run it?
> 
> also is it possible to run it inside a while loop if so or it just start 
> playing when its run? - Tom 14

Using Pyside/PyQt you can play wave files this way ...
QSound.play(wave_filename)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to import Wave files into python?

2013-12-20 Thread diesch111
On Wednesday, December 18, 2013 8:45:08 AM UTC-8, twilk...@gmail.com wrote:
> How exactly do I import a .wav file and run it?
> 
> also is it possible to run it inside a while loop if so or it just start 
> playing when its run? - Tom 14

QSound.play(wave_file)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to import Wave files into python?

2013-12-18 Thread Jean-Michel Pichavant
- Original Message -
> How exactly do I import a .wav file and run it?
> also is it possible to run it inside a while loop if so or it just
> start playing when its run? - Tom 14
> --
> https://mail.python.org/mailman/listinfo/python-list

I think the pygame module should be able to do so.

JM 


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be 
privileged. If you are not the intended recipient, please notify the sender 
immediately and do not disclose the contents to any other person, use it for 
any purpose, or store or copy the information in any medium. Thank you.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to import Wave files into python?

2013-12-18 Thread ishish

How exactly do I import a .wav file and run it?
also is it possible to run it inside a while loop if so or it just
start playing when its run? - Tom 14
--


For the GUI (Tkinter) there is tkSnack.
If you want to run it from the command line you could use sox.
--
https://mail.python.org/mailman/listinfo/python-list


Re: How to import Wave files into python?

2013-12-18 Thread Joel Goldstick
On Wed, Dec 18, 2013 at 11:45 AM,  wrote:

> How exactly do I import a .wav file and run it?
> also is it possible to run it inside a while loop if so or it just start
> playing when its run? - Tom 14
> --
> https://mail.python.org/mailman/listinfo/python-list
>


Hi.  How exactly have you tried to import a wave file?  If you have a short
example of code, (python 2x or 3x) and what OS you will get probably get
some help

Have you googled this:  "python play wav file"

Looks like there is something there that might help you get started

-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list