'Save audio file to desired path
I have a lot of text-to-speech audio files that I need to save but often, the files get lost. Currently I'm using
import gtts
from playsound import playsound
def say(speech):
tts = gtts.gTTS(speech)
tts.save("audio.mp3")
playsound("audio.mp3")
Is there any way that I can save the mp3 to wherever I desire?
Solution 1:[1]
I did like this: s.save("your folder name/audio.mp3")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ?????? |
