Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Dec 5, 2023
1 parent 69a19ba commit 759196c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,22 @@ $client->audio()->speech([
]); // audio file content as string
```

#### `speechStreamed`

Generates streamed audio from the input text.

```php
$stream = $client->audio()->speechStreamed([
'model' => 'tts-1',
'input' => 'The quick brown fox jumped over the lazy dog.',
'voice' => 'alloy',
]);

foreach($stream as $chunk){
$chunk; // chunk of audio file content as string
}
```

#### `transcribe`

Transcribes audio into the input language.
Expand Down

0 comments on commit 759196c

Please sign in to comment.