From 8a9b56e30e8eb3b52f2314a3bf5e8546e285591f Mon Sep 17 00:00:00 2001 From: sugoidogo Date: Mon, 27 Jan 2025 15:28:41 +0000 Subject: [PATCH] fix usage of GetAuthHeaders --- static/twitch-polly.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/twitch-polly.mjs b/static/twitch-polly.mjs index 1306b39..6cced41 100644 --- a/static/twitch-polly.mjs +++ b/static/twitch-polly.mjs @@ -210,11 +210,11 @@ export class Polly { } } - DescribeVoices(Engine = 'standard', LanguageCode = '', IncludeAdditionalLanguageCodes = true) { - return DescribeVoices(this.#GetAuthHeaders(), Engine, LanguageCode, IncludeAdditionalLanguageCodes) + async DescribeVoices(Engine = 'standard', LanguageCode = '', IncludeAdditionalLanguageCodes = true) { + return DescribeVoices(await this.#GetAuthHeaders(), Engine, LanguageCode, IncludeAdditionalLanguageCodes) } - SynthesizeSpeech( + async SynthesizeSpeech( Text, VoiceId, TextType = 'text', @@ -223,7 +223,7 @@ export class Polly { OutputFormat = 'mp3', SampleRate = '24000') { return SynthesizeSpeech( - this.#GetAuthHeaders(), + await this.#GetAuthHeaders(), Text, VoiceId, TextType,