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

1from signalwire import BedrockAgent
2
3agent = BedrockAgent(
4 name="bedrock-assistant",
5 route="/assistant",
6 system_prompt="You are a helpful assistant.",
7)
8
9agent.set_voice("joanna")