TextService
A list of all methods in the TextService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
cai_summarize | Returns Conversational Summarization to the webhook URI for segmented transcript of audios with start, end, speakerId, text(alphanumeric and punctuations). |
cai_punctuate | Returns Smart Punctuation to the provided webhook URI. |
cai_summarize
Returns Conversational Summarization to the webhook URI for segmented transcript of audios with start, end, speakerId, text(alphanumeric and punctuations).
- HTTP Method:
POST
- Endpoint:
/ai/text/v1/async/summarize
Parameters
Name | Type | Required | Description |
---|---|---|---|
request_body | SummaryInput | ✅ | The request body. |
webhook | str | ✅ | The webhook URI to which the job response will be returned |
Return Type
CaiAsyncApiResponse
Example Usage Code Snippet
from ring_central import RingCentral, Environment
from ring_central.models import SummaryInput
sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
request_body = SummaryInput(
summary_type="Extractive",
utterances=[
{
"speaker_id": "JohnDoe",
"text": "Hello! This is John.",
"start": 0.3,
"end": 5.1
}
]
)
result = sdk.text.cai_summarize(
request_body=request_body,
webhook="webhook"
)
print(result)
cai_punctuate
Returns Smart Punctuation to the provided webhook URI.
- HTTP Method:
POST
- Endpoint:
/ai/text/v1/async/punctuate
Parameters
Name | Type | Required | Description |
---|---|---|---|
request_body | PunctuateInput | ✅ | The request body. |
webhook | str | ✅ | The webhook URI to which the job response will be returned |
Return Type
CaiAsyncApiResponse
Example Usage Code Snippet
from ring_central import RingCentral, Environment
from ring_central.models import PunctuateInput
sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
request_body = PunctuateInput(
texts=[
"texts"
]
)
result = sdk.text.cai_punctuate(
request_body=request_body,
webhook="webhook"
)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs