Class VoiceAttachment
- Namespace
- NetCord
- Assembly
- NetCord.dll
Represents an attachment with properties relevant to voice messages.
public class VoiceAttachment : Attachment, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonAttachment>
- Inheritance
-
VoiceAttachment
- Implements
- Inherited Members
Constructors
VoiceAttachment(JsonAttachment)
Represents an attachment with properties relevant to voice messages.
public VoiceAttachment(JsonAttachment jsonModel)
Parameters
jsonModelJsonAttachment
Properties
Duration
The duration of the audio file.
public TimeSpan Duration { get; }
Property Value
Waveform
Byte array representing a sampled waveform. It is intended to be a preview of the entire voice message. Clients sample the recording at most once per 100 milliseconds, but will downsample so that no more than 256 datapoints are in the waveform.
public IReadOnlyList<byte> Waveform { get; }