setVoice

View as MarkdownOpen in Claude

Set the Bedrock voice ID after construction.

Parameters

voiceId
stringRequired

Bedrock voice identifier (e.g., "matthew", "joanna").

Returns

BedrockAgent — Returns this for method chaining.

Example

import { BedrockAgent } from '@signalwire/sdk';
const agent = new BedrockAgent({
name: 'bedrock-assistant',
route: '/assistant',
systemPrompt: 'You are a helpful assistant.',
});
agent.setVoice('joanna');