GeneratedGeneratedbpmThe beats per minute of the Sample.
from field: double bpm = 8;
GeneratedclearanceThe clearance of the Sample.
from field: audiotool.sample.v1.SampleClearance clearance = 13;
Optional GeneratedcreateOutput only. Timestamp when this Sample was created.
from field: google.protobuf.Timestamp create_time = 11;
GenerateddescriptionThe description of the Sample.
from field: string description = 3;
GenerateddisplayThe display name of the Sample.
from field: string display_name = 2;
GeneratedfavoritedWhether the authed user liked the sample.
This is only exposed if the user is authenticated. The user can like a Preset via Favor API.
from field: bool favorited_by_user = 5;
GeneratedflacThe underlying URL of the track to play (flac format).
from field: string flac_url = 19;
Generatedmp3The underlying URL of the track to play (mp3 format).
from field: string mp3_url = 16;
GeneratednameThe Sample name.
from field: string name = 1;
GeneratednumThe number of favorites of the Sample.
from field: int32 num_favorites = 6;
GeneratednumThe number of usages of the Sample.
from field: int32 num_usages = 7;
GeneratedownerThe Owner of the Sample in the form of users/{user}.
from field: string owner_name = 4;
Optional GeneratedplayThe duration of the Sample.
from field: google.protobuf.Duration play_duration = 10;
GeneratedpreviewThe underlying URL of the track to play (mp3 format).
from field: string preview_mp3_url = 18;
GeneratedsampleThe type of the Sample.
from field: audiotool.sample.v1.SampleType sample_type = 9;
GeneratedtagsThe tags of the Sample.
from field: repeated string tags = 15;
Optional GeneratedupdateOutput only. Timestamp when this Sample was last updated.
The underlying audio can't be changed. Only some metadata (of this message) can be changed.
from field: google.protobuf.Timestamp update_time = 12;
GeneratedusageThe usage of the Sample.
from field: audiotool.sample.v1.SampleUsage usage = 14;
GeneratedwaveformThe waveform URL of the sample.
The waveform_url will be in the form of:
"https://.../waveforms/v1/samples/{sample}/3840_both.json.gz?{SHA}"
The SHA can be used for cache busting.
If you need another resolution/channel variant you can replace 3840_both.json.gz with:
Artifact format: the response body is Content-Encoding: gzip; after decompression the payload
is a single JSON array of non-negative numbers — one peak/envelope sample per time bin. The
array has at most as many elements as the numeric resolution prefix in the filename (e.g.
3840_*.json.gz is capped at 3840); the actual length is not guaranteed to match that cap.
Each *_both|left|right*.json.gz file holds exactly one curve for that channel variant at
that resolution (not a multi-key object).
from field: string waveform_url = 20;
GeneratedwavThe underlying URL of the track to play (wav format).
from field: string wav_url = 17;
Static ReadonlyfieldsStatic ReadonlyruntimeStatic ReadonlytypeParse from binary data, merging fields.
Repeated fields are appended. Map entries are added, overwriting existing keys.
If a message field is already present, it will be merged with the new data.
Optionaloptions: Partial<BinaryReadOptions>Parse a message from a JSON value.
Optionaloptions: Partial<JsonReadOptions>Parse a message from a JSON string.
Optionaloptions: Partial<JsonReadOptions>Serialize the message to binary data.
Optionaloptions: Partial<BinaryWriteOptions>Serialize the message to a JSON value, a JavaScript value that can be passed to JSON.stringify().
Optionaloptions: Partial<JsonWriteOptions>ProtectedtoOverride for serialization behavior. This will be invoked when calling JSON.stringify on this message (i.e. JSON.stringify(msg)).
Note that this will not serialize google.protobuf.Any with a packed message because the protobuf JSON format specifies that it needs to be unpacked, and this is only possible with a type registry to look up the message type. As a result, attempting to serialize a message with this type will throw an Error.
This method is protected because you should not need to invoke it directly -- instead use JSON.stringify or toJsonString for stringified JSON. Alternatively, if actual JSON is desired, you should use toJson.
Serialize the message to a JSON string.
Optionaloptions: Partial<JsonWriteStringOptions>StaticequalsStaticfromOptionaloptions: Partial<BinaryReadOptions>StaticfromStaticfrom
Sample is a resource representing a single Sample.
from message audiotool.sample.v1.Sample