We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca71170 commit 04f5b29Copy full SHA for 04f5b29
README.md
@@ -279,7 +279,7 @@ The translations API takes as input the audio file in any of the supported langu
279
response = client.translate(
280
parameters: {
281
model: "whisper-1",
282
- file: File.open('path_to_file'),
+ file: File.open('path_to_file', 'rb'),
283
})
284
puts response.parsed_response['text']
285
# => "Translation of the text"
@@ -293,7 +293,7 @@ The transcriptions API takes as input the audio file you want to transcribe and
293
response = client.transcribe(
294
295
296
297
298
299
# => "Transcription of the text"
0 commit comments