client.empathicVoice.controlPlane.send(chat_id, { ...params }) -> void
-
-
-
Send a message to a specific chat.
-
-
-
await client.empathicVoice.controlPlane.send("chat_id", { type: "session_settings" });
-
-
-
chat_id:
string
-
request:
Hume.ControlPlanePublishEvent
-
requestOptions:
ControlPlaneClient.RequestOptions
-
-
client.empathicVoice.chatGroups.listChatGroups({ ...params }) -> core.Page<Hume.ReturnChatGroup, Hume.ReturnPagedChatGroups>
-
-
-
Fetches a paginated list of Chat Groups.
-
-
-
const pageableResponse = await client.empathicVoice.chatGroups.listChatGroups({ pageNumber: 0, pageSize: 1, ascendingOrder: true, configId: "your-config-id" }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.chatGroups.listChatGroups({ pageNumber: 0, pageSize: 1, ascendingOrder: true, configId: "your-config-id" }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
request:
Hume.empathicVoice.ChatGroupsListChatGroupsRequest
-
requestOptions:
ChatGroupsClient.RequestOptions
-
-
client.empathicVoice.chatGroups.getChatGroup(id, { ...params }) -> Hume.ReturnChatGroupPagedChats
-
-
-
Fetches a ChatGroup by ID, including a paginated list of Chats associated with the ChatGroup.
-
-
-
await client.empathicVoice.chatGroups.getChatGroup("your-chat-group-id", { pageNumber: 0, pageSize: 1, ascendingOrder: true });
-
-
-
id:
stringβ Identifier for a Chat Group. Formatted as a UUID.
-
request:
Hume.empathicVoice.ChatGroupsGetChatGroupRequest
-
requestOptions:
ChatGroupsClient.RequestOptions
-
-
client.empathicVoice.chatGroups.getAudio(id, { ...params }) -> Hume.ReturnChatGroupPagedAudioReconstructions
-
-
-
Fetches a paginated list of audio for each Chat within the specified Chat Group. For more details, see our guide on audio reconstruction here.
-
-
-
await client.empathicVoice.chatGroups.getAudio("your-chat-group-id", { pageNumber: 0, pageSize: 10, ascendingOrder: true });
-
-
-
id:
stringβ Identifier for a Chat Group. Formatted as a UUID.
-
request:
Hume.empathicVoice.ChatGroupsGetAudioRequest
-
requestOptions:
ChatGroupsClient.RequestOptions
-
-
client.empathicVoice.chatGroups.listChatGroupEvents(id, { ...params }) -> core.Page<Hume.ReturnChatEvent, Hume.ReturnChatGroupPagedEvents>
-
-
-
Fetches a paginated list of Chat events associated with a Chat Group.
-
-
-
const pageableResponse = await client.empathicVoice.chatGroups.listChatGroupEvents("your-chat-group-id", { pageNumber: 0, pageSize: 3, ascendingOrder: true }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.chatGroups.listChatGroupEvents("your-chat-group-id", { pageNumber: 0, pageSize: 3, ascendingOrder: true }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
id:
stringβ Identifier for a Chat Group. Formatted as a UUID.
-
request:
Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest
-
requestOptions:
ChatGroupsClient.RequestOptions
-
-
client.empathicVoice.chats.listChats({ ...params }) -> core.Page<Hume.ReturnChat, Hume.ReturnPagedChats>
-
-
-
Fetches a paginated list of Chats.
-
-
-
const pageableResponse = await client.empathicVoice.chats.listChats({ pageNumber: 0, pageSize: 1, ascendingOrder: true }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.chats.listChats({ pageNumber: 0, pageSize: 1, ascendingOrder: true }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
request:
Hume.empathicVoice.ChatsListChatsRequest
-
requestOptions:
ChatsClient.RequestOptions
-
-
client.empathicVoice.chats.listChatEvents(id, { ...params }) -> core.Page<Hume.ReturnChatEvent, Hume.ReturnChatPagedEvents>
-
-
-
Fetches a paginated list of Chat events.
-
-
-
const pageableResponse = await client.empathicVoice.chats.listChatEvents("your-chat-id", { pageNumber: 0, pageSize: 3, ascendingOrder: true }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.chats.listChatEvents("your-chat-id", { pageNumber: 0, pageSize: 3, ascendingOrder: true }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
id:
stringβ Identifier for a Chat. Formatted as a UUID.
-
request:
Hume.empathicVoice.ChatsListChatEventsRequest
-
requestOptions:
ChatsClient.RequestOptions
-
-
client.empathicVoice.chats.getAudio(id) -> Hume.ReturnChatAudioReconstruction
-
-
-
Fetches the audio of a previous Chat. For more details, see our guide on audio reconstruction here.
-
-
-
await client.empathicVoice.chats.getAudio("your-chat-id");
-
-
-
id:
stringβ Identifier for a Chat. Formatted as a UUID.
-
requestOptions:
ChatsClient.RequestOptions
-
-
client.empathicVoice.configs.listConfigs({ ...params }) -> core.Page<Hume.ReturnConfig, Hume.ReturnPagedConfigs>
-
-
-
Fetches a paginated list of Configs.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
const pageableResponse = await client.empathicVoice.configs.listConfigs({ pageNumber: 0, pageSize: 1 }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.configs.listConfigs({ pageNumber: 0, pageSize: 1 }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
request:
Hume.empathicVoice.ConfigsListConfigsRequest
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.createConfig({ ...params }) -> Hume.ReturnConfig
-
-
-
Creates a Config which can be applied to EVI.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.createConfig({ name: "Weather Assistant Config", prompt: { id: "", version: 0 }, eviVersion: "3", voice: { provider: "HUME_AI", name: "Ava Song" }, languageModel: { modelProvider: "ANTHROPIC", modelResource: "claude-3-7-sonnet-latest", temperature: 1 }, eventMessages: { onNewChat: { enabled: false, text: "" }, onInactivityTimeout: { enabled: false, text: "" }, onMaxDurationTimeout: { enabled: false, text: "" } } });
-
-
-
request:
Hume.empathicVoice.PostedConfig
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.listConfigVersions(id, { ...params }) -> core.Page<Hume.ReturnConfig, Hume.ReturnPagedConfigs>
-
-
-
Fetches a list of a Config's versions.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
const pageableResponse = await client.empathicVoice.configs.listConfigVersions("your-config-id"); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.configs.listConfigVersions("your-config-id"); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
request:
Hume.empathicVoice.ConfigsListConfigVersionsRequest
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.createConfigVersion(id, { ...params }) -> Hume.ReturnConfig
-
-
-
Updates a Config by creating a new version of the Config.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.createConfigVersion("your-config-id", { versionDescription: "This is an updated version of the Weather Assistant Config.", eviVersion: "3", prompt: { id: "", version: 0 }, voice: { provider: "HUME_AI", name: "Ava Song" }, languageModel: { modelProvider: "ANTHROPIC", modelResource: "claude-3-7-sonnet-latest", temperature: 1 }, ellmModel: { allowShortResponses: true }, eventMessages: { onNewChat: { enabled: false, text: "" }, onInactivityTimeout: { enabled: false, text: "" }, onMaxDurationTimeout: { enabled: false, text: "" } } });
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
request:
Hume.empathicVoice.PostedConfigVersion
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.deleteConfig(id) -> void
-
-
-
Deletes a Config and its versions.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.deleteConfig("your-config-id");
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.updateConfigName(id, { ...params }) -> string
-
-
-
Updates the name of a Config.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.updateConfigName("your-config-id", { name: "Updated Weather Assistant Config Name" });
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
request:
Hume.empathicVoice.PostedConfigName
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.getConfigVersion(id, version) -> Hume.ReturnConfig
-
-
-
Fetches a specified version of a Config.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.getConfigVersion("your-config-id", 1);
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
version:
numberVersion number for a Config.
Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.deleteConfigVersion(id, version) -> void
-
-
-
Deletes a specified version of a Config.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.deleteConfigVersion("your-config-id", 1);
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
version:
numberVersion number for a Config.
Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.configs.updateConfigDescription(id, version, { ...params }) -> Hume.ReturnConfig
-
-
-
Updates the description of a Config.
For more details on configuration options and how to configure EVI, see our configuration guide.
-
-
-
await client.empathicVoice.configs.updateConfigDescription("your-config-id", 1, { versionDescription: "This is an updated version_description." });
-
-
-
id:
stringβ Identifier for a Config. Formatted as a UUID.
-
version:
numberVersion number for a Config.
Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
-
request:
Hume.empathicVoice.PostedConfigVersionDescription
-
requestOptions:
ConfigsClient.RequestOptions
-
-
client.empathicVoice.prompts.listPrompts({ ...params }) -> core.Page<(Hume.ReturnPrompt | undefined), Hume.ReturnPagedPrompts>
-
-
-
Fetches a paginated list of Prompts.
See our prompting guide for tips on crafting your system prompt.
-
-
-
const pageableResponse = await client.empathicVoice.prompts.listPrompts({ pageNumber: 0, pageSize: 2 }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.prompts.listPrompts({ pageNumber: 0, pageSize: 2 }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
request:
Hume.empathicVoice.PromptsListPromptsRequest
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.createPrompt({ ...params }) -> Hume.ReturnPrompt | undefined
-
-
-
Creates a Prompt that can be added to an EVI configuration.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.createPrompt({ name: "Weather Assistant Prompt", text: "<role>You are 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>" });
-
-
-
request:
Hume.empathicVoice.PostedPrompt
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.listPromptVersions(id, { ...params }) -> Hume.ReturnPagedPrompts
-
-
-
Fetches a list of a Prompt's versions.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.listPromptVersions("your-prompt-id");
-
-
-
id:
string
-
request:
Hume.empathicVoice.PromptsListPromptVersionsRequest
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.createPromptVersion(id, { ...params }) -> Hume.ReturnPrompt | undefined
-
-
-
Updates a Prompt by creating a new version of the Prompt.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.createPromptVersion("your-prompt-id", { 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>", versionDescription: "This is an updated version of the Weather Assistant Prompt." });
-
-
-
id:
stringβ Identifier for a Prompt. Formatted as a UUID.
-
request:
Hume.empathicVoice.PostedPromptVersion
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.deletePrompt(id) -> void
-
-
-
Deletes a Prompt and its versions.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.deletePrompt("your-prompt-id");
-
-
-
id:
stringβ Identifier for a Prompt. Formatted as a UUID.
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.updatePromptName(id, { ...params }) -> string
-
-
-
Updates the name of a Prompt.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.updatePromptName("your-prompt-id", { name: "Updated Weather Assistant Prompt Name" });
-
-
-
id:
stringβ Identifier for a Prompt. Formatted as a UUID.
-
request:
Hume.empathicVoice.PostedPromptName
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.getPromptVersion(id, version) -> Hume.ReturnPrompt | undefined
-
-
-
Fetches a specified version of a Prompt.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.getPromptVersion("your-prompt-id", 0);
-
-
-
id:
stringβ Identifier for a Prompt. Formatted as a UUID.
-
version:
numberVersion number for a Prompt.
Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.deletePromptVersion(id, version) -> void
-
-
-
Deletes a specified version of a Prompt.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.deletePromptVersion("your-prompt-id", 1);
-
-
-
id:
stringβ Identifier for a Prompt. Formatted as a UUID.
-
version:
numberVersion number for a Prompt.
Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.prompts.updatePromptDescription(id, version, { ...params }) -> Hume.ReturnPrompt | undefined
-
-
-
Updates the description of a Prompt.
See our prompting guide for tips on crafting your system prompt.
-
-
-
await client.empathicVoice.prompts.updatePromptDescription("your-prompt-id", 1, { versionDescription: "This is an updated version_description." });
-
-
-
id:
stringβ Identifier for a Prompt. Formatted as a UUID.
-
version:
numberVersion number for a Prompt.
Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
-
request:
Hume.empathicVoice.PostedPromptVersionDescription
-
requestOptions:
PromptsClient.RequestOptions
-
-
client.empathicVoice.tools.listTools({ ...params }) -> core.Page<(Hume.ReturnUserDefinedTool | undefined), Hume.ReturnPagedUserDefinedTools>
-
-
-
Fetches a paginated list of Tools.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
const pageableResponse = await client.empathicVoice.tools.listTools({ pageNumber: 0, pageSize: 2 }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.tools.listTools({ pageNumber: 0, pageSize: 2 }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
request:
Hume.empathicVoice.ToolsListToolsRequest
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.createTool({ ...params }) -> Hume.ReturnUserDefinedTool | undefined
-
-
-
Creates a Tool that can be added to an EVI configuration.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.createTool({ name: "get_current_weather", parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }", versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.", description: "This tool is for getting the current weather.", fallbackContent: "Unable to fetch current weather." });
-
-
-
request:
Hume.empathicVoice.PostedUserDefinedTool
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.listToolVersions(id, { ...params }) -> core.Page<(Hume.ReturnUserDefinedTool | undefined), Hume.ReturnPagedUserDefinedTools>
-
-
-
Fetches a list of a Tool's versions.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
const pageableResponse = await client.empathicVoice.tools.listToolVersions("your-tool-id"); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.empathicVoice.tools.listToolVersions("your-tool-id"); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
id:
string
-
request:
Hume.empathicVoice.ToolsListToolVersionsRequest
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.createToolVersion(id, { ...params }) -> Hume.ReturnUserDefinedTool | undefined
-
-
-
Updates a Tool by creating a new version of the Tool.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.createToolVersion("your-tool-id", { parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }", versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.", fallbackContent: "Unable to fetch current weather.", description: "This tool is for getting the current weather." });
-
-
-
id:
stringβ Identifier for a Tool. Formatted as a UUID.
-
request:
Hume.empathicVoice.PostedUserDefinedToolVersion
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.deleteTool(id) -> void
-
-
-
Deletes a Tool and its versions.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.deleteTool("your-tool-id");
-
-
-
id:
stringβ Identifier for a Tool. Formatted as a UUID.
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.updateToolName(id, { ...params }) -> string
-
-
-
Updates the name of a Tool.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.updateToolName("your-tool-id", { name: "get_current_temperature" });
-
-
-
id:
stringβ Identifier for a Tool. Formatted as a UUID.
-
request:
Hume.empathicVoice.PostedUserDefinedToolName
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.getToolVersion(id, version) -> Hume.ReturnUserDefinedTool | undefined
-
-
-
Fetches a specified version of a Tool.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.getToolVersion("your-tool-id", 1);
-
-
-
id:
stringβ Identifier for a Tool. Formatted as a UUID.
-
version:
numberVersion number for a Tool.
Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.deleteToolVersion(id, version) -> void
-
-
-
Deletes a specified version of a Tool.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.deleteToolVersion("your-tool-id", 1);
-
-
-
id:
stringβ Identifier for a Tool. Formatted as a UUID.
-
version:
numberVersion number for a Tool.
Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.empathicVoice.tools.updateToolDescription(id, version, { ...params }) -> Hume.ReturnUserDefinedTool | undefined
-
-
-
Updates the description of a specified Tool version.
Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.
-
-
-
await client.empathicVoice.tools.updateToolDescription("your-tool-id", 1, { versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region." });
-
-
-
id:
stringβ Identifier for a Tool. Formatted as a UUID.
-
version:
numberVersion number for a Tool.
Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
-
request:
Hume.empathicVoice.PostedUserDefinedToolVersionDescription
-
requestOptions:
ToolsClient.RequestOptions
-
-
client.tts.synthesizeJson({ ...params }) -> Hume.ReturnTts
-
-
-
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.
The response includes the base64-encoded audio and metadata in JSON format.
-
-
-
await client.tts.synthesizeJson({ context: { utterances: [{ text: "How can people see beauty so differently?", description: "A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question." }] }, format: { type: "mp3" }, numGenerations: 1, utterances: [{ text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality." }] });
-
-
-
request:
Hume.PostedTts
-
requestOptions:
TtsClient.RequestOptions
-
-
client.tts.synthesizeFile({ ...params }) -> core.BinaryResponse
-
-
-
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.
The response contains the generated audio file in the requested format.
-
-
-
await client.tts.synthesizeFile({ context: { generationId: "" }, format: { type: "mp3" }, numGenerations: 1, utterances: [{ text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality." }] });
-
-
-
request:
Hume.PostedTts
-
requestOptions:
TtsClient.RequestOptions
-
-
client.tts.synthesizeFileStreaming({ ...params }) -> core.BinaryResponse
-
-
-
Streams synthesized 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.
-
-
-
await client.tts.synthesizeFileStreaming({ utterances: [{ text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", voice: { name: "Male English Actor", provider: "HUME_AI" } }] });
-
-
-
request:
Hume.PostedTts
-
requestOptions:
TtsClient.RequestOptions
-
-
client.tts.synthesizeJsonStreaming({ ...params }) -> core.Stream<Hume.TtsOutput>
-
-
-
Streams synthesized 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.
The response is a stream of JSON objects including audio encoded in base64.
-
-
-
const response = await client.tts.synthesizeJsonStreaming({ utterances: [{ text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", voice: { name: "Male English Actor", provider: "HUME_AI" } }] }); for await (const item of response) { console.log(item); }
-
-
-
request:
Hume.PostedTts
-
requestOptions:
TtsClient.RequestOptions
-
-
client.tts.convertVoiceJson({ ...params }) -> core.Stream<Hume.TtsOutput>
-
-
-
const response = await client.tts.convertVoiceJson({}); for await (const item of response) { console.log(item); }
-
-
-
request:
Hume.tts.ConvertVoiceJsonRequest
-
requestOptions:
TtsClient.RequestOptions
-
-
client.tts.voices.list({ ...params }) -> core.Page<Hume.ReturnVoice, Hume.ReturnPagedVoices>
-
-
-
Lists voices you have saved in your account, or voices from the Voice Library.
-
-
-
const pageableResponse = await client.tts.voices.list({ provider: "CUSTOM_VOICE" }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.tts.voices.list({ provider: "CUSTOM_VOICE" }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response;
-
-
-
request:
Hume.tts.VoicesListRequest
-
requestOptions:
VoicesClient.RequestOptions
-
-
client.tts.voices.create({ ...params }) -> Hume.ReturnVoice
-
-
-
Saves a new custom voice to your account using the specified TTS generation ID.
Once saved, this voice can be reused in subsequent TTS requests, ensuring consistent speech style and prosody. For more details on voice creation, see the Voices Guide.
-
-
-
await client.tts.voices.create({ generationId: "", name: "David Hume" });
-
-
-
request:
Hume.tts.PostedVoice
-
requestOptions:
VoicesClient.RequestOptions
-
-
client.tts.voices.delete({ ...params }) -> void
-
-
-
Deletes a previously generated custom voice.
-
-
-
await client.tts.voices.delete({ name: "David Hume" });
-
-
-
request:
Hume.tts.VoicesDeleteRequest
-
requestOptions:
VoicesClient.RequestOptions
-
-