diff --git a/tts.py b/tts.py index 3223b76..00d3e74 100644 --- a/tts.py +++ b/tts.py @@ -34,7 +34,9 @@ def create_speech_streamlabs(text: str): :param text: any reasonable english text :return: returns the path of the file for the sound """ - path = os.path.join(get_tts_dir(), create_file_name(text, "ogg")) + #Normally this is set to OGG, For now it is mp3 in order to work on Windows via playsound + #Not sure if this approach will work as mp3 on Linux/Mac + path = os.path.join(get_tts_dir(), create_file_name(text, "mp3")) if not os.path.exists(path): body = {"voice": config.streamlabsVoice.value, "text": text} resp = requests.post(streamLabsUrl, data=body).json()