language_groups
Create Language Group
agents
channels.twilio.numbers
agents.test
conversations
data_sources
events
incidents
insights
insights.folders
insights.workflows
insights.tools
custom_messages
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
language_groups
Create Language Group
Create a new language group.
POST
/
api
/
v1
/
language_groups
import os
import syllable_sdk
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.language_groups.create(request={
"name": "Call Center 1 Languages",
"description": "Languages spoken by operators at Call Center 1",
"language_configs": [
{
"language_code": syllable_sdk.LanguageCode.EN_US,
"voice_provider": syllable_sdk.TtsProvider.OPEN_AI,
"voice_display_name": syllable_sdk.AgentVoiceDisplayName.ALLOY,
"voice_speed": 1,
"voice_pitch": 0,
"dtmf_code": 1,
},
{
"language_code": syllable_sdk.LanguageCode.ES_US,
"voice_provider": syllable_sdk.TtsProvider.GOOGLE,
"voice_display_name": syllable_sdk.AgentVoiceDisplayName.ALEJANDRO,
"voice_speed": 1,
"voice_pitch": 0,
"dtmf_code": 1,
},
],
"skip_current_language_in_message": True,
})
# Handle response
print(res)
{
"name": "Call Center 1 Languages",
"description": "Languages spoken by operators at Call Center 1",
"language_configs": [
{
"dtmf_code": 1,
"language_code": "en-US",
"voice_display_name": "Alloy",
"voice_provider": "OpenAI"
},
{
"dtmf_code": 2,
"language_code": "es-US",
"voice_display_name": "Alejandro",
"voice_provider": "Google"
}
],
"skip_current_language_in_message": true,
"id": 1,
"edit_comments": "Added Spanish support.",
"agents_info": [
{
"id": 1,
"name": "Test Agent"
}
],
"updated_at": "2024-01-01T00:00:00Z",
"last_updated_by": "user@mail.com"
}
Authorizations
Body
application/json
Request model to create a language group.
Response
200
application/json
Successful Response
Response model for language group operations. A language group is a collection of language, voice, and DTMF configuration that can be linked to an agent to define the languages and voices it supports. For more information, see Console docs.
import os
import syllable_sdk
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.language_groups.create(request={
"name": "Call Center 1 Languages",
"description": "Languages spoken by operators at Call Center 1",
"language_configs": [
{
"language_code": syllable_sdk.LanguageCode.EN_US,
"voice_provider": syllable_sdk.TtsProvider.OPEN_AI,
"voice_display_name": syllable_sdk.AgentVoiceDisplayName.ALLOY,
"voice_speed": 1,
"voice_pitch": 0,
"dtmf_code": 1,
},
{
"language_code": syllable_sdk.LanguageCode.ES_US,
"voice_provider": syllable_sdk.TtsProvider.GOOGLE,
"voice_display_name": syllable_sdk.AgentVoiceDisplayName.ALEJANDRO,
"voice_speed": 1,
"voice_pitch": 0,
"dtmf_code": 1,
},
],
"skip_current_language_in_message": True,
})
# Handle response
print(res)
{
"name": "Call Center 1 Languages",
"description": "Languages spoken by operators at Call Center 1",
"language_configs": [
{
"dtmf_code": 1,
"language_code": "en-US",
"voice_display_name": "Alloy",
"voice_provider": "OpenAI"
},
{
"dtmf_code": 2,
"language_code": "es-US",
"voice_display_name": "Alejandro",
"voice_provider": "Google"
}
],
"skip_current_language_in_message": true,
"id": 1,
"edit_comments": "Added Spanish support.",
"agents_info": [
{
"id": 1,
"name": "Test Agent"
}
],
"updated_at": "2024-01-01T00:00:00Z",
"last_updated_by": "user@mail.com"
}