Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sound with python
#1
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
Reply
#2
Hello! Can you use another program that is already installed on your system to play the audio?
Reply
#3
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.
Reply
#4
@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.
Reply
#5
(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
Reply
#6
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.
Reply
#7
mp3: https://pypi.python.org/pypi?%3Aaction=s...mit=search
simple sound: https://pypi.python.org/pypi?%3Aaction=s...mit=search
wav: https://pypi.python.org/pypi?%3Aaction=s...mit=search
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020