Generated reference · Contracts

tts contracts

@oshun/contracts/tts - Canonical TTS Gateway Contract

9modules138symbols

On this page

The contract surface of @oshun/contracts/tts, enumerated from its exports — every module linked to source.

client (5)#

source

OshunTTSClientTTSProviderStatusTTSProviderStatusSchemaVoiceFilterVoiceFilterSchema

cloning (14)#

source

CloneVoiceRequestCloneVoiceRequestSchemaQualityCheckQualityCheckSchemaVoiceCloneVoiceCloneConsentVoiceCloneConsentSchemaVoiceCloneSchemaVoiceCloneStatusVoiceCloneStatusSchemaVoiceQualityValidationVoiceQualityValidationSchemaVoiceSampleVoiceSampleSchema

cloning-workflow (9)#

source

CloningWorkflowEventCloningWorkflowOptionsConsentRecordConsentRegistryDefaultWatermarkEmbedderInMemoryConsentRegistryRecordConsentInputVoiceCloningWorkflowWatermarkEmbedder

errors (27)#

source

TTSAuthenticationErrorTTSBudgetExceededErrorTTSCancelledErrorTTSConsentInvalidErrorTTSConsentRequiredErrorTTSErrorTTSErrorCodeTTSErrorCodeSchemaTTSErrorOptionsTTSErrorRecordTTSErrorRecordSchemaTTSInvalidRequestErrorTTSMalformedResponseErrorTTSNetworkErrorTTSProviderErrorTTSProviderUnavailableErrorTTSQuotaErrorTTSRateLimitErrorTTSSafetyFilterErrorTTSTextTooLongErrorTTSTimeoutErrorTTSUnsupportedFormatErrorTTSUnsupportedLanguageErrorTTSUnsupportedSSMLErrorTTSVoiceNotFoundErrorTTSVoiceNotReadyErrorTTSWatermarkRequiredError

primitives (50)#

source

AudioFormatAudioFormatSchemaCLONING_PROVIDERSChannelCountChannelCountSchemaConsentRecordIdConsentRecordIdSchemaPCM_BYTES_PER_SAMPLESampleRateSampleRateSchemaTTSCostTTSCostSchemaTTSCurrencyTTSCurrencySchemaTTSIdempotencyKeyTTSIdempotencyKeySchemaTTSLocaleTTSLocaleSchemaTTSModelPricingTTSModelPricingSchemaTTSPriceMicrocentsPerKCharTTSPriceMicrocentsPerKCharSchemaTTSProviderTTSProviderSchemaTTSQuotaSnapshotTTSQuotaSnapshotSchemaTTSQuotaSpecTTSQuotaSpecSchemaTTSRequestIdTTSRequestIdSchemaTTSSessionIdTTSSessionIdSchemaTTSTenantIdTTSTenantIdSchemaTTSTraceIdTTSTraceIdSchemaTTSUserIdTTSUserIdSchemaVoiceCloneIdVoiceCloneIdSchemaVoiceProfileIdVoiceProfileIdSchemaWatermarkProofIdWatermarkProofIdSchemacomputeTTSRequestMicrocentsisPcmFormatmicrocentsToUsdPerKCharpcmDurationMsproviderSupportsCloningusdPerKCharToMicrocents

request (6)#

source

TTSRequestTTSRequestSchemaTTSRetryPolicyTTSRetryPolicySchemaTTSStreamingOptionsTTSStreamingOptionsSchema

response (8)#

source

CostEstimateCostEstimateSchemaSynthesisResultSynthesisResultSchemaTTSAttemptTraceTTSAttemptTraceSchemaWordTimingWordTimingSchema

ssml-emotion (11)#

source

EMOTION_TABLEElevenLabsEmotionSettingsEmotionProsodyNEUTRAL_EMOTIONescapeXmlmapEmotionToAzureStylemapEmotionToElevenLabsSettingsresolveEmotionsemitonesToRatiowrapWithAzureExpressAswrapWithProsody

streaming (8)#

source

AudioChunkAudioChunkSchemaStreamingSessionStreamingSessionMetricsStreamingSessionMetricsSchemaStreamingSessionResultSchemaStreamingSessionStatusStreamingSessionStatusSchema