Constructs a new AudioMessage.
Optional
properties: IAudioMessageProperties 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
createCreates a new AudioMessage instance using the specified properties.
Optional
properties: IAudioMessageProperties to set
AudioMessage instance
Static
decodeDecodes an AudioMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage 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
encodeEncodes the specified AudioMessage message. Does not implicitly verify messages.
AudioMessage message or plain object to encode
Optional
writer: WriterWriter 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: WriterWriter 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: IConversionOptionsConversion options
Plain object
Static
verifyGenerated using TypeDoc
Represents an AudioMessage.