code: async def from_client(cls, client, *, resume=False):
          
          gateway = 'wss://' + client.endpoint + '/?v=4'
          ws = await websockets.connect(gateway, loop=client.loop, klass=cls, compression=None)
          ws.gateway = gateway
          ws._connection = client
          ws._max_heartbeat_timeout = 60.0
  
          if resume:
              await ws.resume()
          else:
              await ws.identify()
  
          return ws
docs: Creates a voice websocket for the :class:`VoiceClient`.