LoginSignup
0
0

More than 1 year has passed since last update.

OpenAIの文字起こしWhisperのオプション指定方法。あんまりサンプル落ちてなかったので。

Posted at

以下、指定方法

sample.py
transcript = openai.Audio.transcribe(model="whisper-1",
                                     file=audio_file,
                                     response_format="text",
                                     temperature=0.2,
                                     language="ja",
                                     prompt="This is a transcription of the live broadcast of a European bicycle race.")
#json, text, srt, verbose_json, or vtt.
print(transcript)

公式api

(参考)
OpenAIの文字起こしWhisper。試したらすごかった。
https://note.com/santarou/n/nbc43e3d8349e

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0