diff --git a/Demo_Google_TTS.py b/Demo_Google_TTS.py index b49b644e..c3863fa8 100644 --- a/Demo_Google_TTS.py +++ b/Demo_Google_TTS.py @@ -1,4 +1,9 @@ -import PySimpleGUI as sg +#!/usr/bin/env python +import sys +if sys.version_info[0] >= 3: + import PySimpleGUI as sg +else: + import PySimpleGUI27 as sg from gtts import gTTS from pygame import mixer import time