Home
Freesound Client Documentation
This Library is a wrapper around the freesound API, an application interface that allows you to browse, search and retrieve information stored in the Freesound.org Database. For more information visit the developer page
https://freesound.org/help/developers/
DISCLAIMER The official python library is the freesound-python. This implementation has been developed for teaching purpose. Read the Motivation Page for more insights
The Freesound API is very well documented and it is a useful resource to make the best use out of this library.
Index
The documentation is organised in 5 sections:
-
- the FreeSound Client tutorial that helps you to get started with this library
- the Freesound API tutorial for those who are not familar with the Freesound API
plus an Appendix to keep track of the Missing Features and to provide a list of Query Examples as well as a indeces file for each feature of the Freesound API: fields - descriptors filters
There are two tutorials available
Before you start
Dependencies
This software depends on the requests
library which can be installed globally or locally (in a virtual environment) via pip
pip install requests
pip3 install requests
The API Credentials
In order to use this software you need an account on freesound.org and apply for an API key following this link https://freesound.org/apiv2/apply/. The form is quite straight forward in the Create new API credentials you must give a name and a description to your key, accept the terms of use and click on Request new access crediantials
Basic set up
create a new file and create two constants where you insert your API Credentials:
API_KEY=<your-api-key>
USER_ID=<your-user-id>
Note: you can use an
.env
file to save your credentials in a safer place
then create an instance of the FreeSoundClient
as follows
from freesound import *
API_KEY=<your-api-key>
USER_ID=<your-user-id>
c = FreeSoundClient(USER_ID,API_KEY) # The API Client
Please follow the Tutorial or the How To sections to learn how to get started with the Freesound Client Library