language_groups
Create Voice Sample
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 Voice Sample
Generate voice sample.
POST
/
api
/
v1
/
language_groups
/
voices
/
sample
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.language_groups_create_voice_sample(request={
"language_code": syllable_sdk.LanguageCode.EN_US,
"voice_provider": syllable_sdk.TtsProvider.OPEN_AI,
"voice_display_name": syllable_sdk.AgentVoiceDisplayName.ONYX,
"voice_speed": 1,
"voice_pitch": 0,
})
# Handle response
print(res)
"<string>"
Authorizations
Body
application/json
Request model to generate a sample audio file for a given voice and language.
Response
200
audio/mpeg
Successful Response
The response is of type string
.
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.language_groups_create_voice_sample(request={
"language_code": syllable_sdk.LanguageCode.EN_US,
"voice_provider": syllable_sdk.TtsProvider.OPEN_AI,
"voice_display_name": syllable_sdk.AgentVoiceDisplayName.ONYX,
"voice_speed": 1,
"voice_pitch": 0,
})
# Handle response
print(res)
"<string>"