Skip to main content

Transcription Sentiment

Get the sentiment of the transcription generated for the session audio.

URL

GET /v1/sessions/:sessionId/audio/transcription-sentiment

Request URL Parameters

ParameterDescription
:sessionIdID of the session to retrieve.

Request Query Parameters

granularity
number
Size of each interval in seconds.
Range: 5 - 3600
Default: 60
start
number
Starting point of the timeline in seconds. Defaults to session start.
Default: 0
end
number
End point of the timeline in seconds. Defaults to session end.

Response Body

session
string
Expandable
ID of the session
Example: 65ea1530bb50af72b6e3dc1e
timeline
object[]
Entry in the timeline containing information about the detections in a given range and the range bounds. Note that intervals containing no data are not included in the response.

Response codes

CodeMeaningDescription
200OKThe request has succeeded. The client can read the result in the body.
400Bad RequestServer received an invalid request body or invalid query parameters.
404Not FoundThe requested resource does not exist or you do not have permissions to perform this action on it.

Request example

curl -X GET 'https://api.emogg.com/v1/sessions/:sessionId/audio/transcription-sentiment' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Example response

{
"session": "65ea1530bb50af72b6e3dc1e",
"timeline": [
{
"start": 0,
"end": 60,
"segments": 2,
"sentiments": {
"positive": 0.89,
"neutral": 1.03,
"negative": 0.98
}
},
{...},
{...}
]
}