hume 0.9.10 → 0.9.12
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/.mock/definition/empathic-voice/__package__.yml +87 -26
- package/.mock/definition/empathic-voice/chat.yml +5 -1
- package/.mock/definition/empathic-voice/chatGroups.yml +6 -0
- package/.mock/definition/empathic-voice/chatWebhooks.yml +24 -13
- package/.mock/definition/empathic-voice/chats.yml +3 -0
- package/.mock/definition/empathic-voice/configs.yml +8 -1
- package/.mock/definition/empathic-voice/customVoices.yml +23 -12
- package/.mock/definition/empathic-voice/prompts.yml +29 -21
- package/.mock/definition/empathic-voice/tools.yml +34 -27
- package/.mock/definition/expression-measurement/batch/__package__.yml +23 -0
- package/.mock/definition/expression-measurement/stream/__package__.yml +0 -435
- package/.mock/definition/expression-measurement/v0StreamModels.yml +437 -0
- package/.mock/definition/tts/__package__.yml +394 -0
- package/.mock/definition/tts/voices.yml +47 -0
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
- package/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
- package/api/resources/empathicVoice/types/Context.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +5 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -2
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/tts/client/Client.d.ts +69 -0
- package/api/resources/tts/client/Client.js +200 -0
- package/api/resources/tts/client/index.d.ts +1 -0
- package/api/resources/tts/client/index.js +2 -0
- package/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
- package/api/resources/tts/errors/index.d.ts +1 -0
- package/api/resources/tts/errors/index.js +17 -0
- package/api/resources/tts/index.d.ts +4 -0
- package/api/resources/tts/index.js +20 -0
- package/api/resources/tts/resources/index.d.ts +2 -0
- package/api/resources/tts/resources/index.js +31 -0
- package/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
- package/api/resources/tts/resources/voices/client/Client.js +126 -0
- package/api/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/api/resources/tts/resources/voices/client/index.js +17 -0
- package/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
- package/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
- package/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/api/resources/tts/resources/voices/client/requests/index.js +2 -0
- package/api/resources/tts/resources/voices/index.d.ts +1 -0
- package/api/resources/tts/resources/voices/index.js +17 -0
- package/api/resources/tts/types/AudioEncoding.d.ts +10 -0
- package/api/resources/tts/types/AudioEncoding.js +5 -0
- package/api/resources/tts/types/AudioFormatType.d.ts +9 -0
- package/api/resources/tts/types/AudioFormatType.js +11 -0
- package/api/resources/tts/types/Format.d.ts +19 -0
- package/api/resources/tts/types/Format.js +5 -0
- package/api/resources/tts/types/FormatMp3.d.ts +5 -0
- package/api/resources/tts/types/FormatMp3.js +5 -0
- package/api/resources/tts/types/FormatPcm.d.ts +5 -0
- package/api/resources/tts/types/FormatPcm.js +5 -0
- package/api/resources/tts/types/FormatWav.d.ts +5 -0
- package/api/resources/tts/types/FormatWav.js +5 -0
- package/api/resources/tts/types/HttpValidationError.d.ts +7 -0
- package/api/resources/tts/types/HttpValidationError.js +5 -0
- package/api/resources/tts/types/PostedContext.d.ts +8 -0
- package/api/resources/tts/types/PostedContext.js +5 -0
- package/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
- package/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
- package/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
- package/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
- package/api/resources/tts/types/PostedTts.d.ts +14 -0
- package/api/resources/tts/types/PostedTts.js +5 -0
- package/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
- package/api/resources/tts/types/PostedTtsRecord.js +5 -0
- package/api/resources/tts/types/PostedUtterance.d.ts +22 -0
- package/api/resources/tts/types/PostedUtterance.js +5 -0
- package/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
- package/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
- package/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
- package/api/resources/tts/types/ReturnGeneration.js +5 -0
- package/api/resources/tts/types/ReturnTts.d.ts +9 -0
- package/api/resources/tts/types/ReturnTts.js +5 -0
- package/api/resources/tts/types/ReturnVoice.d.ts +9 -0
- package/api/resources/tts/types/ReturnVoice.js +5 -0
- package/api/resources/tts/types/Snippet.d.ts +11 -0
- package/api/resources/tts/types/Snippet.js +5 -0
- package/api/resources/tts/types/ValidationError.d.ts +9 -0
- package/api/resources/tts/types/ValidationError.js +5 -0
- package/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
- package/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
- package/api/resources/tts/types/VoiceProvider.d.ts +8 -0
- package/api/resources/tts/types/VoiceProvider.js +10 -0
- package/api/resources/tts/types/index.d.ts +23 -0
- package/api/resources/tts/types/index.js +39 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
- package/dist/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
- package/dist/api/resources/empathicVoice/types/Context.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -2
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/tts/client/Client.d.ts +69 -0
- package/dist/api/resources/tts/client/Client.js +200 -0
- package/dist/api/resources/tts/client/index.d.ts +1 -0
- package/dist/api/resources/tts/client/index.js +2 -0
- package/dist/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
- package/dist/api/resources/tts/errors/index.d.ts +1 -0
- package/dist/api/resources/tts/errors/index.js +17 -0
- package/dist/api/resources/tts/index.d.ts +4 -0
- package/dist/api/resources/tts/index.js +20 -0
- package/dist/api/resources/tts/resources/index.d.ts +2 -0
- package/dist/api/resources/tts/resources/index.js +31 -0
- package/dist/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
- package/dist/api/resources/tts/resources/voices/client/Client.js +126 -0
- package/dist/api/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/client/index.js +17 -0
- package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
- package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
- package/dist/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/client/requests/index.js +2 -0
- package/dist/api/resources/tts/resources/voices/index.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/index.js +17 -0
- package/dist/api/resources/tts/types/AudioEncoding.d.ts +10 -0
- package/dist/api/resources/tts/types/AudioEncoding.js +5 -0
- package/dist/api/resources/tts/types/AudioFormatType.d.ts +9 -0
- package/dist/api/resources/tts/types/AudioFormatType.js +11 -0
- package/dist/api/resources/tts/types/Format.d.ts +19 -0
- package/dist/api/resources/tts/types/Format.js +5 -0
- package/dist/api/resources/tts/types/FormatMp3.d.ts +5 -0
- package/dist/api/resources/tts/types/FormatMp3.js +5 -0
- package/dist/api/resources/tts/types/FormatPcm.d.ts +5 -0
- package/dist/api/resources/tts/types/FormatPcm.js +5 -0
- package/dist/api/resources/tts/types/FormatWav.d.ts +5 -0
- package/dist/api/resources/tts/types/FormatWav.js +5 -0
- package/dist/api/resources/tts/types/HttpValidationError.d.ts +7 -0
- package/dist/api/resources/tts/types/HttpValidationError.js +5 -0
- package/dist/api/resources/tts/types/PostedContext.d.ts +8 -0
- package/dist/api/resources/tts/types/PostedContext.js +5 -0
- package/dist/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
- package/dist/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
- package/dist/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
- package/dist/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
- package/dist/api/resources/tts/types/PostedTts.d.ts +14 -0
- package/dist/api/resources/tts/types/PostedTts.js +5 -0
- package/dist/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
- package/dist/api/resources/tts/types/PostedTtsRecord.js +5 -0
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +22 -0
- package/dist/api/resources/tts/types/PostedUtterance.js +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
- package/dist/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
- package/dist/api/resources/tts/types/ReturnGeneration.js +5 -0
- package/dist/api/resources/tts/types/ReturnTts.d.ts +9 -0
- package/dist/api/resources/tts/types/ReturnTts.js +5 -0
- package/dist/api/resources/tts/types/ReturnVoice.d.ts +9 -0
- package/dist/api/resources/tts/types/ReturnVoice.js +5 -0
- package/dist/api/resources/tts/types/Snippet.d.ts +11 -0
- package/dist/api/resources/tts/types/Snippet.js +5 -0
- package/dist/api/resources/tts/types/ValidationError.d.ts +9 -0
- package/dist/api/resources/tts/types/ValidationError.js +5 -0
- package/dist/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
- package/dist/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
- package/dist/api/resources/tts/types/VoiceProvider.d.ts +8 -0
- package/dist/api/resources/tts/types/VoiceProvider.js +10 -0
- package/dist/api/resources/tts/types/index.d.ts +23 -0
- package/dist/api/resources/tts/types/index.js +39 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/tts/index.d.ts +2 -0
- package/dist/serialization/resources/tts/index.js +18 -0
- package/dist/serialization/resources/tts/resources/index.d.ts +2 -0
- package/dist/serialization/resources/tts/resources/index.js +31 -0
- package/dist/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/dist/serialization/resources/tts/resources/voices/client/index.js +17 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
- package/dist/serialization/resources/tts/resources/voices/index.d.ts +1 -0
- package/dist/serialization/resources/tts/resources/voices/index.js +17 -0
- package/dist/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
- package/dist/serialization/resources/tts/types/AudioEncoding.js +35 -0
- package/dist/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
- package/dist/serialization/resources/tts/types/AudioFormatType.js +31 -0
- package/dist/serialization/resources/tts/types/Format.d.ts +22 -0
- package/dist/serialization/resources/tts/types/Format.js +43 -0
- package/dist/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
- package/dist/serialization/resources/tts/types/FormatMp3.js +31 -0
- package/dist/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
- package/dist/serialization/resources/tts/types/FormatPcm.js +31 -0
- package/dist/serialization/resources/tts/types/FormatWav.d.ts +11 -0
- package/dist/serialization/resources/tts/types/FormatWav.js +31 -0
- package/dist/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
- package/dist/serialization/resources/tts/types/HttpValidationError.js +34 -0
- package/dist/serialization/resources/tts/types/PostedContext.d.ts +12 -0
- package/dist/serialization/resources/tts/types/PostedContext.js +33 -0
- package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
- package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
- package/dist/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
- package/dist/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +18 -0
- package/dist/serialization/resources/tts/types/PostedTts.js +39 -0
- package/dist/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
- package/dist/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
- package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
- package/dist/serialization/resources/tts/types/PostedUtterance.js +36 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
- package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
- package/dist/serialization/resources/tts/types/ReturnGeneration.js +40 -0
- package/dist/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
- package/dist/serialization/resources/tts/types/ReturnTts.js +35 -0
- package/dist/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
- package/dist/serialization/resources/tts/types/ReturnVoice.js +34 -0
- package/dist/serialization/resources/tts/types/Snippet.d.ts +14 -0
- package/dist/serialization/resources/tts/types/Snippet.js +35 -0
- package/dist/serialization/resources/tts/types/ValidationError.d.ts +15 -0
- package/dist/serialization/resources/tts/types/ValidationError.js +36 -0
- package/dist/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
- package/dist/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
- package/dist/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
- package/dist/serialization/resources/tts/types/VoiceProvider.js +31 -0
- package/dist/serialization/resources/tts/types/index.d.ts +23 -0
- package/dist/serialization/resources/tts/types/index.js +39 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +336 -25
- package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/tts/index.d.ts +2 -0
- package/serialization/resources/tts/index.js +18 -0
- package/serialization/resources/tts/resources/index.d.ts +2 -0
- package/serialization/resources/tts/resources/index.js +31 -0
- package/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/serialization/resources/tts/resources/voices/client/index.js +17 -0
- package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
- package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
- package/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
- package/serialization/resources/tts/resources/voices/index.d.ts +1 -0
- package/serialization/resources/tts/resources/voices/index.js +17 -0
- package/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
- package/serialization/resources/tts/types/AudioEncoding.js +35 -0
- package/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
- package/serialization/resources/tts/types/AudioFormatType.js +31 -0
- package/serialization/resources/tts/types/Format.d.ts +22 -0
- package/serialization/resources/tts/types/Format.js +43 -0
- package/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
- package/serialization/resources/tts/types/FormatMp3.js +31 -0
- package/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
- package/serialization/resources/tts/types/FormatPcm.js +31 -0
- package/serialization/resources/tts/types/FormatWav.d.ts +11 -0
- package/serialization/resources/tts/types/FormatWav.js +31 -0
- package/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
- package/serialization/resources/tts/types/HttpValidationError.js +34 -0
- package/serialization/resources/tts/types/PostedContext.d.ts +12 -0
- package/serialization/resources/tts/types/PostedContext.js +33 -0
- package/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
- package/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
- package/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
- package/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
- package/serialization/resources/tts/types/PostedTts.d.ts +18 -0
- package/serialization/resources/tts/types/PostedTts.js +39 -0
- package/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
- package/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
- package/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
- package/serialization/resources/tts/types/PostedUtterance.js +36 -0
- package/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
- package/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
- package/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
- package/serialization/resources/tts/types/ReturnGeneration.js +40 -0
- package/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
- package/serialization/resources/tts/types/ReturnTts.js +35 -0
- package/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
- package/serialization/resources/tts/types/ReturnVoice.js +34 -0
- package/serialization/resources/tts/types/Snippet.d.ts +14 -0
- package/serialization/resources/tts/types/Snippet.js +35 -0
- package/serialization/resources/tts/types/ValidationError.d.ts +15 -0
- package/serialization/resources/tts/types/ValidationError.js +36 -0
- package/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
- package/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
- package/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
- package/serialization/resources/tts/types/VoiceProvider.js +31 -0
- package/serialization/resources/tts/types/index.d.ts +23 -0
- package/serialization/resources/tts/types/index.js +39 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
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("./PostedContextWithGenerationId"), exports);
|
|
18
|
+
__exportStar(require("./PostedContextWithUtterances"), exports);
|
|
19
|
+
__exportStar(require("./AudioEncoding"), exports);
|
|
20
|
+
__exportStar(require("./AudioFormatType"), exports);
|
|
21
|
+
__exportStar(require("./ReturnGeneration"), exports);
|
|
22
|
+
__exportStar(require("./HttpValidationError"), exports);
|
|
23
|
+
__exportStar(require("./FormatMp3"), exports);
|
|
24
|
+
__exportStar(require("./PostedContext"), exports);
|
|
25
|
+
__exportStar(require("./Format"), exports);
|
|
26
|
+
__exportStar(require("./PostedTts"), exports);
|
|
27
|
+
__exportStar(require("./ReturnTts"), exports);
|
|
28
|
+
__exportStar(require("./ReturnVoice"), exports);
|
|
29
|
+
__exportStar(require("./FormatPcm"), exports);
|
|
30
|
+
__exportStar(require("./PostedTtsRecord"), exports);
|
|
31
|
+
__exportStar(require("./Snippet"), exports);
|
|
32
|
+
__exportStar(require("./PostedUtterance"), exports);
|
|
33
|
+
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
34
|
+
__exportStar(require("./ValidationError"), exports);
|
|
35
|
+
__exportStar(require("./PostedUtteranceVoiceWithId"), exports);
|
|
36
|
+
__exportStar(require("./PostedUtteranceVoiceWithName"), exports);
|
|
37
|
+
__exportStar(require("./VoiceProvider"), exports);
|
|
38
|
+
__exportStar(require("./PostedUtteranceVoice"), exports);
|
|
39
|
+
__exportStar(require("./FormatWav"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.9.
|
|
1
|
+
export declare const SDK_VERSION = "0.9.12";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1,5 +1,241 @@
|
|
|
1
1
|
# Reference
|
|
2
2
|
|
|
3
|
+
## Tts
|
|
4
|
+
|
|
5
|
+
<details><summary><code>client.tts.<a href="/src/api/resources/tts/client/Client.ts">synthesizeJson</a>({ ...params }) -> Hume.ReturnTts</code></summary>
|
|
6
|
+
<dl>
|
|
7
|
+
<dd>
|
|
8
|
+
|
|
9
|
+
#### 📝 Description
|
|
10
|
+
|
|
11
|
+
<dl>
|
|
12
|
+
<dd>
|
|
13
|
+
|
|
14
|
+
<dl>
|
|
15
|
+
<dd>
|
|
16
|
+
|
|
17
|
+
Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody.
|
|
18
|
+
|
|
19
|
+
The response includes the base64-encoded audio and metadata in JSON format.
|
|
20
|
+
|
|
21
|
+
</dd>
|
|
22
|
+
</dl>
|
|
23
|
+
</dd>
|
|
24
|
+
</dl>
|
|
25
|
+
|
|
26
|
+
#### 🔌 Usage
|
|
27
|
+
|
|
28
|
+
<dl>
|
|
29
|
+
<dd>
|
|
30
|
+
|
|
31
|
+
<dl>
|
|
32
|
+
<dd>
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
await client.tts.synthesizeJson({
|
|
36
|
+
utterances: [
|
|
37
|
+
{
|
|
38
|
+
text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
|
|
39
|
+
description:
|
|
40
|
+
"Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality.",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
context: {
|
|
44
|
+
utterances: [
|
|
45
|
+
{
|
|
46
|
+
text: "How can people see beauty so differently?",
|
|
47
|
+
description:
|
|
48
|
+
"A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question.",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
format: {
|
|
53
|
+
type: "mp3",
|
|
54
|
+
},
|
|
55
|
+
numGenerations: 1,
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
</dd>
|
|
60
|
+
</dl>
|
|
61
|
+
</dd>
|
|
62
|
+
</dl>
|
|
63
|
+
|
|
64
|
+
#### ⚙️ Parameters
|
|
65
|
+
|
|
66
|
+
<dl>
|
|
67
|
+
<dd>
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dd>
|
|
71
|
+
|
|
72
|
+
**request:** `Hume.PostedTts`
|
|
73
|
+
|
|
74
|
+
</dd>
|
|
75
|
+
</dl>
|
|
76
|
+
|
|
77
|
+
<dl>
|
|
78
|
+
<dd>
|
|
79
|
+
|
|
80
|
+
**requestOptions:** `Tts.RequestOptions`
|
|
81
|
+
|
|
82
|
+
</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
</dd>
|
|
88
|
+
</dl>
|
|
89
|
+
</details>
|
|
90
|
+
|
|
91
|
+
<details><summary><code>client.tts.<a href="/src/api/resources/tts/client/Client.ts">synthesizeFile</a>({ ...params }) -> stream.Readable</code></summary>
|
|
92
|
+
<dl>
|
|
93
|
+
<dd>
|
|
94
|
+
|
|
95
|
+
#### 📝 Description
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dd>
|
|
99
|
+
|
|
100
|
+
<dl>
|
|
101
|
+
<dd>
|
|
102
|
+
|
|
103
|
+
Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody.
|
|
104
|
+
|
|
105
|
+
The response contains the generated audio file in the requested format.
|
|
106
|
+
|
|
107
|
+
</dd>
|
|
108
|
+
</dl>
|
|
109
|
+
</dd>
|
|
110
|
+
</dl>
|
|
111
|
+
|
|
112
|
+
#### 🔌 Usage
|
|
113
|
+
|
|
114
|
+
<dl>
|
|
115
|
+
<dd>
|
|
116
|
+
|
|
117
|
+
<dl>
|
|
118
|
+
<dd>
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
await client.tts.synthesizeFile({
|
|
122
|
+
utterances: [
|
|
123
|
+
{
|
|
124
|
+
text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
|
|
125
|
+
description:
|
|
126
|
+
"Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality.",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
context: {
|
|
130
|
+
generationId: "09ad914d-8e7f-40f8-a279-e34f07f7dab2",
|
|
131
|
+
},
|
|
132
|
+
format: {
|
|
133
|
+
type: "mp3",
|
|
134
|
+
},
|
|
135
|
+
numGenerations: 1,
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
</dd>
|
|
140
|
+
</dl>
|
|
141
|
+
</dd>
|
|
142
|
+
</dl>
|
|
143
|
+
|
|
144
|
+
#### ⚙️ Parameters
|
|
145
|
+
|
|
146
|
+
<dl>
|
|
147
|
+
<dd>
|
|
148
|
+
|
|
149
|
+
<dl>
|
|
150
|
+
<dd>
|
|
151
|
+
|
|
152
|
+
**request:** `Hume.PostedTts`
|
|
153
|
+
|
|
154
|
+
</dd>
|
|
155
|
+
</dl>
|
|
156
|
+
|
|
157
|
+
<dl>
|
|
158
|
+
<dd>
|
|
159
|
+
|
|
160
|
+
**requestOptions:** `Tts.RequestOptions`
|
|
161
|
+
|
|
162
|
+
</dd>
|
|
163
|
+
</dl>
|
|
164
|
+
</dd>
|
|
165
|
+
</dl>
|
|
166
|
+
|
|
167
|
+
</dd>
|
|
168
|
+
</dl>
|
|
169
|
+
</details>
|
|
170
|
+
|
|
171
|
+
## Tts Voices
|
|
172
|
+
|
|
173
|
+
<details><summary><code>client.tts.voices.<a href="/src/api/resources/tts/resources/voices/client/Client.ts">create</a>({ ...params }) -> Hume.ReturnVoice</code></summary>
|
|
174
|
+
<dl>
|
|
175
|
+
<dd>
|
|
176
|
+
|
|
177
|
+
#### 📝 Description
|
|
178
|
+
|
|
179
|
+
<dl>
|
|
180
|
+
<dd>
|
|
181
|
+
|
|
182
|
+
<dl>
|
|
183
|
+
<dd>
|
|
184
|
+
|
|
185
|
+
Creates a new voice from a specified TTS generation ID and saves it to your **Voice Library**. This allows for consistent speech style and prosody across multiple requests.
|
|
186
|
+
|
|
187
|
+
</dd>
|
|
188
|
+
</dl>
|
|
189
|
+
</dd>
|
|
190
|
+
</dl>
|
|
191
|
+
|
|
192
|
+
#### 🔌 Usage
|
|
193
|
+
|
|
194
|
+
<dl>
|
|
195
|
+
<dd>
|
|
196
|
+
|
|
197
|
+
<dl>
|
|
198
|
+
<dd>
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
await client.tts.voices.create({
|
|
202
|
+
generationId: "795c949a-1510-4a80-9646-7d0863b023ab",
|
|
203
|
+
name: "David Hume",
|
|
204
|
+
});
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
</dd>
|
|
208
|
+
</dl>
|
|
209
|
+
</dd>
|
|
210
|
+
</dl>
|
|
211
|
+
|
|
212
|
+
#### ⚙️ Parameters
|
|
213
|
+
|
|
214
|
+
<dl>
|
|
215
|
+
<dd>
|
|
216
|
+
|
|
217
|
+
<dl>
|
|
218
|
+
<dd>
|
|
219
|
+
|
|
220
|
+
**request:** `Hume.tts.PostedVoice`
|
|
221
|
+
|
|
222
|
+
</dd>
|
|
223
|
+
</dl>
|
|
224
|
+
|
|
225
|
+
<dl>
|
|
226
|
+
<dd>
|
|
227
|
+
|
|
228
|
+
**requestOptions:** `Voices.RequestOptions`
|
|
229
|
+
|
|
230
|
+
</dd>
|
|
231
|
+
</dl>
|
|
232
|
+
</dd>
|
|
233
|
+
</dl>
|
|
234
|
+
|
|
235
|
+
</dd>
|
|
236
|
+
</dl>
|
|
237
|
+
</details>
|
|
238
|
+
|
|
3
239
|
## ExpressionMeasurement Batch
|
|
4
240
|
|
|
5
241
|
<details><summary><code>client.expressionMeasurement.batch.<a href="/src/api/resources/expressionMeasurement/resources/batch/client/Client.ts">listJobs</a>({ ...params }) -> Hume.UnionJob[]</code></summary>
|
|
@@ -347,7 +583,7 @@ await client.expressionMeasurement.batch.startInferenceJobFromLocalFile(
|
|
|
347
583
|
|
|
348
584
|
Fetches a paginated list of **Tools**.
|
|
349
585
|
|
|
350
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
586
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
351
587
|
|
|
352
588
|
</dd>
|
|
353
589
|
</dl>
|
|
@@ -415,7 +651,7 @@ await client.empathicVoice.tools.listTools({
|
|
|
415
651
|
|
|
416
652
|
Creates a **Tool** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
417
653
|
|
|
418
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
654
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
419
655
|
|
|
420
656
|
</dd>
|
|
421
657
|
</dl>
|
|
@@ -487,7 +723,7 @@ await client.empathicVoice.tools.createTool({
|
|
|
487
723
|
|
|
488
724
|
Fetches a list of a **Tool's** versions.
|
|
489
725
|
|
|
490
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
726
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
491
727
|
|
|
492
728
|
</dd>
|
|
493
729
|
</dl>
|
|
@@ -560,7 +796,7 @@ await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-60986
|
|
|
560
796
|
|
|
561
797
|
Updates a **Tool** by creating a new version of the **Tool**.
|
|
562
798
|
|
|
563
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
799
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
564
800
|
|
|
565
801
|
</dd>
|
|
566
802
|
</dl>
|
|
@@ -639,7 +875,7 @@ await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-6098
|
|
|
639
875
|
|
|
640
876
|
Deletes a **Tool** and its versions.
|
|
641
877
|
|
|
642
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
878
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
643
879
|
|
|
644
880
|
</dd>
|
|
645
881
|
</dl>
|
|
@@ -704,7 +940,7 @@ await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268be
|
|
|
704
940
|
|
|
705
941
|
Updates the name of a **Tool**.
|
|
706
942
|
|
|
707
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
943
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
708
944
|
|
|
709
945
|
</dd>
|
|
710
946
|
</dl>
|
|
@@ -779,7 +1015,7 @@ await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-6098642
|
|
|
779
1015
|
|
|
780
1016
|
Fetches a specified version of a **Tool**.
|
|
781
1017
|
|
|
782
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
1018
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
783
1019
|
|
|
784
1020
|
</dd>
|
|
785
1021
|
</dl>
|
|
@@ -858,7 +1094,7 @@ Version numbers are integer values representing different iterations of the Tool
|
|
|
858
1094
|
|
|
859
1095
|
Deletes a specified version of a **Tool**.
|
|
860
1096
|
|
|
861
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
1097
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
862
1098
|
|
|
863
1099
|
</dd>
|
|
864
1100
|
</dl>
|
|
@@ -937,7 +1173,7 @@ Version numbers are integer values representing different iterations of the Tool
|
|
|
937
1173
|
|
|
938
1174
|
Updates the description of a specified **Tool** version.
|
|
939
1175
|
|
|
940
|
-
Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
1176
|
+
Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
|
|
941
1177
|
|
|
942
1178
|
</dd>
|
|
943
1179
|
</dl>
|
|
@@ -1029,7 +1265,7 @@ Version numbers are integer values representing different iterations of the Tool
|
|
|
1029
1265
|
|
|
1030
1266
|
Fetches a paginated list of **Prompts**.
|
|
1031
1267
|
|
|
1032
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1268
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1033
1269
|
|
|
1034
1270
|
</dd>
|
|
1035
1271
|
</dl>
|
|
@@ -1097,7 +1333,7 @@ await client.empathicVoice.prompts.listPrompts({
|
|
|
1097
1333
|
|
|
1098
1334
|
Creates a **Prompt** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
1099
1335
|
|
|
1100
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1336
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1101
1337
|
|
|
1102
1338
|
</dd>
|
|
1103
1339
|
</dl>
|
|
@@ -1165,7 +1401,7 @@ await client.empathicVoice.prompts.createPrompt({
|
|
|
1165
1401
|
|
|
1166
1402
|
Fetches a list of a **Prompt's** versions.
|
|
1167
1403
|
|
|
1168
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1404
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1169
1405
|
|
|
1170
1406
|
</dd>
|
|
1171
1407
|
</dl>
|
|
@@ -1224,7 +1460,7 @@ await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-a
|
|
|
1224
1460
|
</dl>
|
|
1225
1461
|
</details>
|
|
1226
1462
|
|
|
1227
|
-
<details><summary><code>client.empathicVoice.prompts.<a href="/src/api/resources/empathicVoice/resources/prompts/client/Client.ts">
|
|
1463
|
+
<details><summary><code>client.empathicVoice.prompts.<a href="/src/api/resources/empathicVoice/resources/prompts/client/Client.ts">createPromptVersion</a>(id, { ...params }) -> Hume.ReturnPrompt | undefined</code></summary>
|
|
1228
1464
|
<dl>
|
|
1229
1465
|
<dd>
|
|
1230
1466
|
|
|
@@ -1238,7 +1474,7 @@ await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-a
|
|
|
1238
1474
|
|
|
1239
1475
|
Updates a **Prompt** by creating a new version of the **Prompt**.
|
|
1240
1476
|
|
|
1241
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1477
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1242
1478
|
|
|
1243
1479
|
</dd>
|
|
1244
1480
|
</dl>
|
|
@@ -1254,7 +1490,7 @@ See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for
|
|
|
1254
1490
|
<dd>
|
|
1255
1491
|
|
|
1256
1492
|
```typescript
|
|
1257
|
-
await client.empathicVoice.prompts.
|
|
1493
|
+
await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", {
|
|
1258
1494
|
text: "<role>You are an updated version of an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>",
|
|
1259
1495
|
versionDescription: "This is an updated version of the Weather Assistant Prompt.",
|
|
1260
1496
|
});
|
|
@@ -1314,7 +1550,7 @@ await client.empathicVoice.prompts.createPromptVerison("af699d45-2985-42cc-91b9-
|
|
|
1314
1550
|
|
|
1315
1551
|
Deletes a **Prompt** and its versions.
|
|
1316
1552
|
|
|
1317
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1553
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1318
1554
|
|
|
1319
1555
|
</dd>
|
|
1320
1556
|
</dl>
|
|
@@ -1379,7 +1615,7 @@ await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da
|
|
|
1379
1615
|
|
|
1380
1616
|
Updates the name of a **Prompt**.
|
|
1381
1617
|
|
|
1382
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1618
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1383
1619
|
|
|
1384
1620
|
</dd>
|
|
1385
1621
|
</dl>
|
|
@@ -1454,7 +1690,7 @@ await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9
|
|
|
1454
1690
|
|
|
1455
1691
|
Fetches a specified version of a **Prompt**.
|
|
1456
1692
|
|
|
1457
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1693
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1458
1694
|
|
|
1459
1695
|
</dd>
|
|
1460
1696
|
</dl>
|
|
@@ -1533,7 +1769,7 @@ Version numbers are integer values representing different iterations of the Prom
|
|
|
1533
1769
|
|
|
1534
1770
|
Deletes a specified version of a **Prompt**.
|
|
1535
1771
|
|
|
1536
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1772
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1537
1773
|
|
|
1538
1774
|
</dd>
|
|
1539
1775
|
</dl>
|
|
@@ -1612,7 +1848,7 @@ Version numbers are integer values representing different iterations of the Prom
|
|
|
1612
1848
|
|
|
1613
1849
|
Updates the description of a **Prompt**.
|
|
1614
1850
|
|
|
1615
|
-
See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
1851
|
+
See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
1616
1852
|
|
|
1617
1853
|
</dd>
|
|
1618
1854
|
</dl>
|
|
@@ -1703,7 +1939,7 @@ Version numbers are integer values representing different iterations of the Prom
|
|
|
1703
1939
|
|
|
1704
1940
|
Fetches a paginated list of **Custom Voices**.
|
|
1705
1941
|
|
|
1706
|
-
Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
1942
|
+
Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
1707
1943
|
|
|
1708
1944
|
</dd>
|
|
1709
1945
|
</dl>
|
|
@@ -1768,7 +2004,7 @@ await client.empathicVoice.customVoices.listCustomVoices();
|
|
|
1768
2004
|
|
|
1769
2005
|
Creates a **Custom Voice** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
1770
2006
|
|
|
1771
|
-
Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
2007
|
+
Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
1772
2008
|
|
|
1773
2009
|
</dd>
|
|
1774
2010
|
</dl>
|
|
@@ -1837,7 +2073,7 @@ await client.empathicVoice.customVoices.createCustomVoice({
|
|
|
1837
2073
|
|
|
1838
2074
|
Fetches a specific **Custom Voice** by ID.
|
|
1839
2075
|
|
|
1840
|
-
Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
2076
|
+
Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
1841
2077
|
|
|
1842
2078
|
</dd>
|
|
1843
2079
|
</dl>
|
|
@@ -1902,7 +2138,7 @@ await client.empathicVoice.customVoices.getCustomVoice("id");
|
|
|
1902
2138
|
|
|
1903
2139
|
Updates a **Custom Voice** by creating a new version of the **Custom Voice**.
|
|
1904
2140
|
|
|
1905
|
-
Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
2141
|
+
Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
1906
2142
|
|
|
1907
2143
|
</dd>
|
|
1908
2144
|
</dl>
|
|
@@ -1979,7 +2215,7 @@ await client.empathicVoice.customVoices.createCustomVoiceVersion("id", {
|
|
|
1979
2215
|
|
|
1980
2216
|
Deletes a **Custom Voice** and its versions.
|
|
1981
2217
|
|
|
1982
|
-
Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
2218
|
+
Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
1983
2219
|
|
|
1984
2220
|
</dd>
|
|
1985
2221
|
</dl>
|
|
@@ -2030,6 +2266,81 @@ await client.empathicVoice.customVoices.deleteCustomVoice("id");
|
|
|
2030
2266
|
</dl>
|
|
2031
2267
|
</details>
|
|
2032
2268
|
|
|
2269
|
+
<details><summary><code>client.empathicVoice.customVoices.<a href="/src/api/resources/empathicVoice/resources/customVoices/client/Client.ts">updateCustomVoiceName</a>(id, { ...params }) -> string</code></summary>
|
|
2270
|
+
<dl>
|
|
2271
|
+
<dd>
|
|
2272
|
+
|
|
2273
|
+
#### 📝 Description
|
|
2274
|
+
|
|
2275
|
+
<dl>
|
|
2276
|
+
<dd>
|
|
2277
|
+
|
|
2278
|
+
<dl>
|
|
2279
|
+
<dd>
|
|
2280
|
+
|
|
2281
|
+
Updates the name of a **Custom Voice**.
|
|
2282
|
+
|
|
2283
|
+
Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
2284
|
+
|
|
2285
|
+
</dd>
|
|
2286
|
+
</dl>
|
|
2287
|
+
</dd>
|
|
2288
|
+
</dl>
|
|
2289
|
+
|
|
2290
|
+
#### 🔌 Usage
|
|
2291
|
+
|
|
2292
|
+
<dl>
|
|
2293
|
+
<dd>
|
|
2294
|
+
|
|
2295
|
+
<dl>
|
|
2296
|
+
<dd>
|
|
2297
|
+
|
|
2298
|
+
```typescript
|
|
2299
|
+
await client.empathicVoice.customVoices.updateCustomVoiceName("id", {
|
|
2300
|
+
name: "name",
|
|
2301
|
+
});
|
|
2302
|
+
```
|
|
2303
|
+
|
|
2304
|
+
</dd>
|
|
2305
|
+
</dl>
|
|
2306
|
+
</dd>
|
|
2307
|
+
</dl>
|
|
2308
|
+
|
|
2309
|
+
#### ⚙️ Parameters
|
|
2310
|
+
|
|
2311
|
+
<dl>
|
|
2312
|
+
<dd>
|
|
2313
|
+
|
|
2314
|
+
<dl>
|
|
2315
|
+
<dd>
|
|
2316
|
+
|
|
2317
|
+
**id:** `string` — Identifier for a Custom Voice. Formatted as a UUID.
|
|
2318
|
+
|
|
2319
|
+
</dd>
|
|
2320
|
+
</dl>
|
|
2321
|
+
|
|
2322
|
+
<dl>
|
|
2323
|
+
<dd>
|
|
2324
|
+
|
|
2325
|
+
**request:** `Hume.empathicVoice.PostedCustomVoiceName`
|
|
2326
|
+
|
|
2327
|
+
</dd>
|
|
2328
|
+
</dl>
|
|
2329
|
+
|
|
2330
|
+
<dl>
|
|
2331
|
+
<dd>
|
|
2332
|
+
|
|
2333
|
+
**requestOptions:** `CustomVoices.RequestOptions`
|
|
2334
|
+
|
|
2335
|
+
</dd>
|
|
2336
|
+
</dl>
|
|
2337
|
+
</dd>
|
|
2338
|
+
</dl>
|
|
2339
|
+
|
|
2340
|
+
</dd>
|
|
2341
|
+
</dl>
|
|
2342
|
+
</details>
|
|
2343
|
+
|
|
2033
2344
|
## EmpathicVoice Configs
|
|
2034
2345
|
|
|
2035
2346
|
<details><summary><code>client.empathicVoice.configs.<a href="/src/api/resources/empathicVoice/resources/configs/client/Client.ts">listConfigs</a>({ ...params }) -> Hume.ReturnPagedConfigs</code></summary>
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Hume from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { ReturnPrompt } from "../../../types/ReturnPrompt";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.createPromptVersion.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = ReturnPrompt.Raw | null | undefined;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as createPrompt from "./createPrompt";
|
|
2
|
-
export * as
|
|
2
|
+
export * as createPromptVersion from "./createPromptVersion";
|
|
3
3
|
export * as getPromptVersion from "./getPromptVersion";
|
|
4
4
|
export * as updatePromptDescription from "./updatePromptDescription";
|
|
5
5
|
export * from "./requests";
|
|
@@ -26,9 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.updatePromptDescription = exports.getPromptVersion = exports.
|
|
29
|
+
exports.updatePromptDescription = exports.getPromptVersion = exports.createPromptVersion = exports.createPrompt = void 0;
|
|
30
30
|
exports.createPrompt = __importStar(require("./createPrompt"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.createPromptVersion = __importStar(require("./createPromptVersion"));
|
|
32
32
|
exports.getPromptVersion = __importStar(require("./getPromptVersion"));
|
|
33
33
|
exports.updatePromptDescription = __importStar(require("./updatePromptDescription"));
|
|
34
34
|
__exportStar(require("./requests"), exports);
|
|
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.empathicVoice = exports.expressionMeasurement = void 0;
|
|
26
|
+
exports.empathicVoice = exports.expressionMeasurement = exports.tts = void 0;
|
|
27
|
+
exports.tts = __importStar(require("./tts"));
|
|
27
28
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
28
29
|
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|