Safe Haskell | None |
---|---|
Language | Haskell98 |
- newtype SoundId = SoundId {}
- data FileType
- data GeoTag = GeoTag {}
- class Sound a where
- data Summary
- data Detail
- url :: Detail -> URI
- description :: Detail -> Text
- geotag :: Detail -> Maybe GeoTag
- created :: Detail -> UTCTime
- sound_license :: Detail -> License
- fileType :: Detail -> FileType
- channels :: Detail -> Int
- filesize :: Detail -> Integer
- bitrate :: Detail -> Int
- bitdepth :: Detail -> Int
- duration :: Detail -> Double
- samplerate :: Detail -> Int
- sound_username :: Detail -> Text
- pack :: Detail -> Maybe (Resource Pack)
- download :: Detail -> URI
- bookmark :: Detail -> URI
- previews :: Detail -> Previews
- images :: Detail -> Images
- numDownloads :: Detail -> Integer
- avgRating :: Detail -> Double
- numRatings :: Detail -> Integer
- rate :: Detail -> URI
- comments :: Detail -> Resource (List Comment)
- numComments :: Detail -> Integer
- comment :: Detail -> URI
- similarSounds :: Detail -> Resource (List Summary)
- analysisStats :: Detail -> Resource ()
- analysisFrames :: Detail -> Resource ()
- soundById :: SoundId -> Freesound Detail
- soundDetail :: Summary -> Freesound Detail
Documentation
Coordinate
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).
sound_license :: Detail -> License Source
The license under which the sound is available to you.
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.
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.
numRatings :: Detail -> Integer Source
The number of times the sound was rated.
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.
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.
soundDetail :: Summary -> Freesound Detail Source
Get detailed sound information from its summary.