hume 0.9.11 → 0.9.13
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/chat.yml +1 -0
- package/.mock/definition/expression-measurement/batch/__package__.yml +76 -61
- package/.mock/definition/expression-measurement/{v0StreamModels.yml → stream/stream.yml} +15 -14
- package/.mock/definition/tts/__package__.yml +38 -23
- package/.mock/definition/tts/voices.yml +3 -3
- package/.mock/fern.config.json +1 -1
- 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/customVoices/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Transcription.d.ts +0 -1
- package/api/resources/expressionMeasurement/resources/stream/index.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/stream/index.js +1 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/index.d.ts +2 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/index.js +31 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/index.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/index.js +17 -0
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/Config.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamErrorMessage.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictions.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsBurst.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacePredictionsItem.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacemesh.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemeshPredictionsItem.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguage.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelsEndpointPayload.d.ts +1 -1
- package/{dist/api/resources/expressionMeasurement → api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessage.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +21 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +37 -0
- package/api/resources/expressionMeasurement/resources/stream/types/index.d.ts +0 -21
- package/api/resources/expressionMeasurement/resources/stream/types/index.js +0 -21
- package/api/resources/tts/client/Client.d.ts +3 -20
- package/api/resources/tts/client/Client.js +3 -21
- package/api/resources/tts/resources/voices/client/Client.js +1 -1
- package/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
- package/api/resources/tts/types/PostedUtterance.d.ts +4 -0
- package/api/resources/tts/types/Snippet.d.ts +6 -0
- package/api/resources/tts/types/index.d.ts +0 -1
- package/api/resources/tts/types/index.js +0 -1
- 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/customVoices/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Transcription.d.ts +0 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/index.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/index.js +1 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/index.d.ts +2 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/index.js +31 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/index.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/index.js +17 -0
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/Config.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamErrorMessage.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictions.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsBurst.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacePredictionsItem.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacemesh.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemeshPredictionsItem.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguage.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelsEndpointPayload.d.ts +1 -1
- package/{api/resources/expressionMeasurement → dist/api/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessage.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +21 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +37 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/types/index.d.ts +0 -21
- package/dist/api/resources/expressionMeasurement/resources/stream/types/index.js +0 -21
- package/dist/api/resources/tts/client/Client.d.ts +3 -20
- package/dist/api/resources/tts/client/Client.js +3 -21
- package/dist/api/resources/tts/resources/voices/client/Client.js +1 -1
- package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +4 -0
- package/dist/api/resources/tts/types/Snippet.d.ts +6 -0
- package/dist/api/resources/tts/types/index.d.ts +0 -1
- package/dist/api/resources/tts/types/index.js +0 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/index.d.ts +1 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/index.js +1 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/index.d.ts +2 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/index.js +31 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/index.d.ts +1 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/index.js +17 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/Config.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/Config.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/JobDetails.d.ts +3 -3
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/JobDetails.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamErrorMessage.d.ts +3 -3
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamErrorMessage.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamFace.d.ts +3 -3
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamFace.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamLanguage.d.ts +3 -3
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamLanguage.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictions.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictions.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurst.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurst.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurstPredictionsItem.d.ts +5 -5
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurstPredictionsItem.js +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacePredictionsItem.d.ts +5 -5
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacePredictionsItem.js +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemesh.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemesh.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.d.ts +4 -4
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.js +2 -2
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsJobDetails.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsJobDetails.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguage.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguage.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.d.ts +7 -7
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.js +5 -5
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsodyPredictionsItem.d.ts +5 -5
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.js +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelsEndpointPayload.d.ts +3 -3
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelsEndpointPayload.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessage.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessage.js +1 -1
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessageJobDetails.d.ts +3 -3
- package/{serialization/resources/expressionMeasurement → dist/serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessageJobDetails.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.d.ts +3 -3
- package/dist/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.js +1 -1
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +21 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +37 -0
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/index.d.ts +0 -21
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/index.js +0 -21
- package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +2 -0
- package/dist/serialization/resources/tts/types/PostedUtterance.js +2 -0
- package/dist/serialization/resources/tts/types/Snippet.d.ts +3 -0
- package/dist/serialization/resources/tts/types/Snippet.js +3 -0
- package/dist/serialization/resources/tts/types/index.d.ts +0 -1
- package/dist/serialization/resources/tts/types/index.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/index.d.ts +1 -0
- package/serialization/resources/expressionMeasurement/resources/stream/index.js +1 -0
- package/serialization/resources/expressionMeasurement/resources/stream/resources/index.d.ts +2 -0
- package/serialization/resources/expressionMeasurement/resources/stream/resources/index.js +31 -0
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/index.d.ts +1 -0
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/index.js +17 -0
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/Config.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/Config.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/JobDetails.d.ts +3 -3
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/JobDetails.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamErrorMessage.d.ts +3 -3
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamErrorMessage.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamFace.d.ts +3 -3
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamFace.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamLanguage.d.ts +3 -3
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamLanguage.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictions.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictions.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurst.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurst.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurstPredictionsItem.d.ts +5 -5
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurstPredictionsItem.js +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacePredictionsItem.d.ts +5 -5
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacePredictionsItem.js +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemesh.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemesh.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.d.ts +4 -4
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.js +2 -2
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsJobDetails.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsJobDetails.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguage.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguage.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.d.ts +7 -7
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.js +5 -5
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsodyPredictionsItem.d.ts +5 -5
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.js +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelsEndpointPayload.d.ts +3 -3
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamModelsEndpointPayload.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessage.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessage.js +1 -1
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessageJobDetails.d.ts +3 -3
- package/{dist/serialization/resources/expressionMeasurement → serialization/resources/expressionMeasurement/resources/stream}/resources/stream/types/StreamWarningMessageJobDetails.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.d.ts +3 -3
- package/serialization/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.js +1 -1
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +21 -0
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +37 -0
- package/serialization/resources/expressionMeasurement/resources/stream/types/index.d.ts +0 -21
- package/serialization/resources/expressionMeasurement/resources/stream/types/index.js +0 -21
- package/serialization/resources/tts/types/PostedUtterance.d.ts +2 -0
- package/serialization/resources/tts/types/PostedUtterance.js +2 -0
- package/serialization/resources/tts/types/Snippet.d.ts +3 -0
- package/serialization/resources/tts/types/Snippet.js +3 -0
- package/serialization/resources/tts/types/index.d.ts +0 -1
- package/serialization/resources/tts/types/index.js +0 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/tts/types/PostedTtsRecord.d.ts +0 -11
- package/api/resources/tts/types/PostedTtsRecord.js +0 -5
- package/dist/api/resources/tts/types/PostedTtsRecord.d.ts +0 -11
- package/dist/api/resources/tts/types/PostedTtsRecord.js +0 -5
- package/dist/serialization/resources/tts/types/PostedTtsRecord.d.ts +0 -17
- package/dist/serialization/resources/tts/types/PostedTtsRecord.js +0 -38
- package/serialization/resources/tts/types/PostedTtsRecord.d.ts +0 -17
- package/serialization/resources/tts/types/PostedTtsRecord.js +0 -38
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/Config.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/JobDetails.d.ts +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/JobDetails.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamErrorMessage.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamFace.d.ts +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamFace.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamLanguage.d.ts +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamLanguage.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictions.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurst.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurstPredictionsItem.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacePredictionsItem.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemesh.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemeshPredictionsItem.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsJobDetails.d.ts +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsJobDetails.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguage.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguagePredictionsItem.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsodyPredictionsItem.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelsEndpointPayload.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessage.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessageJobDetails.d.ts +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessageJobDetails.js +0 -0
- /package/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/Config.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/JobDetails.d.ts +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/JobDetails.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamErrorMessage.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamFace.d.ts +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamFace.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamLanguage.d.ts +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamLanguage.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictions.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurst.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsBurstPredictionsItem.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFace.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacePredictionsItem.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemesh.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsFacemeshPredictionsItem.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsJobDetails.d.ts +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsJobDetails.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguage.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsLanguagePredictionsItem.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsody.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelPredictionsProsodyPredictionsItem.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamModelsEndpointPayload.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessage.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessageJobDetails.d.ts +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/StreamWarningMessageJobDetails.js +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/stream/{types → resources/stream/types}/SubscribeEvent.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Hume from "
|
|
4
|
+
import * as Hume from "../../../../../../../index";
|
|
5
5
|
export interface StreamModelPredictionsProsodyPredictionsItem {
|
|
6
6
|
time?: Hume.expressionMeasurement.stream.TimeRange;
|
|
7
7
|
emotions?: Hume.expressionMeasurement.stream.EmotionEmbedding;
|
package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./StreamModelPredictionsJobDetails";
|
|
2
|
+
export * from "./StreamModelPredictionsBurstPredictionsItem";
|
|
3
|
+
export * from "./StreamModelPredictionsBurst";
|
|
4
|
+
export * from "./StreamModelPredictionsFacePredictionsItem";
|
|
5
|
+
export * from "./StreamModelPredictionsFace";
|
|
6
|
+
export * from "./StreamModelPredictionsFacemeshPredictionsItem";
|
|
7
|
+
export * from "./StreamModelPredictionsFacemesh";
|
|
8
|
+
export * from "./StreamModelPredictionsLanguagePredictionsItem";
|
|
9
|
+
export * from "./StreamModelPredictionsLanguage";
|
|
10
|
+
export * from "./StreamModelPredictionsProsodyPredictionsItem";
|
|
11
|
+
export * from "./StreamModelPredictionsProsody";
|
|
12
|
+
export * from "./StreamModelPredictions";
|
|
13
|
+
export * from "./JobDetails";
|
|
14
|
+
export * from "./StreamErrorMessage";
|
|
15
|
+
export * from "./StreamWarningMessageJobDetails";
|
|
16
|
+
export * from "./StreamWarningMessage";
|
|
17
|
+
export * from "./SubscribeEvent";
|
|
18
|
+
export * from "./StreamFace";
|
|
19
|
+
export * from "./StreamLanguage";
|
|
20
|
+
export * from "./Config";
|
|
21
|
+
export * from "./StreamModelsEndpointPayload";
|
|
@@ -0,0 +1,37 @@
|
|
|
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("./StreamModelPredictionsJobDetails"), exports);
|
|
18
|
+
__exportStar(require("./StreamModelPredictionsBurstPredictionsItem"), exports);
|
|
19
|
+
__exportStar(require("./StreamModelPredictionsBurst"), exports);
|
|
20
|
+
__exportStar(require("./StreamModelPredictionsFacePredictionsItem"), exports);
|
|
21
|
+
__exportStar(require("./StreamModelPredictionsFace"), exports);
|
|
22
|
+
__exportStar(require("./StreamModelPredictionsFacemeshPredictionsItem"), exports);
|
|
23
|
+
__exportStar(require("./StreamModelPredictionsFacemesh"), exports);
|
|
24
|
+
__exportStar(require("./StreamModelPredictionsLanguagePredictionsItem"), exports);
|
|
25
|
+
__exportStar(require("./StreamModelPredictionsLanguage"), exports);
|
|
26
|
+
__exportStar(require("./StreamModelPredictionsProsodyPredictionsItem"), exports);
|
|
27
|
+
__exportStar(require("./StreamModelPredictionsProsody"), exports);
|
|
28
|
+
__exportStar(require("./StreamModelPredictions"), exports);
|
|
29
|
+
__exportStar(require("./JobDetails"), exports);
|
|
30
|
+
__exportStar(require("./StreamErrorMessage"), exports);
|
|
31
|
+
__exportStar(require("./StreamWarningMessageJobDetails"), exports);
|
|
32
|
+
__exportStar(require("./StreamWarningMessage"), exports);
|
|
33
|
+
__exportStar(require("./SubscribeEvent"), exports);
|
|
34
|
+
__exportStar(require("./StreamFace"), exports);
|
|
35
|
+
__exportStar(require("./StreamLanguage"), exports);
|
|
36
|
+
__exportStar(require("./Config"), exports);
|
|
37
|
+
__exportStar(require("./StreamModelsEndpointPayload"), exports);
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
export * from "./StreamModelPredictionsJobDetails";
|
|
2
|
-
export * from "./StreamModelPredictionsBurstPredictionsItem";
|
|
3
|
-
export * from "./StreamModelPredictionsBurst";
|
|
4
|
-
export * from "./StreamModelPredictionsFacePredictionsItem";
|
|
5
|
-
export * from "./StreamModelPredictionsFace";
|
|
6
|
-
export * from "./StreamModelPredictionsFacemeshPredictionsItem";
|
|
7
|
-
export * from "./StreamModelPredictionsFacemesh";
|
|
8
|
-
export * from "./StreamModelPredictionsLanguagePredictionsItem";
|
|
9
|
-
export * from "./StreamModelPredictionsLanguage";
|
|
10
|
-
export * from "./StreamModelPredictionsProsodyPredictionsItem";
|
|
11
|
-
export * from "./StreamModelPredictionsProsody";
|
|
12
|
-
export * from "./StreamModelPredictions";
|
|
13
|
-
export * from "./JobDetails";
|
|
14
|
-
export * from "./StreamErrorMessage";
|
|
15
|
-
export * from "./StreamWarningMessageJobDetails";
|
|
16
|
-
export * from "./StreamWarningMessage";
|
|
17
|
-
export * from "./SubscribeEvent";
|
|
18
|
-
export * from "./StreamFace";
|
|
19
|
-
export * from "./StreamLanguage";
|
|
20
|
-
export * from "./Config";
|
|
21
|
-
export * from "./StreamModelsEndpointPayload";
|
|
22
1
|
export * from "./EmotionEmbeddingItem";
|
|
23
2
|
export * from "./EmotionEmbedding";
|
|
24
3
|
export * from "./StreamBoundingBox";
|
|
@@ -14,27 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./StreamModelPredictionsJobDetails"), exports);
|
|
18
|
-
__exportStar(require("./StreamModelPredictionsBurstPredictionsItem"), exports);
|
|
19
|
-
__exportStar(require("./StreamModelPredictionsBurst"), exports);
|
|
20
|
-
__exportStar(require("./StreamModelPredictionsFacePredictionsItem"), exports);
|
|
21
|
-
__exportStar(require("./StreamModelPredictionsFace"), exports);
|
|
22
|
-
__exportStar(require("./StreamModelPredictionsFacemeshPredictionsItem"), exports);
|
|
23
|
-
__exportStar(require("./StreamModelPredictionsFacemesh"), exports);
|
|
24
|
-
__exportStar(require("./StreamModelPredictionsLanguagePredictionsItem"), exports);
|
|
25
|
-
__exportStar(require("./StreamModelPredictionsLanguage"), exports);
|
|
26
|
-
__exportStar(require("./StreamModelPredictionsProsodyPredictionsItem"), exports);
|
|
27
|
-
__exportStar(require("./StreamModelPredictionsProsody"), exports);
|
|
28
|
-
__exportStar(require("./StreamModelPredictions"), exports);
|
|
29
|
-
__exportStar(require("./JobDetails"), exports);
|
|
30
|
-
__exportStar(require("./StreamErrorMessage"), exports);
|
|
31
|
-
__exportStar(require("./StreamWarningMessageJobDetails"), exports);
|
|
32
|
-
__exportStar(require("./StreamWarningMessage"), exports);
|
|
33
|
-
__exportStar(require("./SubscribeEvent"), exports);
|
|
34
|
-
__exportStar(require("./StreamFace"), exports);
|
|
35
|
-
__exportStar(require("./StreamLanguage"), exports);
|
|
36
|
-
__exportStar(require("./Config"), exports);
|
|
37
|
-
__exportStar(require("./StreamModelsEndpointPayload"), exports);
|
|
38
17
|
__exportStar(require("./EmotionEmbeddingItem"), exports);
|
|
39
18
|
__exportStar(require("./EmotionEmbedding"), exports);
|
|
40
19
|
__exportStar(require("./StreamBoundingBox"), exports);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/// <reference types="node" />
|
|
4
5
|
import * as environments from "../../../../environments";
|
|
5
6
|
import * as core from "../../../../core";
|
|
6
7
|
import * as Hume from "../../../index";
|
|
8
|
+
import * as stream from "stream";
|
|
7
9
|
import { Voices } from "../resources/voices/client/Client";
|
|
8
10
|
export declare namespace Tts {
|
|
9
11
|
interface Options {
|
|
@@ -56,28 +58,9 @@ export declare class Tts {
|
|
|
56
58
|
* 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.
|
|
57
59
|
*
|
|
58
60
|
* The response contains the generated audio file in the requested format.
|
|
59
|
-
*
|
|
60
|
-
* @param {Hume.tts.PostedTts} request
|
|
61
|
-
* @param {Tts.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
-
*
|
|
63
61
|
* @throws {@link Hume.tts.UnprocessableEntityError}
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* await client.tts.synthesizeFile({
|
|
67
|
-
* utterances: [{
|
|
68
|
-
* text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
|
|
69
|
-
* description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality."
|
|
70
|
-
* }],
|
|
71
|
-
* context: {
|
|
72
|
-
* generationId: "09ad914d-8e7f-40f8-a279-e34f07f7dab2"
|
|
73
|
-
* },
|
|
74
|
-
* format: {
|
|
75
|
-
* type: "mp3"
|
|
76
|
-
* },
|
|
77
|
-
* numGenerations: 1
|
|
78
|
-
* })
|
|
79
62
|
*/
|
|
80
|
-
synthesizeFile(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<
|
|
63
|
+
synthesizeFile(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<stream.Readable>;
|
|
81
64
|
protected _voices: Voices | undefined;
|
|
82
65
|
get voices(): Voices;
|
|
83
66
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
@@ -84,7 +84,7 @@ class Tts {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/tts"),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
87
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.tts.PostedTts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -135,26 +135,7 @@ class Tts {
|
|
|
135
135
|
* 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.
|
|
136
136
|
*
|
|
137
137
|
* The response contains the generated audio file in the requested format.
|
|
138
|
-
*
|
|
139
|
-
* @param {Hume.tts.PostedTts} request
|
|
140
|
-
* @param {Tts.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
-
*
|
|
142
138
|
* @throws {@link Hume.tts.UnprocessableEntityError}
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* await client.tts.synthesizeFile({
|
|
146
|
-
* utterances: [{
|
|
147
|
-
* text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
|
|
148
|
-
* description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality."
|
|
149
|
-
* }],
|
|
150
|
-
* context: {
|
|
151
|
-
* generationId: "09ad914d-8e7f-40f8-a279-e34f07f7dab2"
|
|
152
|
-
* },
|
|
153
|
-
* format: {
|
|
154
|
-
* type: "mp3"
|
|
155
|
-
* },
|
|
156
|
-
* numGenerations: 1
|
|
157
|
-
* })
|
|
158
139
|
*/
|
|
159
140
|
synthesizeFile(request, requestOptions) {
|
|
160
141
|
var _a, _b;
|
|
@@ -162,10 +143,11 @@ class Tts {
|
|
|
162
143
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
163
144
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/tts/file"),
|
|
164
145
|
method: "POST",
|
|
165
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
146
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
166
147
|
contentType: "application/json",
|
|
167
148
|
requestType: "json",
|
|
168
149
|
body: serializers.tts.PostedTts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
150
|
+
responseType: "streaming",
|
|
169
151
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
170
152
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
171
153
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -69,7 +69,7 @@ class Voices {
|
|
|
69
69
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
70
70
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/tts/voices"),
|
|
71
71
|
method: "POST",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
requestType: "json",
|
|
75
75
|
body: serializers.tts.PostedVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface PostedVoice {
|
|
12
|
-
/**
|
|
12
|
+
/** A unique ID associated with this TTS generation that can be used as context for generating consistent speech style and prosody across multiple requests. */
|
|
13
13
|
generationId: string;
|
|
14
14
|
/** Name of the voice in the `Voice Library`. */
|
|
15
15
|
name: string;
|
|
@@ -11,8 +11,12 @@ export interface PostedUtterance {
|
|
|
11
11
|
* See our [prompting guide](/docs/text-to-speech-tts/prompting) for tips on crafting your descriptions.
|
|
12
12
|
*/
|
|
13
13
|
description?: string;
|
|
14
|
+
/** Speed multiplier for the synthesized speech. */
|
|
15
|
+
speed?: number;
|
|
14
16
|
/** The input text to be synthesized into speech. */
|
|
15
17
|
text: string;
|
|
18
|
+
/** Duration of trailing silence (in seconds) to add to this utterance */
|
|
19
|
+
trailingSilence?: number;
|
|
16
20
|
/**
|
|
17
21
|
* The `name` or `id` associated with a **Voice** from the **Voice Library** to be used as the speaker for this and all subsequent `utterances`, until the `voice` field is updated again.
|
|
18
22
|
*
|
|
@@ -4,8 +4,14 @@
|
|
|
4
4
|
export interface Snippet {
|
|
5
5
|
/** The segmented audio output in the requested format, encoded as a base64 string. */
|
|
6
6
|
audio: string;
|
|
7
|
+
/** The generated audio output format. */
|
|
8
|
+
audioFormat: string;
|
|
9
|
+
/** The generation ID this snippet corresponds to. */
|
|
10
|
+
generationId: string;
|
|
7
11
|
/** A unique ID associated with this **Snippet**. */
|
|
8
12
|
id: string;
|
|
9
13
|
/** The text for this **Snippet**. */
|
|
10
14
|
text: string;
|
|
15
|
+
/** The index of the utterance in the request this snippet corresponds to. */
|
|
16
|
+
utteranceIndex?: number;
|
|
11
17
|
}
|
|
@@ -11,7 +11,6 @@ export * from "./PostedTts";
|
|
|
11
11
|
export * from "./ReturnTts";
|
|
12
12
|
export * from "./ReturnVoice";
|
|
13
13
|
export * from "./FormatPcm";
|
|
14
|
-
export * from "./PostedTtsRecord";
|
|
15
14
|
export * from "./Snippet";
|
|
16
15
|
export * from "./PostedUtterance";
|
|
17
16
|
export * from "./ValidationErrorLocItem";
|
|
@@ -27,7 +27,6 @@ __exportStar(require("./PostedTts"), exports);
|
|
|
27
27
|
__exportStar(require("./ReturnTts"), exports);
|
|
28
28
|
__exportStar(require("./ReturnVoice"), exports);
|
|
29
29
|
__exportStar(require("./FormatPcm"), exports);
|
|
30
|
-
__exportStar(require("./PostedTtsRecord"), exports);
|
|
31
30
|
__exportStar(require("./Snippet"), exports);
|
|
32
31
|
__exportStar(require("./PostedUtterance"), exports);
|
|
33
32
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
@@ -85,7 +85,7 @@ class ChatGroups {
|
|
|
85
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
86
86
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -165,7 +165,7 @@ class ChatGroups {
|
|
|
165
165
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
166
166
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}`),
|
|
167
167
|
method: "GET",
|
|
168
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
168
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
queryParameters: _queryParams,
|
|
171
171
|
requestType: "json",
|
|
@@ -245,7 +245,7 @@ class ChatGroups {
|
|
|
245
245
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
246
246
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
|
|
247
247
|
method: "GET",
|
|
248
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
248
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
queryParameters: _queryParams,
|
|
251
251
|
requestType: "json",
|
|
@@ -325,7 +325,7 @@ class ChatGroups {
|
|
|
325
325
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
326
326
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/audio`),
|
|
327
327
|
method: "GET",
|
|
328
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
328
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
329
329
|
contentType: "application/json",
|
|
330
330
|
queryParameters: _queryParams,
|
|
331
331
|
requestType: "json",
|
|
@@ -85,7 +85,7 @@ class Chats {
|
|
|
85
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
86
86
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chats"),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -177,7 +177,7 @@ class Chats {
|
|
|
177
177
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
178
178
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
|
|
179
179
|
method: "GET",
|
|
180
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
180
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
181
181
|
contentType: "application/json",
|
|
182
182
|
queryParameters: _queryParams,
|
|
183
183
|
requestType: "json",
|
|
@@ -252,7 +252,7 @@ class Chats {
|
|
|
252
252
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
253
253
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}/audio`),
|
|
254
254
|
method: "GET",
|
|
255
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
256
256
|
contentType: "application/json",
|
|
257
257
|
requestType: "json",
|
|
258
258
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -85,7 +85,7 @@ class Configs {
|
|
|
85
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
86
86
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -181,7 +181,7 @@ class Configs {
|
|
|
181
181
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
182
182
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
183
183
|
method: "POST",
|
|
184
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
184
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -259,7 +259,7 @@ class Configs {
|
|
|
259
259
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
260
260
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
261
261
|
method: "GET",
|
|
262
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
262
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
263
263
|
contentType: "application/json",
|
|
264
264
|
queryParameters: _queryParams,
|
|
265
265
|
requestType: "json",
|
|
@@ -359,7 +359,7 @@ class Configs {
|
|
|
359
359
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
360
360
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
361
361
|
method: "POST",
|
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
@@ -427,7 +427,7 @@ class Configs {
|
|
|
427
427
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
428
428
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
429
429
|
method: "DELETE",
|
|
430
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
430
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
431
431
|
contentType: "application/json",
|
|
432
432
|
requestType: "json",
|
|
433
433
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -490,7 +490,7 @@ class Configs {
|
|
|
490
490
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
491
491
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
492
492
|
method: "PATCH",
|
|
493
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
493
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
494
494
|
contentType: "application/json",
|
|
495
495
|
requestType: "json",
|
|
496
496
|
body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -557,7 +557,7 @@ class Configs {
|
|
|
557
557
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
558
558
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
559
559
|
method: "GET",
|
|
560
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
560
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
561
561
|
contentType: "application/json",
|
|
562
562
|
requestType: "json",
|
|
563
563
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -627,7 +627,7 @@ class Configs {
|
|
|
627
627
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
628
628
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
629
629
|
method: "DELETE",
|
|
630
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
630
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
631
631
|
contentType: "application/json",
|
|
632
632
|
requestType: "json",
|
|
633
633
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -695,7 +695,7 @@ class Configs {
|
|
|
695
695
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
696
696
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
697
697
|
method: "PATCH",
|
|
698
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
698
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
699
699
|
contentType: "application/json",
|
|
700
700
|
requestType: "json",
|
|
701
701
|
body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
|
|
@@ -79,7 +79,7 @@ class CustomVoices {
|
|
|
79
79
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
80
80
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -149,7 +149,7 @@ class CustomVoices {
|
|
|
149
149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
150
150
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
|
|
151
151
|
method: "POST",
|
|
152
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
152
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
153
153
|
contentType: "application/json",
|
|
154
154
|
requestType: "json",
|
|
155
155
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -215,7 +215,7 @@ class CustomVoices {
|
|
|
215
215
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
216
216
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
217
217
|
method: "GET",
|
|
218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
requestType: "json",
|
|
221
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -285,7 +285,7 @@ class CustomVoices {
|
|
|
285
285
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
286
286
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
287
287
|
method: "POST",
|
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
288
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -351,7 +351,7 @@ class CustomVoices {
|
|
|
351
351
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
352
352
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
353
353
|
method: "DELETE",
|
|
354
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
354
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
355
355
|
contentType: "application/json",
|
|
356
356
|
requestType: "json",
|
|
357
357
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -414,7 +414,7 @@ class CustomVoices {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
416
416
|
method: "PATCH",
|
|
417
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
417
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.empathicVoice.PostedCustomVoiceName.jsonOrThrow(request, {
|