pub struct Sound {Show 32 fields
pub id: i32,
pub url: String,
pub name: String,
pub tags: Vec<String>,
pub description: String,
pub geotag: Option<String>,
pub created: String,
pub license: String,
pub sound_type: String,
pub channels: i32,
pub filesize: i32,
pub bitrate: Option<f32>,
pub bitdepth: Option<i32>,
pub duration: f32,
pub samplerate: f32,
pub username: String,
pub pack: Option<String>,
pub download: String,
pub bookmark: String,
pub previews: Option<Previews>,
pub images: Option<Images>,
pub num_downloads: i32,
pub avg_rating: f32,
pub num_ratings: i32,
pub rate: String,
pub comments: String,
pub num_comments: i32,
pub comment: String,
pub similar_sounds: String,
pub analysis: Option<Value>,
pub analysis_stats: String,
pub analysis_frames: String,
}
Expand description
A sound from Freesound
Fields§
§id: i32
The sound’s unique identifier
url: String
The URI for this sound on the Freesound website
name: String
The name user gave to the sound
An array of tags the user gave to the sound
description: String
The description the user gave to the sound
geotag: Option<String>
Latitude and longitude of the geotag (if available)
created: String
The date when the sound was uploaded
license: String
The license under which the sound is available
sound_type: String
The type of sound (wav, aif, aiff, mp3, m4a or flac)
channels: i32
The number of channels
filesize: i32
The size of the file in bytes
bitrate: Option<f32>
The bit rate of the sound in kbps
bitdepth: Option<i32>
The bit depth of the sound
duration: f32
The duration of the sound in seconds
samplerate: f32
The samplerate of the sound
username: String
The username of the uploader
pack: Option<String>
URI pointing to the pack API resource
download: String
URI for downloading the original sound
bookmark: String
URI for bookmarking the sound
previews: Option<Previews>
URLs for mp3 and ogg versions of the sound
images: Option<Images>
URLs for spectrogram and waveform visualizations
num_downloads: i32
The number of times the sound was downloaded
avg_rating: f32
The average rating of the sound
num_ratings: i32
The number of times the sound was rated
rate: String
The URI for rating the sound
comments: String
The URI for the comments
num_comments: i32
The number of comments
comment: String
The URI to comment the sound
similar_sounds: String
URI for similar sounds
analysis: Option<Value>
Analysis data (when requested)
analysis_stats: String
URI for complete analysis results
analysis_frames: String
URI for analysis frames