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?
#3
(Apr-04-2019, 02:07 AM)Larz60+ Wrote: There are already packages that do this.
One of the more popular is gTTs: https://github.com/pndurette/gTTS
documentation here: https://gtts.readthedocs.io/en/latest/
The short side of this package is that it relies on Google and therefore needs an internet connection to run.

This can be installed with:
pip install gTTS
An alternative, that does not rely on Google is pyttsx3
homepage: https://github.com/nateshmbhat/pyttsx3
documentation here: https://pyttsx3.readthedocs.io/en/latest/

This can be installed with:
pip install pyttsx3

Tysm, how do I get either one to work through my mic though? I don't want to just hear the text to speech myself, I want it to output to my recording device on my computer so that I can use it on voice communication stuff. Like TeamSpeak/Discord/ect

Is that possible? If so, how? Which function on either of those do I use? I can't find anything to do that.
Reply


Messages In This Thread
Is this possible to make in Python? - by ejected - Apr-04-2019, 01:23 AM
RE: Is this possible to make in Python? - by ejected - Apr-04-2019, 02:25 AM

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