set_voice

View as MarkdownOpen in Claude

Set the Bedrock voice ID after construction.

Parameters

voice_id
strRequired

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

Returns

None

Example

from signalwire import BedrockAgent
agent = BedrockAgent(
name="bedrock-assistant",
route="/assistant",
system_prompt="You are a helpful assistant.",
)
agent.set_voice("joanna")