Skip to content

Commit

Permalink
fix: pass sample rate option
Browse files Browse the repository at this point in the history
  • Loading branch information
naomi-lgbt committed Oct 10, 2024
1 parent bb5c8b2 commit 753be7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/node-speak-live/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 753be7e

Please sign in to comment.