Constructs a new AudioMessage.
Optional
properties:
IAudioMessage
Properties to set
Optional
accessibilityAudioMessage accessibilityLabel.
Optional
backgroundAudioMessage backgroundArgb.
Optional
contextAudioMessage contextInfo.
Optional
directAudioMessage directPath.
Optional
fileAudioMessage fileEncSha256.
Optional
fileAudioMessage fileLength.
Optional
fileAudioMessage fileSha256.
Optional
mediaAudioMessage mediaKey.
Optional
mediaAudioMessage mediaKeyTimestamp.
Optional
mimetype
AudioMessage mimetype.
Optional
ptt
AudioMessage ptt.
Optional
seconds
AudioMessage seconds.
Optional
streamingAudioMessage streamingSidecar.
Optional
url
AudioMessage url.
Optional
viewAudioMessage viewOnce.
Optional
waveform
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
getStatic
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.