import socket 
import json

def createJSON(text):
    obj = {}
    obj['type'] = 'speechToText'
    data = {}
    data['text'] = text
    obj['data'] = json.dumps(data)
    return json.dumps(obj)

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

def sendMessage(text):
	try:
		socketaddress = ('10.131.222.198', 1336)
		data = createJSON(text)
		sock.connect(socketaddress)
		sock.sendall(data.encode())
	finally:
		sock.close()

sendMessage('hi')

ba0b4c32b42486c1bd09a8b2cf55965d6e0ada99
<mask token>


def createJSON(text):
    obj = {}
    obj['type'] = 'speechToText'
    data = {}
    data['text'] = text
    obj['data'] = json.dumps(data)
    return json.dumps(obj)


<mask token>

<mask token>


def createJSON(text):
    obj = {}
    obj['type'] = 'speechToText'
    data = {}
    data['text'] = text
    obj['data'] = json.dumps(data)
    return json.dumps(obj)


<mask token>


def sendMessage(text):
    try:
        socketaddress = '10.131.222.198', 1336
        data = createJSON(text)
        sock.connect(socketaddress)
        sock.sendall(data.encode())
    finally:
        sock.close()


sendMessage('hi')

<mask token>


def createJSON(text):
    obj = {}
    obj['type'] = 'speechToText'
    data = {}
    data['text'] = text
    obj['data'] = json.dumps(data)
    return json.dumps(obj)


sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)


def sendMessage(text):
    try:
        socketaddress = '10.131.222.198', 1336
        data = createJSON(text)
        sock.connect(socketaddress)
        sock.sendall(data.encode())
    finally:
        sock.close()


sendMessage('hi')

import socket
import json


def createJSON(text):
    obj = {}
    obj['type'] = 'speechToText'
    data = {}
    data['text'] = text
    obj['data'] = json.dumps(data)
    return json.dumps(obj)


sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)


def sendMessage(text):
    try:
        socketaddress = '10.131.222.198', 1336
        data = createJSON(text)
        sock.connect(socketaddress)
        sock.sendall(data.encode())
    finally:
        sock.close()


sendMessage('hi')

import socket 
import json

def createJSON(text):
    obj = {}
    obj['type'] = 'speechToText'
    data = {}
    data['text'] = text
    obj['data'] = json.dumps(data)
    return json.dumps(obj)

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

def sendMessage(text):
	try:
		socketaddress = ('10.131.222.198', 1336)
		data = createJSON(text)
		sock.connect(socketaddress)
		sock.sendall(data.encode())
	finally:
		sock.close()

sendMessage('hi')
