From 753be7ee4ed181653d036e662872f87359390bda Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Thu, 10 Oct 2024 12:08:13 -0700 Subject: [PATCH] fix: pass sample rate option --- examples/node-speak-live/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/node-speak-live/index.js b/examples/node-speak-live/index.js index 685a6d6..60645e7 100644 --- a/examples/node-speak-live/index.js +++ b/examples/node-speak-live/index.js @@ -26,7 +26,11 @@ const live = async () => { const deepgram = createClient(process.env.DEEPGRAM_API_KEY); - const dgConnection = deepgram.speak.live({ model: "aura-asteria-en", encoding: "linear16" }); + const dgConnection = deepgram.speak.live({ + model: "aura-asteria-en", + encoding: "linear16", + sample_rate: 48000, + }); let audioBuffer = Buffer.from(wavHeader);