async with websockets.connect(uri) as websocket:
await websocket.send(data)
sound = await websocket.recv()
print(f"< {sound}")
with wave.open('test.wav', 'wb') as wavfile:
wavfile.setparams((1, 2, 22050, 0, 'NONE', 'not compressed'))
wavfile.writeframes(sound)