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?
#6
This is the code I have so far:

How can I make this .mp3 play through my mic? (so that people on Discord/TeamSpeak/Voice Chat can hear it)

from gtts import gTTS

t2s = gTTS(text="Hello this is the text to play", lang='en')
t2s.save("voice1.mp3")
I assume I would need a virtual audio cable to do this? I have VB Audio Cable installed. I don't know how to output the .mp3 into the recording device though. How do I do that in Python?
Reply


Messages In This Thread
Is this possible to make in Python? - by ejected - Apr-04-2019, 01:23 AM
How can I send a .mp3 to play through my mic? - by ejected - Apr-04-2019, 03:16 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