Intent Recognition
Intent Recognition recognizes speaker intent throughout a transcript.
intents
boolean Default: false
Try this feature out in our API Playground!
Deepgram’s Intent Recognition feature recognizes speaker intent throughout an entire transcript, returning a list of text segments and the intents found within each segment.
The intents that can be identified are not a fixed list; this TSLM powered feature is able to generate intents based on the context of the language content in the transcript. You may also choose to use the optional custom-intent
parameter to provide a custom intent you want detected if present within your audio.
Enable Feature
To enable Intent Recognition, use the following parameter in the query string when you call Deepgram’s /listen
endpoint:
intents=true
To transcribe audio from a file on your computer, run the following curl command in a terminal or your favorite API client.
Enable Feature with Custom Intents
Replace YOUR_DEEPGRAM_API_KEY
with your Deepgram API Key.
Query Parameters
Analyze Response
When the file is finished processing, you’ll receive a JSON response that has the following basic structure:
Use the API reference or the API Playground to view the detailed response.
The response object values for intents
are:
segments
: The list of segments of text identified by the model as containing notable intents.intent
: The name of the intent detected by the model. This will always be in the form of a verb.confidence_score
: a floating point from 0 to 1 representing the models confidence in this prediction.
API Warning Response
Warning
If you request Intent Recognition with an unsupported language by specifying a language code such as intents=true&language=es
or intents=true&detect_language=true
where the detected language is unsupported, you will get the warning message below.
Example Warning
Here is an example of the JSON structure of a request with warning object.