Skip to content

Commit

Permalink
chore: Update README.md (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-support authored Dec 26, 2024
1 parent 4c3366d commit 8d36b88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ fs.writeFileSync("sonic.wav", new Uint8Array(response));

```js
import { CartesiaClient } from "@cartesia/cartesia-js";
import process from "node:process"

const cartesia = new CartesiaClient({
apiKey: process.env.CARTESIA_API_KEY,
Expand All @@ -71,7 +70,7 @@ try {
await websocket.connect();
} catch (error) {
console.error(`Failed to connect to Cartesia: ${error}`);
process.exit(1);
throw error;
}

// Create a stream.
Expand Down

0 comments on commit 8d36b88

Please sign in to comment.