Transcription Sentiment
Get the sentiment of the transcription generated for the session audio.
URL
GET /v1/sessions/:sessionId/audio/transcription-sentiment
Request URL Parameters
| Parameter | Description |
|---|---|
| :sessionId | ID of the session to retrieve. |
Request Query Parameters
granularity
number
Size of each interval in seconds.
Range:
5 - 3600Default:
60start
number
Starting point of the timeline in seconds. Defaults to session start.
Default:
0end
number
End point of the timeline in seconds. Defaults to session end.
Response Body
session
string
Expandable
ID of the session
Example:
65ea1530bb50af72b6e3dc1etimeline
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
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | The request has succeeded. The client can read the result in the body. |
| 400 | Bad Request | Server received an invalid request body or invalid query parameters. |
| 404 | Not Found | The 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
}
},
{...},
{...}
]
}