API data format clarifications

25 views
Skip to first unread message

Stefan Kersten

unread,
Oct 15, 2012, 1:31:55 PM10/15/12
to freeso...@googlegroups.com
hi,

i'm currently updating my freesound library for haskell [1] to the new API and have a couple of questions regarding data formats (that could maybe be clarified in the documentation):

* is the sound file type guaranteed to be one of [ wav, aif, ogg, mp3, flac ]? note that the filter documentation uses "aiff" but the actual string returned by the API is "aif".
* is the date format of a sound's 'created' field guaranteed to be "%Y-%m-%d %H:%M:%S"?
* what's the difference between 'pack' and 'pack_tokenized' in the search filters? iow, what's a tokenized string in this context?

thanks,
<sk>

[1] https://github.com/kaoskorobase/freesound

frederic font corbera

unread,
Oct 17, 2012, 7:14:26 AM10/17/12
to freeso...@googlegroups.com
hello again Stefan,

in response to your questions:

* Sound file type is not guaranteed, although the vast majority will be one of this list. However, it is true that both .aif and .aiff can be returned. We'll update the docs with that.

* Date format is guaranteed to be "%Y-%m-%d %H:%M:%S"

* "pack_tokenized" is an optimization of "pack" in the sounds search filter but we will probably merge both properties in the future because there are quite redundant.



frederic
Reply all
Reply to author
Forward
0 new messages