mumble-client
This module implements the client side of the Mumble protocol for use in both Nodejs and the browser. It does not enforce any particular transport protocol nor does it provide the audio encoder/decoder. See mumble-client-tcp and mumble-client-udp and mumble-client-codecs-node for creating a Nodejs based application or mumble-client-websocket and mumble-client-codecs-browser for a browser app.
Usage
Node: All functions that take a Node-style callback as their last argument may also be used without that callback and will then instead return a Promise.
Most transport modules will have their own MumbleClient factory functions. Therefore this is only of importance if you do not wish to use any transport module or are implementing your one. Note that encryption of the data stream has to be done by the transport module while the voice stream is encrypted by this module.
var MumbleClient = var client = username: 'Test' password: 'Pass123'// someDuplexStream is used for data transmission and as a voice channel fallbackclient // You may then register listeners for the 'voice' event to receive a stream// of raw PCM frames.client // To send audio, pipe your raw PCM samples (as Float32Array or Buffer) at // 48kHz into an outgoing stream created with Client#createVoiceStream.// Any audio piped in the stream while muted, suppressed or not yet connected// will be silently dropped.// First argument is the target: 0 is normal talking, 1-31 are voice targetsvar voiceStream = clientmyPcmSource// Make sure the stream is ended when the transmission should end// For positional audio the Float32Array is wrapped in an object which// also contains the position:myPcmSource
License
MIT