はじめに
OCI Speechを使ってみたメモです。
準備
適当な音声ファイルを用意して、Object Storageにアップロードします。
なお、日本語には対応していないようですので、英語のファイルを用意しました。
モデルタイプを変更すれば日本語に対応してました。
ジョブの作成
OCIコンソールから「ジョブの作成」をクリックします。
こんな感じで設定しました。
ファイルの選択でバケットにあるファイルを選択します。
ジョブの作成が終わるとステータスが成功になります。
追記(日本語対応)
日本語を使うには「モデルタイプ」をデフォルトから変える必要がありました。
確認
作成したジョブをクリックし、タスクをクリックします。
こんな感じで文字起こしされた結果が確認できます。ざっとみた感じですと、精度は90%くらいでした。
結果はObject Storageに保存されています。
JSONでもダウンロードできます。
{
"status": "SUCCESS",
"timeCreated": "2025-09-10 22:41:56.562",
"modelDetails": {
"domain": "GENERIC",
"languageCode": "en-US",
"modelType": "ORACLE"
},
"audioFormatDetails": {
"format": "MPEG",
"numberOfChannels": 2,
"encoding": "MPEG",
"sampleRateInHz": 44100
},
"transcriptions": [
{
"transcription": "Pardon. O king cried the little mouse. Forgive me this time. I shall never forget it. Who knows? But I may be able to do you a turn some of these days. The lion was so tickled at the idea of the mouse being able to help him that he lifted up his paw and let him go sometime. Hunters who desire to carry him alive to the king tied him to a tree while they went in search of a wagon to carry him on. Just then the little mouse happened to pass by, and, seeing the sad plight in which the lion was, went up to him and soon gnawed away the ropes that bound the king of the beasts.",
"confidence": "0.9746",
"tokens": [
{
"token": "Pardon",
"startTime": "0.780s",
"endTime": "1.440s",
"confidence": "0.9663",
"type": "WORD"
},
{
"token": ".",
"startTime": "1.440s",
"endTime": "1.440s",
"confidence": "0.7994",
"type": "PUNCTUATION"
},
{
"token": "O",
"startTime": "1.440s",
"endTime": "1.680s",
"confidence": "0.9653",
"type": "WORD"
},
{
"token": "king",
"startTime": "1.680s",
"endTime": "1.920s",
"confidence": "0.9682",
"type": "WORD"
},
{
"token": "cried",
"startTime": "2.400s",
"endTime": "2.760s",
"confidence": "0.9753",
"type": "WORD"
},
{
"token": "the",
"startTime": "2.760s",
"endTime": "2.940s",
"confidence": "0.9756",
"type": "WORD"
},
{
"token": "little",
"startTime": "2.940s",
"endTime": "3.120s",
"confidence": "0.9750",
"type": "WORD"
},
## 省略
{
"token": ".",
"startTime": "42.420s",
"endTime": "42.420s",
"confidence": "0.8765",
"type": "PUNCTUATION"
}
]
}
]
}
追記(日本語の結果)
短い音声でしたが、数字も含めて全部文字起こししてくれてました。










