Python Forum
How can I send a .mp3 to play through my mic?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I send a .mp3 to play through my mic?
#12
(Apr-04-2019, 09:09 PM)Larz60+ Wrote: you can play the mp3 directly from the python script.
The easiest way to do this is with pygame mixer which is use like:
from pygame import mixer

def play_mp3(mp3filename):
    mixer.init()
    mixer.music.load(mp3filename)
    mixer.music.play()

That's not what I'm trying to do.....

I need to change the output device to something other then my Windows default one.

Something like this: So that I can change the playback device

[Image: IMVXRvO.png]
Reply


Messages In This Thread
Is this possible to make in Python? - by ejected - Apr-04-2019, 01:23 AM
RE: How can I send a .mp3 to play through my mic? - by ejected - Apr-04-2019, 10:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play the next music in a list Pymax 0 1,276 Jul-28-2021, 07:27 PM
Last Post: Pymax
  how do i play an mp3 from a list gr3yali3n 3 2,273 Dec-01-2020, 08:50 AM
Last Post: Axel_Erfurt
  How to play against the computer Help_me_Please 4 4,238 Aug-29-2019, 03:37 PM
Last Post: ThomasL

Forum Jump:

User Panel Messages

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