Transcript Enrichment

Summarization

Generate a concise summary using enable_summarization=True. Result in nlp_analysis.summary.


Python SDK

python
config = TranscriptionConfig(
    model="zero-indic",
    enable_summarization=True,
    summary_max_length=50,
)
result = await client.asr.transcribe("audio.wav", config=config)

print(result.nlp_analysis.summary)
# Customer called about a vehicle breakdown on the road.
# Agent confirmed the complaint and promised to send a technician.

REST API

terminal
curl -X POST https://asr.shunyalabs.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer <API_KEY>" \
  -F "[email protected]" \
  -F "model=zero-indic" \
  -F "enable_summarization=true" \
  -F "summary_max_length=50"

Output

json
{
  "nlp_analysis": {
    "summary": "Customer called about a vehicle breakdown on the road. Agent confirmed the complaint and promised to send a technician."
  }
}