Python Forum

Full Version: sound with python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone !

First of all, sorry for my english level, It's not my native language.

For my assignment I need to be able to play a WAV or a MP3 sound with Python without downloading a new module (can't use pygame,pymedia,...)
I have been working on that school project for several hours now and I can't find the solution to play those kind of file.

Does somebody knows how to do it or how I should do it ?

Thank's
Hello! Can you use another program that is already installed on your system to play the audio?
Since this is a homework assignment, You need to do some footwork.
But a strong hint, is that search engines were built for this purpose, and
perhaps a search for 'python package search' would be in order.
@Larz60+ He says he can't use any extra modules. And I agree about usefuleness of search engines. It took me less than a minute to find several potential solutions.
(Dec-09-2017, 06:33 PM)j.crater Wrote: [ -> ]Hello! Can you use another program that is already installed on your system to play the audio?

No I can't

(Dec-09-2017, 06:39 PM)j.crater Wrote: [ -> ]@Larz60+ He says he can't use any extra modules. And I agree about usefuleness of search engines. It took me less than a minute to find several potential solutions.

Can you just send one or 2 that you found ? I'm still looking but don't find the right way to to it without the extra modules.

Thank you for your help
https://stackoverflow.com/questions/3634...o-play-mp3
https://stackoverflow.com/questions/3073...ith-python
https://stackoverflow.com/questions/2002...-on-python

Here are many answers, some overlapping, some requiring additional modules, and some not. See if you find something useful here. I admit I don't even fully understand the requirement, i.e. how the sound should be played.