From 3a73e37aabfa6b7e81402a620eff180093a8731a Mon Sep 17 00:00:00 2001 From: "Saeed Issaka (issakas)" Date: Fri, 24 Nov 2017 16:59:47 +0000 Subject: [PATCH] Update clientWithSpeak.py --- clientWithSpeak.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)