From d976dca60e4c7535fed9b82036194971e61ac162 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 1 Dec 2020 15:59:43 -0500 Subject: [PATCH] fixes to tts --- src/commands/page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/page.ts b/src/commands/page.ts index 2cda747..7243a29 100644 --- a/src/commands/page.ts +++ b/src/commands/page.ts @@ -194,7 +194,7 @@ export default class Page extends Command { const fileExtension = `${randomBytes(10).toString('hex')}`; const [response] = await this.client.util.tts.synthesizeSpeech({ - input: { text: `Hello, this call was automatically dialed by the Library of Code Private Branch Exchange. You have received a page from Pager Number, ${recipientNumber}. The Pager Code is ${code}. Please check your Direct Messages on Discord for further information.` }, + input: { text: `Hello, this call was automatically dialed by the Library of Code Private Branch Exchange. You have received a page from Pager Number, ${senderNumber}. The Pager Code is ${code}. Please check your Direct Messages on Discord for further information.` }, voice: { languageCode: 'en-US', ssmlGender: 'MALE' }, audioConfig: { audioEncoding: 'OGG_OPUS' }, });