diff --git a/clientWithSpeak.py b/clientWithSpeak.py index 5edd653..53b9b4e 100644 --- a/clientWithSpeak.py +++ b/clientWithSpeak.py @@ -1,6 +1,5 @@ #!/usr/bin/python3 import socket -from botPrintFunction import botPrint import win32com.client as wincl client = socket.socket() # Connect to IP:Port port = 12346 @@ -14,7 +13,7 @@ try: rawmsg = client.recv(1024) # recieve up to 1024 bytes msg = rawmsg.decode('utf-8').rstrip('\r\n') # Decode received message from bits to string - print(botPrint(msg)) # convert and clean the input + print(msg) # convert and clean the input speak = wincl.Dispatch("SAPI.SpVoice") msg = msg.replace('m/s','meters per second') # So speach reads m/s correctly speak.Speak(msg)