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 74e40fd commit eeaffc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/node-speak-live/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ const wavHeader = [
const live = async () => {
const text = "Hello, how can I help you today?";

const deepgram = createClient(process.env.DEEPGRAM_API_KEY);
const deepgram = createClient("c4249c0b760ce7c61e87a0cf6f2bfde2ef952c85");

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 eeaffc4

Please sign in to comment.