TRTCVolumeInfo class

Volume

This indicates the audio volume value. You can use it to display the volume of each user in the UI.

Annotations
  • @JsonSerializable(explicitToJson: true, includeIfNull: false)

Constructors

TRTCVolumeInfo({String userId = "", int volume = -1, int vad = -1, double pitch = -1, List<double>? spectrumData})
TRTCVolumeInfo.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pitch double
  • The local user's vocal frequency (unit: Hz), the value range is [0 - 4000]. For remote users, this value is always 0.
  • getter/setter pair
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    spectrumData List<double>?
  • Audio spectrum data, which divides the sound frequency into 256 frequency domains, spectrumData records the energy value of each frequency domain,
  • The value range of each energy value is [-300, 0] in dBFS.
  • getter/setter pair
    userId String
  • userId of the speaker. An empty value indicates the local user.
  • getter/setter pair
    vad int
  • Vad result of the local user. 0: not speech 1: speech.
  • getter/setter pair
    volume int
  • Volume of the speaker. Value range: 0–100.
  • getter/setter pair

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toJson() Map<String, dynamic>
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited