top of page
- API -

ctx = reaper.AZ_TRSC_LoadModel(modelPath)

- API Detail-

▼Input values

  • modelPath(string): model path (optional, default: config.TRSC.DefaultModel)

▼Output values

  • ctx(TRSCContext): transcription context



For details on the transcription feature,hereplease refer to

- 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

Load the transcription model

bottom of page