Skip to content

Commit 753be7e

Browse files
committed
fix: pass sample rate option
1 parent bb5c8b2 commit 753be7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/node-speak-live/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ const live = async () => {
2626

2727
const deepgram = createClient(process.env.DEEPGRAM_API_KEY);
2828

29-
const dgConnection = deepgram.speak.live({ model: "aura-asteria-en", encoding: "linear16" });
29+
const dgConnection = deepgram.speak.live({
30+
model: "aura-asteria-en",
31+
encoding: "linear16",
32+
sample_rate: 48000,
33+
});
3034

3135
let audioBuffer = Buffer.from(wavHeader);
3236

0 commit comments

Comments
 (0)