[Tutor] Python won't play wav file
Kent Johnson
kent37 at tds.net
Tue May 24 23:16:18 CEST 2005
Lee Harr wrote:
>>I can't get:
>>
>>import wave as w
>>
>
>
>
>>... to play a .wav music file. I tried w.play() but got an error that
>>module has no attribute 'play'.
>>What do I use to get it to play?
>
>
>
> Strangely... I do not believe the wave module is meant to actually
> _play_ a wav file. It looks to me like it is only intended to read and
> parse the file for meta information.
If you are on windows try the winsound module.
Kent
More information about the Tutor
mailing list