Action on google: Play sound

32 views
Skip to first unread message

Himanshu Chhabra

unread,
Apr 29, 2018, 12:53:28 AM4/29/18
to Freesound API
I am making a google assistant app using freesound API to let users get different types of sounds.
I fetched the api by : https://freesound.org/apiv2/search/text/?query=piano&token=MY_KEY
and got json data file that I attached here.
I want to be able to play the sound back to the user.
Environment : node.js
I see no link to the sound asset too. How can I play back to the user?
data.json

Frederic Font Corbera

unread,
Apr 30, 2018, 3:53:01 AM4/30/18
to freeso...@googlegroups.com
Hi,

You need to add a parameter to your request so that the response includes a link to each individual sound along with other metadata fields. This is all explained in the documentation here: https://freesound.org/docs/api/resources_apiv2.html#search-resources 

Cheers,


frederic

---
Frederic Font
Music Technology Group
Universitat Pompeu Fabra

Freesound | www.freesound.org
Audio Commons | www.audiocommons.org


--

---
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-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages