Re: [freesound-api] Filter distance_to_target

18 views
Skip to first unread message

Frederic Font Corbera

unread,
May 26, 2021, 4:30:37 AM5/26/21
to freeso...@googlegroups.com
Hi,

Unfortunately there's no way to filter the distance at query time. If there are many sounds below 1 you'll need to keep paging until you get to those above. You can however optimize the number of requests by setting page size to the maximum (150).

frederic

--
Frederic Font - ffont.github.io
Music Technology Group, UPF - mtg.upf.edu
Freesound - freesound.org



On Wed, 26 May 2021 at 04:05, Sudaunt <sudau...@gmail.com> wrote:
Hi,

Can I filter my target query to include only sounds whose distance_to_target is above a certain number, or within a range? 
For example, in
https://freesound.org/apiv2/search/content?target=1234, is there a way to request only sounds whose 'distance_to_target' is greater than 1?

--

---
You received this message because you are subscribed to the Google Groups "Freesound API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freesound-ap...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freesound-api/f444da28-6cae-4c40-9967-e05f802c5812n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages