File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ Whisper is a speech to text model that can be used to generate text based on aud
417
417
The translations API takes as input the audio file in any of the supported languages and transcribes the audio into English.
418
418
419
419
``` ruby
420
- response = client.translate(
420
+ response = client.audios. translate(
421
421
parameters: {
422
422
model: " whisper-1" ,
423
423
file: File .open (" path_to_file" , " rb" ),
@@ -431,7 +431,7 @@ puts response["text"]
431
431
The transcriptions API takes as input the audio file you want to transcribe and returns the text in the desired output file format.
432
432
433
433
``` ruby
434
- response = client.transcribe(
434
+ response = client.audios. transcribe(
435
435
parameters: {
436
436
model: " whisper-1" ,
437
437
file: File .open (" path_to_file" , " rb" ),
You can’t perform that action at this time.
0 commit comments