Constructs a new AudioMessage.
Optional
properties:
IAudioMessage
Properties to set
AudioMessage backgroundArgb.
Optional
contextAudioMessage contextInfo.
AudioMessage directPath.
AudioMessage fileEncSha256.
AudioMessage fileLength.
AudioMessage fileSha256.
AudioMessage mediaKey.
AudioMessage mediaKeyTimestamp.
AudioMessage mimetype.
AudioMessage ptt.
AudioMessage seconds.
AudioMessage streamingSidecar.
AudioMessage url.
AudioMessage viewOnce.
AudioMessage waveform.
Static
create
Creates a new AudioMessage instance using the specified properties.
Optional
properties:
IAudioMessage
Properties to set
AudioMessage instance
Static
decode
Decodes an AudioMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
AudioMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes an AudioMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
AudioMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified AudioMessage message. Does not implicitly verify messages.
AudioMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified AudioMessage message, length delimited. Does not implicitly verify messages.
AudioMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates an AudioMessage message from a plain object. Also converts values to their respective internal types.
Plain object
AudioMessage
Static
toCreates a plain object from an AudioMessage message. Also converts values to other types if specified.
AudioMessage
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents an AudioMessage.