Merge pull request #2098 from StrongMind/aws-session-token

Add support for session token in AWS Nova Sonic service
This commit is contained in:
Mark Backman
2025-07-01 16:25:38 -04:00
committed by GitHub
3 changed files with 9 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
region=os.getenv("AWS_REGION"), # as of 2025-05-06, us-east-1 is the only supported region
session_token=os.getenv("AWS_SESSION_TOKEN"),
voice_id="tiffany", # matthew, tiffany, amy
# you could choose to pass instruction here rather than via context
# system_instruction=system_instruction