Skip to content

Commit 314fa4b

Browse files
ch0ngxianalexrudall
authored andcommitted
refactor: update README.md about audios changes
1 parent 569ec01 commit 314fa4b

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
@@ -417,7 +417,7 @@ Whisper is a speech to text model that can be used to generate text based on aud
417417
The translations API takes as input the audio file in any of the supported languages and transcribes the audio into English.
418418

419419
```ruby
420-
response = client.translate(
420+
response = client.audios.translate(
421421
parameters: {
422422
model: "whisper-1",
423423
file: File.open("path_to_file", "rb"),
@@ -431,7 +431,7 @@ puts response["text"]
431431
The transcriptions API takes as input the audio file you want to transcribe and returns the text in the desired output file format.
432432

433433
```ruby
434-
response = client.transcribe(
434+
response = client.audios.transcribe(
435435
parameters: {
436436
model: "whisper-1",
437437
file: File.open("path_to_file", "rb"),

0 commit comments

Comments
 (0)