@elevenlabs/elevenlabs-js 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +9 -4
- package/api/resources/conversationalAi/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/music/client/Client.d.ts +54 -0
- package/api/resources/music/client/Client.js +279 -0
- package/api/resources/music/client/index.d.ts +2 -0
- package/api/resources/music/client/index.js +17 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +20 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +5 -0
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +20 -0
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +20 -0
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +5 -0
- package/api/resources/music/client/requests/index.d.ts +3 -0
- package/api/resources/music/client/requests/index.js +2 -0
- package/api/resources/music/index.d.ts +3 -0
- package/api/resources/music/index.js +19 -0
- package/api/resources/music/resources/compositionPlan/client/Client.d.ts +48 -0
- package/api/resources/music/resources/compositionPlan/client/Client.js +137 -0
- package/api/resources/music/resources/compositionPlan/client/index.d.ts +2 -0
- package/api/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +20 -0
- package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +5 -0
- package/api/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/api/resources/music/resources/compositionPlan/client/requests/index.js +2 -0
- package/api/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/api/resources/music/resources/compositionPlan/index.js +17 -0
- package/api/resources/music/resources/index.d.ts +2 -0
- package/api/resources/music/resources/index.js +41 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
- package/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicComposeRequestOutputFormat.js +27 -0
- package/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicStreamRequestOutputFormat.js +27 -0
- package/api/resources/music/types/index.d.ts +3 -0
- package/api/resources/music/types/index.js +19 -0
- package/api/resources/speechToText/client/Client.d.ts +1 -1
- package/api/resources/speechToText/client/Client.js +7 -1
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +7 -0
- package/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +5 -0
- package/api/resources/speechToText/types/index.d.ts +1 -0
- package/api/resources/speechToText/types/index.js +1 -0
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/usage/client/Client.js +4 -1
- package/api/resources/usage/client/requests/UsageGetRequest.d.ts +4 -0
- package/api/types/BreakdownTypes.d.ts +2 -1
- package/api/types/BreakdownTypes.js +1 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +15 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +5 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +15 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +5 -0
- package/api/types/GetAgentResponseModel.d.ts +1 -0
- package/api/types/MetricType.d.ts +2 -1
- package/api/types/MetricType.js +1 -0
- package/api/types/MusicPrompt.d.ts +12 -0
- package/api/types/MusicPrompt.js +5 -0
- package/api/types/SongSection.d.ts +15 -0
- package/api/types/SongSection.js +5 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/User.d.ts +3 -1
- package/api/types/VoiceMailDetectionResultSuccessModel.d.ts +8 -0
- package/api/types/VoiceMailDetectionResultSuccessModel.js +5 -0
- package/api/types/WidgetConfigResponse.d.ts +2 -0
- package/api/types/WorkflowToolEdgeStepModel.d.ts +8 -0
- package/api/types/WorkflowToolEdgeStepModel.js +5 -0
- package/api/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +7 -0
- package/api/types/WorkflowToolMaxIterationsExceededStepModel.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +11 -0
- package/api/types/WorkflowToolNestedToolsStepModelInput.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +11 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutput.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +5 -0
- package/api/types/WorkflowToolResponseModelInput.d.ts +11 -0
- package/api/types/WorkflowToolResponseModelInput.js +5 -0
- package/api/types/WorkflowToolResponseModelInputStepsItem.d.ts +16 -0
- package/api/types/WorkflowToolResponseModelInputStepsItem.js +5 -0
- package/api/types/WorkflowToolResponseModelOutput.d.ts +11 -0
- package/api/types/WorkflowToolResponseModelOutput.js +5 -0
- package/api/types/WorkflowToolResponseModelOutputStepsItem.d.ts +16 -0
- package/api/types/WorkflowToolResponseModelOutputStepsItem.js +5 -0
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +9 -4
- package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/music/client/Client.d.ts +54 -0
- package/dist/api/resources/music/client/Client.js +279 -0
- package/dist/api/resources/music/client/index.d.ts +2 -0
- package/dist/api/resources/music/client/index.js +17 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +20 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +5 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +20 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +20 -0
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +5 -0
- package/dist/api/resources/music/client/requests/index.d.ts +3 -0
- package/dist/api/resources/music/client/requests/index.js +2 -0
- package/dist/api/resources/music/index.d.ts +3 -0
- package/dist/api/resources/music/index.js +19 -0
- package/dist/api/resources/music/resources/compositionPlan/client/Client.d.ts +48 -0
- package/dist/api/resources/music/resources/compositionPlan/client/Client.js +137 -0
- package/dist/api/resources/music/resources/compositionPlan/client/index.d.ts +2 -0
- package/dist/api/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +20 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +5 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/index.js +2 -0
- package/dist/api/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/dist/api/resources/music/resources/compositionPlan/index.js +17 -0
- package/dist/api/resources/music/resources/index.d.ts +2 -0
- package/dist/api/resources/music/resources/index.js +41 -0
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicStreamRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/index.d.ts +3 -0
- package/dist/api/resources/music/types/index.js +19 -0
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToText/client/Client.js +7 -1
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +7 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +5 -0
- package/dist/api/resources/speechToText/types/index.d.ts +1 -0
- package/dist/api/resources/speechToText/types/index.js +1 -0
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/usage/client/Client.js +4 -1
- package/dist/api/resources/usage/client/requests/UsageGetRequest.d.ts +4 -0
- package/dist/api/types/BreakdownTypes.d.ts +2 -1
- package/dist/api/types/BreakdownTypes.js +1 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +15 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +15 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +5 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/api/types/MetricType.d.ts +2 -1
- package/dist/api/types/MetricType.js +1 -0
- package/dist/api/types/MusicPrompt.d.ts +12 -0
- package/dist/api/types/MusicPrompt.js +5 -0
- package/dist/api/types/SongSection.d.ts +15 -0
- package/dist/api/types/SongSection.js +5 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/User.d.ts +3 -1
- package/dist/api/types/VoiceMailDetectionResultSuccessModel.d.ts +8 -0
- package/dist/api/types/VoiceMailDetectionResultSuccessModel.js +5 -0
- package/dist/api/types/WidgetConfigResponse.d.ts +2 -0
- package/dist/api/types/WorkflowToolEdgeStepModel.d.ts +8 -0
- package/dist/api/types/WorkflowToolEdgeStepModel.js +5 -0
- package/dist/api/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +7 -0
- package/dist/api/types/WorkflowToolMaxIterationsExceededStepModel.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +11 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInput.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +11 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelInput.d.ts +11 -0
- package/dist/api/types/WorkflowToolResponseModelInput.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelInputStepsItem.d.ts +16 -0
- package/dist/api/types/WorkflowToolResponseModelInputStepsItem.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelOutput.d.ts +11 -0
- package/dist/api/types/WorkflowToolResponseModelOutput.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelOutputStepsItem.d.ts +16 -0
- package/dist/api/types/WorkflowToolResponseModelOutputStepsItem.js +5 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/music/client/index.d.ts +1 -0
- package/dist/serialization/resources/music/client/index.js +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +48 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +48 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +17 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +48 -0
- package/dist/serialization/resources/music/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/music/client/requests/index.js +9 -0
- package/dist/serialization/resources/music/index.d.ts +3 -0
- package/dist/serialization/resources/music/index.js +19 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/index.d.ts +1 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +16 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +47 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/index.js +5 -0
- package/dist/serialization/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/dist/serialization/resources/music/resources/compositionPlan/index.js +17 -0
- package/dist/serialization/resources/music/resources/index.d.ts +2 -0
- package/dist/serialization/resources/music/resources/index.js +41 -0
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/index.d.ts +3 -0
- package/dist/serialization/resources/music/types/index.js +19 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +10 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +44 -0
- package/dist/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/types/index.js +1 -0
- package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
- package/dist/serialization/types/BreakdownTypes.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +21 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +53 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +21 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +53 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetAgentResponseModel.js +1 -0
- package/dist/serialization/types/MetricType.d.ts +1 -1
- package/dist/serialization/types/MetricType.js +1 -0
- package/dist/serialization/types/MusicPrompt.d.ts +15 -0
- package/dist/serialization/types/MusicPrompt.js +46 -0
- package/dist/serialization/types/SongSection.d.ts +16 -0
- package/dist/serialization/types/SongSection.js +47 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -1
- package/dist/serialization/types/User.d.ts +1 -0
- package/dist/serialization/types/User.js +1 -0
- package/dist/serialization/types/VoiceMailDetectionResultSuccessModel.d.ts +14 -0
- package/dist/serialization/types/VoiceMailDetectionResultSuccessModel.js +45 -0
- package/dist/serialization/types/WidgetConfigResponse.d.ts +1 -0
- package/dist/serialization/types/WidgetConfigResponse.js +1 -0
- package/dist/serialization/types/WorkflowToolEdgeStepModel.d.ts +14 -0
- package/dist/serialization/types/WorkflowToolEdgeStepModel.js +45 -0
- package/dist/serialization/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +13 -0
- package/dist/serialization/types/WorkflowToolMaxIterationsExceededStepModel.js +44 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +17 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.js +49 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +12 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +48 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +17 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +49 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +12 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +48 -0
- package/dist/serialization/types/WorkflowToolResponseModelInput.d.ts +14 -0
- package/dist/serialization/types/WorkflowToolResponseModelInput.js +48 -0
- package/dist/serialization/types/WorkflowToolResponseModelInputStepsItem.d.ts +21 -0
- package/dist/serialization/types/WorkflowToolResponseModelInputStepsItem.js +53 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutput.d.ts +14 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutput.js +48 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutputStepsItem.d.ts +21 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutputStepsItem.js +53 -0
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +3 -0
- package/dist/wrapper/ElevenLabsClient.js +8 -0
- package/dist/wrapper/index.d.ts +1 -0
- package/dist/wrapper/index.js +3 -1
- package/dist/wrapper/music.d.ts +43 -0
- package/dist/wrapper/music.js +162 -0
- package/package.json +1 -1
- package/reference.md +71 -2
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/music/client/index.d.ts +1 -0
- package/serialization/resources/music/client/index.js +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +48 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +48 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +17 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +48 -0
- package/serialization/resources/music/client/requests/index.d.ts +3 -0
- package/serialization/resources/music/client/requests/index.js +9 -0
- package/serialization/resources/music/index.d.ts +3 -0
- package/serialization/resources/music/index.js +19 -0
- package/serialization/resources/music/resources/compositionPlan/client/index.d.ts +1 -0
- package/serialization/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +16 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +47 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/index.js +5 -0
- package/serialization/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/serialization/resources/music/resources/compositionPlan/index.js +17 -0
- package/serialization/resources/music/resources/index.d.ts +2 -0
- package/serialization/resources/music/resources/index.js +41 -0
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicStreamRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/index.d.ts +3 -0
- package/serialization/resources/music/types/index.js +19 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +10 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +44 -0
- package/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/serialization/resources/speechToText/types/index.js +1 -0
- package/serialization/types/BreakdownTypes.d.ts +1 -1
- package/serialization/types/BreakdownTypes.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +21 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +53 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +21 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +53 -0
- package/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/serialization/types/GetAgentResponseModel.js +1 -0
- package/serialization/types/MetricType.d.ts +1 -1
- package/serialization/types/MetricType.js +1 -0
- package/serialization/types/MusicPrompt.d.ts +15 -0
- package/serialization/types/MusicPrompt.js +46 -0
- package/serialization/types/SongSection.d.ts +16 -0
- package/serialization/types/SongSection.js +47 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -1
- package/serialization/types/User.d.ts +1 -0
- package/serialization/types/User.js +1 -0
- package/serialization/types/VoiceMailDetectionResultSuccessModel.d.ts +14 -0
- package/serialization/types/VoiceMailDetectionResultSuccessModel.js +45 -0
- package/serialization/types/WidgetConfigResponse.d.ts +1 -0
- package/serialization/types/WidgetConfigResponse.js +1 -0
- package/serialization/types/WorkflowToolEdgeStepModel.d.ts +14 -0
- package/serialization/types/WorkflowToolEdgeStepModel.js +45 -0
- package/serialization/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +13 -0
- package/serialization/types/WorkflowToolMaxIterationsExceededStepModel.js +44 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +17 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInput.js +49 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +12 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +48 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +17 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +49 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +12 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +48 -0
- package/serialization/types/WorkflowToolResponseModelInput.d.ts +14 -0
- package/serialization/types/WorkflowToolResponseModelInput.js +48 -0
- package/serialization/types/WorkflowToolResponseModelInputStepsItem.d.ts +21 -0
- package/serialization/types/WorkflowToolResponseModelInputStepsItem.js +53 -0
- package/serialization/types/WorkflowToolResponseModelOutput.d.ts +14 -0
- package/serialization/types/WorkflowToolResponseModelOutput.js +48 -0
- package/serialization/types/WorkflowToolResponseModelOutputStepsItem.d.ts +21 -0
- package/serialization/types/WorkflowToolResponseModelOutputStepsItem.js +53 -0
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +3 -0
- package/wrapper/ElevenLabsClient.js +8 -0
- package/wrapper/index.d.ts +1 -0
- package/wrapper/index.js +3 -1
- package/wrapper/music.d.ts +43 -0
- package/wrapper/music.js +162 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as ElevenLabs from "../../../../../index";
|
|
7
|
+
export declare namespace CompositionPlan {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
/** Override the xi-api-key header */
|
|
13
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the xi-api-key header */
|
|
25
|
+
apiKey?: string | undefined;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class CompositionPlan {
|
|
31
|
+
protected readonly _options: CompositionPlan.Options;
|
|
32
|
+
constructor(_options?: CompositionPlan.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Create a composition plan for music generation. Usage of this endpoint does not cost any credits but is subject to rate limiting depending on your tier.
|
|
35
|
+
*
|
|
36
|
+
* @param {ElevenLabs.music.BodyGenerateCompositionPlanV1MusicPlanPost} request
|
|
37
|
+
* @param {CompositionPlan.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.music.compositionPlan.create({
|
|
43
|
+
* prompt: "prompt"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
create(request: ElevenLabs.music.BodyGenerateCompositionPlanV1MusicPlanPost, requestOptions?: CompositionPlan.RequestOptions): core.HttpResponsePromise<ElevenLabs.MusicPrompt>;
|
|
47
|
+
private __create;
|
|
48
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.CompositionPlan = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core"));
|
|
51
|
+
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
52
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
53
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
54
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
55
|
+
class CompositionPlan {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
|
+
this._options = _options;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a composition plan for music generation. Usage of this endpoint does not cost any credits but is subject to rate limiting depending on your tier.
|
|
61
|
+
*
|
|
62
|
+
* @param {ElevenLabs.music.BodyGenerateCompositionPlanV1MusicPlanPost} request
|
|
63
|
+
* @param {CompositionPlan.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.music.compositionPlan.create({
|
|
69
|
+
* prompt: "prompt"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
create(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__create(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
const _response = yield core.fetcher({
|
|
79
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/music/plan"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
requestType: "json",
|
|
84
|
+
body: serializers.music.BodyGenerateCompositionPlanV1MusicPlanPost.jsonOrThrow(request, {
|
|
85
|
+
unrecognizedObjectKeys: "strip",
|
|
86
|
+
}),
|
|
87
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
88
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return {
|
|
93
|
+
data: serializers.MusicPrompt.parseOrThrow(_response.body, {
|
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
|
96
|
+
allowUnrecognizedEnumValues: true,
|
|
97
|
+
breadcrumbsPrefix: ["response"],
|
|
98
|
+
}),
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
if (_response.error.reason === "status-code") {
|
|
103
|
+
switch (_response.error.statusCode) {
|
|
104
|
+
case 422:
|
|
105
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
106
|
+
unrecognizedObjectKeys: "passthrough",
|
|
107
|
+
allowUnrecognizedUnionMembers: true,
|
|
108
|
+
allowUnrecognizedEnumValues: true,
|
|
109
|
+
breadcrumbsPrefix: ["response"],
|
|
110
|
+
}), _response.rawResponse);
|
|
111
|
+
default:
|
|
112
|
+
throw new errors.ElevenLabsError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.body,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
switch (_response.error.reason) {
|
|
120
|
+
case "non-json":
|
|
121
|
+
throw new errors.ElevenLabsError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.rawBody,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
case "timeout":
|
|
127
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/music/plan.");
|
|
128
|
+
case "unknown":
|
|
129
|
+
throw new errors.ElevenLabsError({
|
|
130
|
+
message: _response.error.errorMessage,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.CompositionPlan = CompositionPlan;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* prompt: "prompt"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface BodyGenerateCompositionPlanV1MusicPlanPost {
|
|
12
|
+
/** A simple text prompt to compose a plan from. */
|
|
13
|
+
prompt: string;
|
|
14
|
+
/** The length of the composition plan to generate in milliseconds. Must be between 10000ms and 300000ms. Optional - if not provided, the model will choose a length based on the prompt. */
|
|
15
|
+
musicLengthMs?: number;
|
|
16
|
+
/** An optional composition plan to use as a source for the new composition plan. */
|
|
17
|
+
sourceCompositionPlan?: ElevenLabs.MusicPrompt;
|
|
18
|
+
/** The model to use for the generation. */
|
|
19
|
+
modelId?: "music_v1";
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type BodyGenerateCompositionPlanV1MusicPlanPost } from "./BodyGenerateCompositionPlanV1MusicPlanPost";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.compositionPlan = void 0;
|
|
40
|
+
exports.compositionPlan = __importStar(require("./compositionPlan"));
|
|
41
|
+
__exportStar(require("./compositionPlan/client/requests"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
|
|
6
|
+
*/
|
|
7
|
+
export type MusicComposeDetailedRequestOutputFormat = "mp3_22050_32" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "mp3_44100_128" | "mp3_44100_192" | "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000" | "alaw_8000" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "opus_48000_128" | "opus_48000_192";
|
|
8
|
+
export declare const MusicComposeDetailedRequestOutputFormat: {
|
|
9
|
+
readonly Mp32205032: "mp3_22050_32";
|
|
10
|
+
readonly Mp34410032: "mp3_44100_32";
|
|
11
|
+
readonly Mp34410064: "mp3_44100_64";
|
|
12
|
+
readonly Mp34410096: "mp3_44100_96";
|
|
13
|
+
readonly Mp344100128: "mp3_44100_128";
|
|
14
|
+
readonly Mp344100192: "mp3_44100_192";
|
|
15
|
+
readonly Pcm8000: "pcm_8000";
|
|
16
|
+
readonly Pcm16000: "pcm_16000";
|
|
17
|
+
readonly Pcm22050: "pcm_22050";
|
|
18
|
+
readonly Pcm24000: "pcm_24000";
|
|
19
|
+
readonly Pcm44100: "pcm_44100";
|
|
20
|
+
readonly Pcm48000: "pcm_48000";
|
|
21
|
+
readonly Ulaw8000: "ulaw_8000";
|
|
22
|
+
readonly Alaw8000: "alaw_8000";
|
|
23
|
+
readonly Opus4800032: "opus_48000_32";
|
|
24
|
+
readonly Opus4800064: "opus_48000_64";
|
|
25
|
+
readonly Opus4800096: "opus_48000_96";
|
|
26
|
+
readonly Opus48000128: "opus_48000_128";
|
|
27
|
+
readonly Opus48000192: "opus_48000_192";
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MusicComposeDetailedRequestOutputFormat = void 0;
|
|
7
|
+
exports.MusicComposeDetailedRequestOutputFormat = {
|
|
8
|
+
Mp32205032: "mp3_22050_32",
|
|
9
|
+
Mp34410032: "mp3_44100_32",
|
|
10
|
+
Mp34410064: "mp3_44100_64",
|
|
11
|
+
Mp34410096: "mp3_44100_96",
|
|
12
|
+
Mp344100128: "mp3_44100_128",
|
|
13
|
+
Mp344100192: "mp3_44100_192",
|
|
14
|
+
Pcm8000: "pcm_8000",
|
|
15
|
+
Pcm16000: "pcm_16000",
|
|
16
|
+
Pcm22050: "pcm_22050",
|
|
17
|
+
Pcm24000: "pcm_24000",
|
|
18
|
+
Pcm44100: "pcm_44100",
|
|
19
|
+
Pcm48000: "pcm_48000",
|
|
20
|
+
Ulaw8000: "ulaw_8000",
|
|
21
|
+
Alaw8000: "alaw_8000",
|
|
22
|
+
Opus4800032: "opus_48000_32",
|
|
23
|
+
Opus4800064: "opus_48000_64",
|
|
24
|
+
Opus4800096: "opus_48000_96",
|
|
25
|
+
Opus48000128: "opus_48000_128",
|
|
26
|
+
Opus48000192: "opus_48000_192",
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
|
|
6
|
+
*/
|
|
7
|
+
export type MusicComposeRequestOutputFormat = "mp3_22050_32" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "mp3_44100_128" | "mp3_44100_192" | "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000" | "alaw_8000" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "opus_48000_128" | "opus_48000_192";
|
|
8
|
+
export declare const MusicComposeRequestOutputFormat: {
|
|
9
|
+
readonly Mp32205032: "mp3_22050_32";
|
|
10
|
+
readonly Mp34410032: "mp3_44100_32";
|
|
11
|
+
readonly Mp34410064: "mp3_44100_64";
|
|
12
|
+
readonly Mp34410096: "mp3_44100_96";
|
|
13
|
+
readonly Mp344100128: "mp3_44100_128";
|
|
14
|
+
readonly Mp344100192: "mp3_44100_192";
|
|
15
|
+
readonly Pcm8000: "pcm_8000";
|
|
16
|
+
readonly Pcm16000: "pcm_16000";
|
|
17
|
+
readonly Pcm22050: "pcm_22050";
|
|
18
|
+
readonly Pcm24000: "pcm_24000";
|
|
19
|
+
readonly Pcm44100: "pcm_44100";
|
|
20
|
+
readonly Pcm48000: "pcm_48000";
|
|
21
|
+
readonly Ulaw8000: "ulaw_8000";
|
|
22
|
+
readonly Alaw8000: "alaw_8000";
|
|
23
|
+
readonly Opus4800032: "opus_48000_32";
|
|
24
|
+
readonly Opus4800064: "opus_48000_64";
|
|
25
|
+
readonly Opus4800096: "opus_48000_96";
|
|
26
|
+
readonly Opus48000128: "opus_48000_128";
|
|
27
|
+
readonly Opus48000192: "opus_48000_192";
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MusicComposeRequestOutputFormat = void 0;
|
|
7
|
+
exports.MusicComposeRequestOutputFormat = {
|
|
8
|
+
Mp32205032: "mp3_22050_32",
|
|
9
|
+
Mp34410032: "mp3_44100_32",
|
|
10
|
+
Mp34410064: "mp3_44100_64",
|
|
11
|
+
Mp34410096: "mp3_44100_96",
|
|
12
|
+
Mp344100128: "mp3_44100_128",
|
|
13
|
+
Mp344100192: "mp3_44100_192",
|
|
14
|
+
Pcm8000: "pcm_8000",
|
|
15
|
+
Pcm16000: "pcm_16000",
|
|
16
|
+
Pcm22050: "pcm_22050",
|
|
17
|
+
Pcm24000: "pcm_24000",
|
|
18
|
+
Pcm44100: "pcm_44100",
|
|
19
|
+
Pcm48000: "pcm_48000",
|
|
20
|
+
Ulaw8000: "ulaw_8000",
|
|
21
|
+
Alaw8000: "alaw_8000",
|
|
22
|
+
Opus4800032: "opus_48000_32",
|
|
23
|
+
Opus4800064: "opus_48000_64",
|
|
24
|
+
Opus4800096: "opus_48000_96",
|
|
25
|
+
Opus48000128: "opus_48000_128",
|
|
26
|
+
Opus48000192: "opus_48000_192",
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
|
|
6
|
+
*/
|
|
7
|
+
export type MusicStreamRequestOutputFormat = "mp3_22050_32" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "mp3_44100_128" | "mp3_44100_192" | "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000" | "alaw_8000" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "opus_48000_128" | "opus_48000_192";
|
|
8
|
+
export declare const MusicStreamRequestOutputFormat: {
|
|
9
|
+
readonly Mp32205032: "mp3_22050_32";
|
|
10
|
+
readonly Mp34410032: "mp3_44100_32";
|
|
11
|
+
readonly Mp34410064: "mp3_44100_64";
|
|
12
|
+
readonly Mp34410096: "mp3_44100_96";
|
|
13
|
+
readonly Mp344100128: "mp3_44100_128";
|
|
14
|
+
readonly Mp344100192: "mp3_44100_192";
|
|
15
|
+
readonly Pcm8000: "pcm_8000";
|
|
16
|
+
readonly Pcm16000: "pcm_16000";
|
|
17
|
+
readonly Pcm22050: "pcm_22050";
|
|
18
|
+
readonly Pcm24000: "pcm_24000";
|
|
19
|
+
readonly Pcm44100: "pcm_44100";
|
|
20
|
+
readonly Pcm48000: "pcm_48000";
|
|
21
|
+
readonly Ulaw8000: "ulaw_8000";
|
|
22
|
+
readonly Alaw8000: "alaw_8000";
|
|
23
|
+
readonly Opus4800032: "opus_48000_32";
|
|
24
|
+
readonly Opus4800064: "opus_48000_64";
|
|
25
|
+
readonly Opus4800096: "opus_48000_96";
|
|
26
|
+
readonly Opus48000128: "opus_48000_128";
|
|
27
|
+
readonly Opus48000192: "opus_48000_192";
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MusicStreamRequestOutputFormat = void 0;
|
|
7
|
+
exports.MusicStreamRequestOutputFormat = {
|
|
8
|
+
Mp32205032: "mp3_22050_32",
|
|
9
|
+
Mp34410032: "mp3_44100_32",
|
|
10
|
+
Mp34410064: "mp3_44100_64",
|
|
11
|
+
Mp34410096: "mp3_44100_96",
|
|
12
|
+
Mp344100128: "mp3_44100_128",
|
|
13
|
+
Mp344100192: "mp3_44100_192",
|
|
14
|
+
Pcm8000: "pcm_8000",
|
|
15
|
+
Pcm16000: "pcm_16000",
|
|
16
|
+
Pcm22050: "pcm_22050",
|
|
17
|
+
Pcm24000: "pcm_24000",
|
|
18
|
+
Pcm44100: "pcm_44100",
|
|
19
|
+
Pcm48000: "pcm_48000",
|
|
20
|
+
Ulaw8000: "ulaw_8000",
|
|
21
|
+
Alaw8000: "alaw_8000",
|
|
22
|
+
Opus4800032: "opus_48000_32",
|
|
23
|
+
Opus4800064: "opus_48000_64",
|
|
24
|
+
Opus4800096: "opus_48000_96",
|
|
25
|
+
Opus48000128: "opus_48000_128",
|
|
26
|
+
Opus48000192: "opus_48000_192",
|
|
27
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./MusicComposeRequestOutputFormat"), exports);
|
|
18
|
+
__exportStar(require("./MusicComposeDetailedRequestOutputFormat"), exports);
|
|
19
|
+
__exportStar(require("./MusicStreamRequestOutputFormat"), exports);
|
|
@@ -31,7 +31,7 @@ export declare class SpeechToText {
|
|
|
31
31
|
protected readonly _options: SpeechToText.Options;
|
|
32
32
|
constructor(_options?: SpeechToText.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript.
|
|
34
|
+
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
|
|
35
35
|
*
|
|
36
36
|
* @param {ElevenLabs.BodySpeechToTextV1SpeechToTextPost} request
|
|
37
37
|
* @param {SpeechToText.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -58,7 +58,7 @@ class SpeechToText {
|
|
|
58
58
|
this._options = _options;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript.
|
|
61
|
+
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
|
|
62
62
|
*
|
|
63
63
|
* @param {ElevenLabs.BodySpeechToTextV1SpeechToTextPost} request
|
|
64
64
|
* @param {SpeechToText.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -131,6 +131,12 @@ class SpeechToText {
|
|
|
131
131
|
if (request.useMultiChannel != null) {
|
|
132
132
|
_request.append("use_multi_channel", request.useMultiChannel.toString());
|
|
133
133
|
}
|
|
134
|
+
if (request.webhookMetadata != null) {
|
|
135
|
+
_request.append("webhook_metadata", (() => {
|
|
136
|
+
const mapped = serializers.SpeechToTextConvertRequestWebhookMetadata.jsonOrThrow(request.webhookMetadata, { unrecognizedObjectKeys: "strip" });
|
|
137
|
+
return typeof mapped === "string" ? mapped : (0, json_1.toJson)(mapped);
|
|
138
|
+
})());
|
|
139
|
+
}
|
|
134
140
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
135
141
|
const _response = yield core.fetcher({
|
|
136
142
|
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/speech-to-text"),
|
|
@@ -50,4 +50,6 @@ export interface BodySpeechToTextV1SpeechToTextPost {
|
|
|
50
50
|
seed?: number;
|
|
51
51
|
/** Whether the audio file contains multiple channels where each channel contains a single speaker. When enabled, each channel will be transcribed independently and the results will be combined. Each word in the response will include a 'channel_index' field indicating which channel it was spoken on. A maximum of 5 channels is supported. */
|
|
52
52
|
useMultiChannel?: boolean;
|
|
53
|
+
/** Optional metadata to be included in the webhook response. This should be a JSON string representing an object with a maximum depth of 2 levels and maximum size of 16KB. Useful for tracking internal IDs, job references, or other contextual information. */
|
|
54
|
+
webhookMetadata?: ElevenLabs.SpeechToTextConvertRequestWebhookMetadata;
|
|
53
55
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Optional metadata to be included in the webhook response. This should be a JSON string representing an object with a maximum depth of 2 levels and maximum size of 16KB. Useful for tracking internal IDs, job references, or other contextual information.
|
|
6
|
+
*/
|
|
7
|
+
export type SpeechToTextConvertRequestWebhookMetadata = string | Record<string, unknown>;
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./SpeechToTextConvertRequestTimestampsGranularity"), exports);
|
|
18
18
|
__exportStar(require("./SpeechToTextConvertRequestFileFormat"), exports);
|
|
19
|
+
__exportStar(require("./SpeechToTextConvertRequestWebhookMetadata"), exports);
|
|
19
20
|
__exportStar(require("./SpeechToTextConvertResponse"), exports);
|
|
@@ -52,7 +52,7 @@ export interface StreamTextToSpeechRequest {
|
|
|
52
52
|
nextRequestIds?: string[];
|
|
53
53
|
/** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
|
|
54
54
|
usePvcAsIvc?: boolean;
|
|
55
|
-
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
55
|
+
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
|
|
56
56
|
applyTextNormalization?: ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization;
|
|
57
57
|
/** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
|
|
58
58
|
applyLanguageTextNormalization?: boolean;
|
package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface StreamTextToSpeechWithTimestampsRequest {
|
|
|
52
52
|
nextRequestIds?: string[];
|
|
53
53
|
/** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
|
|
54
54
|
usePvcAsIvc?: boolean;
|
|
55
|
-
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
55
|
+
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
|
|
56
56
|
applyTextNormalization?: ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization;
|
|
57
57
|
/** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
|
|
58
58
|
applyLanguageTextNormalization?: boolean;
|
|
@@ -52,7 +52,7 @@ export interface TextToSpeechRequest {
|
|
|
52
52
|
nextRequestIds?: string[];
|
|
53
53
|
/** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
|
|
54
54
|
usePvcAsIvc?: boolean;
|
|
55
|
-
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
55
|
+
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
|
|
56
56
|
applyTextNormalization?: ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization;
|
|
57
57
|
/** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
|
|
58
58
|
applyLanguageTextNormalization?: boolean;
|
|
@@ -50,7 +50,7 @@ export interface TextToSpeechWithTimestampsRequest {
|
|
|
50
50
|
nextRequestIds?: string[];
|
|
51
51
|
/** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
|
|
52
52
|
usePvcAsIvc?: boolean;
|
|
53
|
-
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
53
|
+
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
|
|
54
54
|
applyTextNormalization?: ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization;
|
|
55
55
|
/** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
|
|
56
56
|
applyLanguageTextNormalization?: boolean;
|