Skip to content

Commit a7817db

Browse files
committed
improve README for audio endpoints
1 parent 897f995 commit a7817db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Transcribes audio into the input language.
181181
```php
182182
$response = $client->audio()->transcribe([
183183
'model' => 'whisper-1',
184-
'file' => fopen(storage_path('audio.mp3'), 'r'),
184+
'file' => fopen('audio.mp3', 'r'),
185185
'response_format' => 'verbose_json',
186186
]);
187187

@@ -214,7 +214,7 @@ Translates audio into English.
214214
```php
215215
$response = $client->audio()->translate([
216216
'model' => 'whisper-1',
217-
'file' => fopen(storage_path('audio.mp3'), 'r'),
217+
'file' => fopen('german.mp3' 'r'),
218218
'response_format' => 'verbose_json',
219219
]);
220220

0 commit comments

Comments
 (0)