top of page
- API -

ctx = reaper.AZ_TRSC_LoadModel(modelPath)

- API Detail-

▼入力値

  • modelPath(string) : モデルのパス(任意 デフォルト : config.TRSC.DefaultModel)

▼出力値

  • ctx(TRSCContext) : 文字起こし用コンテキスト



文字起こし機能の詳細はこちらをご確認ください

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


ctx1 = reaper.AZ_TRSC_LoadModel()

text1 = reaper.AZ_TRSC_FullForMediaID(ctx1, 0, 0, "ja")

reaper.AZ_TRSC_ReleaseModel(ctx1)

Msg("tiny: " .. text1)


ctx2 = reaper.AZ_TRSC_LoadModel("ggml-small.bin")

text2 = reaper.AZ_TRSC_FullForMediaID(ctx2, 0, 0, "ja")

reaper.AZ_TRSC_ReleaseModel(ctx2)

Msg("small: " .. text2)


ctx3 = reaper.AZ_TRSC_LoadModel("D:\\models\\ggml-large-v3.bin")

text3 = reaper.AZ_TRSC_FullForMediaID(ctx3, 0, 0, "ja")

reaper.AZ_TRSC_ReleaseModel(ctx3)

Msg("large-v3: " .. text3)


TRANSCRIPTION

AZ_TRSC_LoadModel

Supported versions:

1.4.0

onwards

文字起こし用モデルを読み込み

bottom of page