Skip to content

Commit

Permalink
Remove ffmpeg installation and fix Python bytes script
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrgl committed Oct 26, 2024
1 parent 18ffd03 commit 2f2e194
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions fern/get-started/make-an-api-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,18 @@ In comparison, Cartesia's WebSocket and Server-Sent Events endpoints stream out
### Install the SDK

```sh
pip install cartesia ffmpeg-python
pip install cartesia

# Or, if you're using uv
uv add cartesia ffmpeg-python
uv add cartesia
```

### Make the API call

```python
from cartesia import Cartesia
import os
import subprocess
from cartesia import Cartesia

if os.environ.get("CARTESIA_API_KEY") is None:
raise ValueError("CARTESIA_API_KEY is not set")
Expand Down Expand Up @@ -116,16 +117,16 @@ env CARTESIA_API_KEY=YOUR_API_KEY uv run cartesia.py

```sh
# NPM
npm install @cartesia/cartesia-js fluent-ffmpeg
npm install @cartesia/cartesia-js

# Yarn
yarn add @cartesia/cartesia-js fluent-ffmpeg
yarn add @cartesia/cartesia-js

# Bun
bun add @cartesia/cartesia-js fluent-ffmpeg
bun add @cartesia/cartesia-js

# PNPM
pnpm add @cartesia/cartesia-js fluent-ffmpeg
pnpm add @cartesia/cartesia-js
```

### Make the API call
Expand Down

0 comments on commit 2f2e194

Please sign in to comment.