From 8a5c5c19663563d7766fe24f39af5f5612701989 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 19 Apr 2024 16:06:53 +0700 Subject: [PATCH] support mod_google_tts --- lib/synth-audio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 160c061..ba9fb4f 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -278,7 +278,7 @@ const synthPolly = async(logger, {credentials, stats, language, voice, engine, t }); } else if (roleArn) { const stsClient = new STSClient({ region}); - const roleToAssume = { RoleArn: 'myRoleArn', RoleSessionName: 'session1' }; + const roleToAssume = { RoleArn: roleArn, RoleSessionName: 'Jambonz Speech' }; const command = new AssumeRoleCommand(roleToAssume); const response = await stsClient.send(command);