Sinch Node.js SDK - v1.6.0
    Preparing search index...

    Interface StreamOptions

    interface StreamOptions {
        codec?: string;
        sampleRate?: number;
        version?: number;
    }
    Index

    Properties

    codec?: string

    Defines the audio codec/format used for the stream audio payload. Currently, only PCM is supported (uncompressed raw audio). Use sampleRate to configure the sampling rate for the stream.

    sampleRate?: number

    Defines the audio sampling rate (Hz) used for the stream. For calls that traverse the PSTN, audio is typically sampled at 8 kHz, so using a higher value will not improve perceived quality. Higher sample rates can be useful for non-PSTN scenarios (for example, SIP/streaming paths), but will increase bandwidth usage and processing load.

    version?: number

    Defines the version of the stream protocol.