Speech to Text Diarization + sentiment

Diarization + sentiment

Analyze sentiment from a diarization output by its diarization ID — overall tone, per-speaker sentiment and trends across the conversation, at the analysis depth you choose.

1

Endpoint

POST /api/v1/diarization/{diarizationId}/sentiment-analysis

Authenticate with your API key in the x-api-key header. See Authentication.

HeaderValue
x-api-keyYOUR_MUNSIT_API_KEY
This is post-call analysis of an existing diarized transcription. For live calls with one speaker per audio channel, streaming with channels=2 gives per-speaker turns with per-turn Sentiment events in real time.
2

Request

The diarization record is addressed in the path; the analysis depth goes in the JSON body.

Path parameterTypeRequiredDescription
diarizationIdstring (UUID)YesDiarization record ID — from a previous Diarization run.
Body fieldTypeRequiredDescription
analysis_depthstringNolight, standard, or deep.
3

Example request

Run Diarization first, then pass its record ID here.

bash
curl -X POST "https://api.munsit.com/api/v1/diarization/42/sentiment-analysis" \ -H "x-api-key: $MUNSIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"analysis_depth": "standard"}'
4

Response highlights

The analysis covers the whole conversation and each speaker in it.

FieldWhat it tells you
languageLanguage detected in the analyzed conversation.
overall_sentimentSentiment of the conversation as a whole.
speaker_sentimentSentiment broken down per diarized speaker.
sentiment_trendsHow sentiment evolves across the conversation.
confidence_scoreConfidence of the analysis.
5

Go further

The rest of the understanding stack, and where the diarization ID comes from.

Working with an AI assistant? Every page is available as Markdown: add .md to the URL, or send an Accept: text/markdown header. For the whole documentation in one request, point it at llms-full.txt; the page index is llms.txt. Or use Copy Page, top right.