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.
lllllIllIlllI
178
Veteran Poster
Recommended Answers
Jump to PostWhat platform are you on? What module are you using for playback right now?
Jump to PostI 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
Jump to PostSimiliar to what evstevemd said, I was thinking you would need to change the sample rate (how many bits per second are played) if you take a 44000hz sample and play it at 88000hz, it should play at double speed.
Jump to Postsite for pyaudio that i can download and fiddle around? Is it built in? wx.Python??
All 23 Replies
tyincali
21
Light Poster
Stefano Mtangoo
455
Senior Poster
tyincali
21
Light Poster
lllllIllIlllI
178
Veteran Poster
lllllIllIlllI
178
Veteran Poster
Stefano Mtangoo
455
Senior Poster
tyincali
21
Light Poster
tyincali
21
Light Poster
lllllIllIlllI
178
Veteran Poster
sneekula
969
Nearly a Posting Maven
sneekula
969
Nearly a Posting Maven
sneekula
969
Nearly a Posting Maven
lllllIllIlllI
178
Veteran Poster
Stefano Mtangoo
455
Senior Poster
lllllIllIlllI
178
Veteran Poster
sneekula
969
Nearly a Posting Maven
Stefano Mtangoo
455
Senior Poster
sneekula
969
Nearly a Posting Maven
lllllIllIlllI
178
Veteran Poster
Stefano Mtangoo
455
Senior Poster
lllllIllIlllI
178
Veteran Poster
Stefano Mtangoo
455
Senior Poster
lllllIllIlllI
178
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.