Create Markdown Formatted Transcript
This API returns you a formatted transcript in Markdown format. You can use this markdown payload as is, in any of your markdown compatible UI components or simply store in your database. The API can break down the transcript into paragraphs, highlight key phrases and attach speaker identities in the transcript.
#
For example:Raw Markdown payload
Markdown format looks like
Speaker 1: Good morning Mr. Lewis.
Speaker 1: It's good to see you again.
Speaker 2: Thanks a lot.
Speaker 1: Start Let us talk about the pricing of your accounting software.
Speaker 1: How much does it cost to the customer?
Speaker 2: The software is sold as a yearly subscription the full cost to the customer is two thousand five hundred dollars per.
Speaker 1: Okay.
#
HTTP RequestPOST https://api.symbl.ai/v1/conversations/{conversationId}/transcript
#
Example API call- cURL
- Javascript
#
ResponseWhen showSpeakerSeparation is false
showSpeakerSeparation is true
#
Request HeaderName | REQUIRED | Description |
---|---|---|
x-api-key | Yes | Your authentication token |
Content-Type | Yes | Accepted value application/json |
#
Request BodyName | REQUIRED | Description |
---|---|---|
contentType | Yes | Content Type of response. |
createParagraphs | No | This boolean parameter specifies whether or not the transcription for the Conversation should be broken down into logical paragraphs. |
phrases | No | This is a json field which accepts two values highlightOnlyInsightKeyPhrases and highlightAllKeyPhrases . Both variables accepts boolean format. |
showSpeakerSeparation | No | When set to true , response will generate the transcript with each sentence separated by Speaker who spoke that sentence. If set to false it will not have any impact on the generated transcript. |
#
contentType memberName | Supported |
---|---|
text/markdown | Yes |
#
createParagraphs memberIf the value is true
the paragraphs will be generated on the basis of existing
Messages and references to these messages (through messageIds
).
If the value is false
then the content will be returned as is without any line breaks.
#
phrases memberThis object specifies highlighting related to phrases detected for different entities by the backend. It mainly contains two properties:
highlightOnlyInsightKeyPhrases
- Will generate highlighting syntax according to the contentType only for the key phrases detected for Insights if passed astrue
highlightAllKeyPhrases
- Will generate highlighting syntax according to the contentType only for the key phrases detected for all the entities (both Insights and Messages) if passed astrue
. For messages key phrases to be detected and highlighting please passdetectPhrases
totrue
in Async APIs.
info
The highlighted text is present in the response structure with <mark>
tags.
#
showSpeakerSeparation membershowSpeakerSeparation
only works when speaker information must be passed while
sending the conversation information.
In Async API - Diarization must be turned on.
In Telephony API, Streaming API and Javascript SDK - Speaker events must be pushed.
#
Response ObjectName | Description |
---|---|
transcript | This json field contain two fields payload and contentType. |
#
Transcript objectName | Description |
---|---|
payload | The transcription content formatted according to the contentType and other request attributes passed in the request. |
contentType | The contentType passed in the request body of the transcription. |