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?
#16
(Apr-04-2019, 11:08 PM)Larz60+ Wrote: Is the image that you show your application?
And please refrain from vulgarity.
If it's not your app, the only way to automate changing the playback device (unless you have source code)
if to use some sort of browser automation like selenium or expect.

That is not my app. It is TeamSpeak, a voice communication program.

I don't want to automate changing the playback device. But I do want to change the playback device for my python script.

This is my script:

from gtts import gTTS
from pygame import *


t2s = gTTS(text="This text", lang='en').save("lastplayed.mp3")
mixer.init()
mixer.music.load("lastplayed.mp3")
mixer.music.play()

while mixer.music.get_busy():
    time.Clock().tick(100)
I want to make lastplayed.mp3 play in a DIFFERENT playback device. NOT my Windows DEFAULT one. A DIFFERENT one ("VB Audio Cable" which is a PLAYBACK DEVICE).
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, 11:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play the next music in a list Pymax 0 1,227 Jul-28-2021, 07:27 PM
Last Post: Pymax
  how do i play an mp3 from a list gr3yali3n 3 2,165 Dec-01-2020, 08:50 AM
Last Post: Axel_Erfurt
  How to play against the computer Help_me_Please 4 4,111 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