This quickstart demonstrates how to load an audio file and request your spoken keywords in just a matter of minutes.
Configuring Your Environment
While you can use any programming language you choose, we provide a few helper libraries to get you started. In most cases, you can use your favorite package manager:
Although we don't have a curl library, the command-line JSON parser 'jq' is super helpful. Download and install it to get started: http://stedolan.github.io/jq/
First include the SDK and create your object using your API Key. Once you’ve created the object, you can use the object to load each of your audio files as shown:
Naming the bundle and providing a notify_url are both optional. We have a number of audio and video files available for processing on our Media Page.
Note: You don't have to download these files. Instead you can pass the urls via the create/POST method shown above.
After creating a bundle, you'll receive a response which looks something like this:
Getting your Keywords
The most important part of the bundle notification is the href of the clarify:insights key. By retrieving the contents of that URI, Clarify will give you a list of the Insights available.
This will return with the list of available insights:
The most important part of this payload is the href of the insight:spoken_keywords key. By retrieving the contents of that URI, Clarify will give you the top 20 keywords recognized from the audio.
The final result of which is our list of keywords:
From here, we can process the keywords just like any other JSON array. You may want to use them to perform informed searches, display word clouds, or tag your media. At this point, it's up to you.