Skip to content

Commit

Permalink
docs(readme): add curl example
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Dec 21, 2024
1 parent d6e395d commit 8bbf3b3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ go build -o ./result/unspeech ./cmd/unspeech

You can use unSpeech with most OpenAI clients.

###### `curl`

```bash
curl http://localhost:5933/v1/audio/speech \
-H "Authorization: Bearer $XI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/eleven_multilingual_v2",
"input": "Hello, World!",
"voice": "9BWtsMINqrJLrRacOk9x",
}' \
--output speech.mp3
```

###### [`@xsai/generate-speech`](https://github.com/moeru-ai/xsai)

```ts
Expand Down

0 comments on commit 8bbf3b3

Please sign in to comment.