gTTS direct output
问题 I want to make a chatbot's response in audio and text. All the example code using gTTS seem like one needs to 'save the text into a file then play the file'. Is there another way to simplify the process such as, play the 'response from chatbot' automatically, using gTTS? 回答1: If you look even briefly at the docs, you'll see that, of the three examples, only one of them requires you to call save , and the third one is specifically called "Playing sound directly". So, just do exactly what's in