btnexus-node-python.btStreamingNode module

A Node which accepts audio streams and forwards them to the speech to text service of your choice and publishes the transcript on the transcript topic

class btStreamingNode.StreamingNode(**kwargs)[source]

Bases: btNode.Node

Constructor sets up the NexusConnector.

Parameters
  • token (String) – AccessToken for the btNexus

  • axonURL (String) – URL for the Axon(InstanceURL)

  • debug (bool) – switch for debug messages

connect(**kwargs)[source]

Runs this node and listen forever This is a blocking call Uses the kwargs for the socketio.Client see https://python-socketio.readthedocs.io/en/latest/api.html

getSessionId()[source]

return the sessionId this needs to be implemented for a service node

onStreamReady()[source]

Stream as long as you want but use reactor.callFromThread and after finishing self.transport.loseConnection and self.transport = None

setSessionId(response)[source]
streamTo(host, port)[source]