MumbleInputStream - Rantanen/node-mumble GitHub Wiki

MumbleInputStream

Input stream for sending audio to Mumble.

this: {MumbleInputStream}

new MumbleInputStream(connection, options)

Params

  • connection MumbleConnection - Mumble connection to write to
  • options Object - Stream options.
    • .sampleRate number - Input sample rate. Defaults to 48000.
    • .channels number - Input channels. Defaults to 1.
    • .gain number - Volume multiplier. Defaults to 1.

The stream implements the WritableStream interface.

The input data format can be specified with the constructor options. The final audio will be converted to mono 16-bit PCM at 48 kHz.

Currently the packets are sent to murmur in 10ms packets. The sample rate should be such that it can divide the audio to packets of that size.

mumbleInputStream.close()

Closes the stream

mumbleInputStream.setGain(gain)

Change the volume multiplier

Params

  • gain number - New gain value.
⚠️ **GitHub.com Fallback** ⚠️