Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62314 > unrolled thread

How to import Wave files into python?

Started bytwilkins50@gmail.com
First post2013-12-18 08:45 -0800
Last post2013-12-20 14:26 -0800
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  How to import Wave files into python? twilkins50@gmail.com - 2013-12-18 08:45 -0800
    Re: How to import Wave files into python? Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-18 11:57 -0500
    Re: How to import Wave files into python? ishish <ishish@domhain.de> - 2013-12-18 17:08 +0000
    Re: How to import Wave files into python? diesch111@gmail.com - 2013-12-20 14:30 -0800
    Re: How to import Wave files into python? diesch111@gmail.com - 2013-12-20 14:26 -0800

#62314 — How to import Wave files into python?

Fromtwilkins50@gmail.com
Date2013-12-18 08:45 -0800
SubjectHow to import Wave files into python?
Message-ID<cce65ffc-2560-4a00-9cd7-a7bf6d3ee6e6@googlegroups.com>
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

[toc] | [next] | [standalone]


#62317

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-12-18 11:57 -0500
Message-ID<mailman.4364.1387385838.18130.python-list@python.org>
In reply to#62314

[Multipart message — attachments visible in raw view] — view raw

On Wed, Dec 18, 2013 at 11:45 AM, <twilkins50@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
> --
> 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

[toc] | [prev] | [next] | [standalone]


#62320

Fromishish <ishish@domhain.de>
Date2013-12-18 17:08 +0000
Message-ID<mailman.4366.1387389179.18130.python-list@python.org>
In reply to#62314
> 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.

[toc] | [prev] | [next] | [standalone]


#62461

Fromdiesch111@gmail.com
Date2013-12-20 14:30 -0800
Message-ID<849028d9-a812-417d-bb56-f787e014964c@googlegroups.com>
In reply to#62314
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)

[toc] | [prev] | [next] | [standalone]


#62499

Fromdiesch111@gmail.com
Date2013-12-20 14:26 -0800
Message-ID<162e22b5-b32e-4cbf-a0dd-bf129ff8abd9@googlegroups.com>
In reply to#62314
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)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web