@classmethod<EOL><INDENT>async def from_client(cls, client, *, resume=False):<DEDENT>
gateway = '<STR_LIT>' + client.endpoint + '<STR_LIT>'<EOL>ws = await websockets.connect(gateway, loop=client.loop, klass=cls, compression=None)<EOL>ws.gateway = gateway<EOL>ws._connection = client<EOL>ws._max_heartbeat_timeout = <NUM_LIT><EOL>if resume:<EOL><INDENT>await ws.resume()<EOL><DEDENT>else:<EOL><INDENT>await ws.identify()<EOL><DEDENT>return ws<EOL>
Creates a voice websocket for the :class:`VoiceClient`.