@twilio/voice-sdk
    Preparing search index...

    Interface RTCSample

    Sample RTC statistics. See [[Call.sampleEvent]]

    interface RTCSample {
        audioInputLevel: number;
        audioOutputLevel: number;
        bytesReceived: number;
        bytesSent: number;
        codecName: string;
        jitter: number;
        mos: null | number;
        packetsLost: number;
        packetsLostFraction: number;
        packetsReceived: number;
        packetsSent: number;
        rtt: number;
        timestamp: number;
        totals: RTCSampleTotals;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any
    Index

    Properties

    audioInputLevel: number

    Audio input level in last second. Between 0 and 32767, representing -100 to -30 dB.

    audioOutputLevel: number

    Audio output level in last second. Between 0 and 32767, representing -100 to -30 dB.

    bytesReceived: number

    Bytes received in last second.

    bytesSent: number

    Bytes sent in last second.

    codecName: string

    Audio codec used, either pcmu or opus

    jitter: number

    Packets delay variation

    mos: null | number

    Mean opinion score, 1.0 through roughly 4.5

    packetsLost: number

    Number of packets lost in last second.

    packetsLostFraction: number

    Packets lost to inbound packets ratio in last second.

    packetsReceived: number

    Number of packets received in last second.

    packetsSent: number

    Number of packets sent in last second.

    rtt: number

    Round trip time, to the server back to the client.

    timestamp: number

    Timestamp

    Totals for packets and bytes related information