| | |
Play Sounds at different Speeds
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi guys,
I have a program that lets the user play a sound but i was wanting to know how i could make it so the user could vary the speed in which the sound plays so the sound can play slowly and quickly and normaly as well. Is this even possible with python? Becuase i was looking and i couldn't find any modules to help me with this problem but if anyone could give me a hand that would be greatly appreciated.
Thanks.
I have a program that lets the user play a sound but i was wanting to know how i could make it so the user could vary the speed in which the sound plays so the sound can play slowly and quickly and normaly as well. Is this even possible with python? Becuase i was looking and i couldn't find any modules to help me with this problem but if anyone could give me a hand that would be greatly appreciated.
Thanks.
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
I don't know about python but the trick of doing this is increasing the tempo of music. If the current module you are using can do that then that will be simple case
Well im on windows if that helps. How would i change the sample rate? Is there an easy way to do that in python?
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
Okay well got an update for everyone. I am using pyAudio and wave modules to play my .wav file. Now i can set the "Rate" in which the file plays. This i can change at the start of the program and it will change the rate at which the sound is played. This changes the speed and therefore the pitch. My issue is, with using pyAudio i haven't been able to work out how to change the rate while the application is running.
So if anyone knows how to do that. That will be very helpful.
So if anyone knows how to do that. That will be very helpful.
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
•
•
Join Date: Oct 2008
Posts: 45
Reputation:
Solved Threads: 6
I think a better option might be to switch to pySonic
http://pysonic.sourceforge.net
the Song.userspeed() property in particular looks like what you would want
http://pysonic.sourceforge.net
the Song.userspeed() property in particular looks like what you would want
I wish I had something cool to put here...
Is there anywhere to download pysonic for python 2.5? Because i cant find it on the sourceforge page..
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
![]() |
Similar Threads
- SpeedUp Your Window XP Never Than Before (Windows tips 'n' tweaks)
- IF I were to convert to the Dark Side... (IT Professionals' Lounge)
- $1000 excellent gaming PC? (Geeks' Lounge)
Other Threads in the Python Forum
- Previous Thread: Python-Tuple Help!
- Next Thread: PyGTK tray menu has annoying scroll arrows
| Thread Tools | Search this Thread |
Tag cloud for Python
alarm assignment avogadro beginner bluetooth character cmd code copy customdialog cx-freeze data decimals dictionary directory dynamic error examples excel exe file float font format function generator gnu graphics gui halp homework http ideas import input itunes java leftmouse line linux list lists logging loop maze module mouse number numbers output parsing path port prime program programming projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext sqlite ssh stdout string strings sudokusolver table terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode update urllib urllib2 variable ventrilo verify vigenere web webservice wikipedia windows wxpython xlib






