freesound-0.3.0: Access the Freesound Project database

Safe HaskellNone
LanguageHaskell98

Sound.Freesound.Sound

Synopsis

Documentation

data GeoTag Source

Coordinate

Constructors

GeoTag 

class Sound a where Source

Methods

id :: a -> SoundId Source

The sound’s unique identifier.

name :: a -> Text Source

The name user gave to the sound.

tags :: a -> [Text] Source

An array of tags the user gave to the sound.

username :: a -> Text Source

The username of the uploader of the sound.

license :: a -> License Source

The license under which the sound is available to you.

url :: Detail -> URI Source

The URI for this sound on the Freesound website.

description :: Detail -> Text Source

The description the user gave to the sound.

geotag :: Detail -> Maybe GeoTag Source

Latitude and longitude of the geotag (only for sounds that have been geotagged).

created :: Detail -> UTCTime Source

The date of when the sound was uploaded.

sound_license :: Detail -> License Source

The license under which the sound is available to you.

fileType :: Detail -> FileType Source

The type of sound (wav, aif, mp3, etc.).

channels :: Detail -> Int Source

The number of channels.

filesize :: Detail -> Integer Source

The size of the file in bytes.

bitrate :: Detail -> Int Source

The bit rate of the sound.

bitdepth :: Detail -> Int Source

The bit depth of the sound.

duration :: Detail -> Double Source

The duration of the sound in seconds.

samplerate :: Detail -> Int Source

The samplerate of the sound.

sound_username :: Detail -> Text Source

The username of the uploader of the sound.

pack :: Detail -> Maybe (Resource Pack) Source

If the sound is part of a pack, this URI points to that pack’s API resource.

download :: Detail -> URI Source

The URI for retrieving the original sound.

bookmark :: Detail -> URI Source

The URI for bookmarking the sound.

previews :: Detail -> Previews Source

Dictionary containing the URIs for mp3 and ogg versions of the sound. The dictionary includes the fields preview-hq-mp3 and preview-lq-mp3 (for ~128kbps quality and ~64kbps quality mp3 respectively), and preview-hq-ogg and preview-lq-ogg (for ~192kbps quality and ~80kbps quality ogg respectively).

images :: Detail -> Images Source

Dictionary including the URIs for spectrogram and waveform visualizations of the sound. The dinctionary includes the fields waveform_l and waveform_m (for large and medium waveform images respectively), and spectral_l and spectral_m (for large and medium spectrogram images respectively).

numDownloads :: Detail -> Integer Source

The number of times the sound was downloaded.

avgRating :: Detail -> Double Source

The average rating of the sound.

numRatings :: Detail -> Integer Source

The number of times the sound was rated.

rate :: Detail -> URI Source

The URI for rating the sound.

comments :: Detail -> Resource (List Comment) Source

The URI of a paginated list of the comments of the sound.

numComments :: Detail -> Integer Source

The number of comments.

comment :: Detail -> URI Source

The URI to comment the sound.

similarSounds :: Detail -> Resource (List Summary) Source

URI pointing to the similarity resource (to get a list of similar sounds). , analysis :: Maybe

analysisStats :: Detail -> Resource () Source

URI pointing to the complete analysis results of the sound.

analysisFrames :: Detail -> Resource () Source

The URI for retrieving a JSON file with analysis information for each frame of the sound.

soundById :: SoundId -> Freesound Detail Source

Get a sound by id.

soundDetail :: Summary -> Freesound Detail Source

Get detailed sound information from its summary.