From df8acbed0ec06bbd4f2907d9021c9eddfb232f7a Mon Sep 17 00:00:00 2001 From: Quan HL Date: Sat, 1 Apr 2023 06:58:55 +0700 Subject: [PATCH] fix: audioData is getter --- 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 79ce7cf..9067c89 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -328,7 +328,7 @@ const synthMicrosoft = async(logger, { case ResultReason.SynthesizingAudioCompleted: stats.increment('tts.count', ['vendor:microsoft', 'accepted:yes']); synthesizer.close(); - resolve(result.audioData()); + resolve(result.audioData); break; default: logger.info({result}, 'synthAudio: (Microsoft) unexpected result');