whisper_token_to_str method

Pointer<Char> whisper_token_to_str(
  1. Pointer<whisper_context> ctx,
  2. int token
)

Token Id -> String. Uses the vocabulary in the provided context

Implementation

ffi.Pointer<ffi.Char> whisper_token_to_str(
  ffi.Pointer<whisper_context> ctx,
  int token,
) {
  return _whisper_token_to_str(
    ctx,
    token,
  );
}