{
  "_id": "6a1efdffb401979e73419ced",
  "Package": "whisper",
  "Title": "Native R 'torch' Implementation of 'OpenAI' 'Whisper'",
  "Version": "0.3.0",
  "Authors@R": "c(\nperson(\"Troy\", \"Hernandez\", role = c(\"aut\", \"cre\"),\nemail = \"troy@cornball.ai\",\ncomment = c(ORCID = \"0009-0005-4248-604X\")),\nperson(\"cornball.ai\", role = \"cph\"),\nperson(\"OpenAI\", role = \"cph\",\ncomment = \"Whisper model architecture and mel filterbank data (MIT license)\")\n)",
  "Description": "Speech-to-text transcription using a native R 'torch'\nimplementation of 'OpenAI' 'Whisper' model\n<https://github.com/openai/whisper>. Supports multiple model\nsizes from tiny (39M parameters) to large-v3 (1.5B parameters)\nwith integrated download from 'HuggingFace'\n<https://huggingface.co/> via the 'hfhub' package. Provides\nautomatic speech recognition with optional language detection\nand translation to English. Audio preprocessing, mel\nspectrogram computation, and transformer-based encoder-decoder\ninference are all implemented in R using the 'torch' package.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "URL": "https://github.com/cornball-ai/whisper",
  "BugReports": "https://github.com/cornball-ai/whisper/issues",
  "Config/pak/sysreqs": "cmake make libavfilter-dev libuv1-dev libssl-dev",
  "Repository": "https://cornball-ai.r-universe.dev",
  "Date/Publication": "2026-03-19 15:49:53 UTC",
  "RemoteUrl": "https://github.com/cornball-ai/whisper",
  "RemoteRef": "HEAD",
  "RemoteSha": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 09:44:21 UTC",
    "User": "root"
  },
  "Author": "Troy Hernandez [aut, cre] (ORCID:\n<https://orcid.org/0009-0005-4248-604X>),\ncornball.ai [cph],\nOpenAI [cph] (Whisper model architecture and mel filterbank data (MIT\nlicense))",
  "Maintainer": "Troy Hernandez <troy@cornball.ai>",
  "MD5sum": "a4adcbaf36f82338950b816dc991c105",
  "_user": "cornball-ai",
  "_type": "src",
  "_file": "whisper_0.3.0.tar.gz",
  "_fileid": "e76314d207f154d63bc9089422d281e1606339d3f42de45fa15e7b3ef70b1ee0",
  "_filesize": 531867,
  "_sha256": "e76314d207f154d63bc9089422d281e1606339d3f42de45fa15e7b3ef70b1ee0",
  "_created": "2026-05-18T09:44:21.000Z",
  "_published": "2026-06-02T15:59:59.406Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79114860959,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054533139"
    },
    {
      "job": 79114860807,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054535902"
    },
    {
      "job": 79114860373,
      "time": 89,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054516753"
    },
    {
      "job": 79114860817,
      "time": 130,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054530482"
    },
    {
      "job": 79114859690,
      "time": 174,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054483122"
    },
    {
      "job": 79114859853,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7363068211"
    },
    {
      "job": 79114860528,
      "time": 129,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054530687"
    },
    {
      "job": 79114860831,
      "time": 91,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054517003"
    },
    {
      "job": 79114860676,
      "time": 92,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054517496"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cornball-ai/whisper",
  "_commit": {
    "id": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
    "author": "Troy Hernandez <troy@cornball.ai>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add ORCID to Authors@R (#8)",
    "time": 1773935393
  },
  "_maintainer": {
    "name": "Troy Hernandez",
    "email": "troy@cornball.ai",
    "login": "troyhernandez",
    "description": "",
    "uuid": 5670773
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "torch",
      "role": "Imports"
    },
    {
      "package": "av",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "hfhub",
      "role": "Imports"
    },
    {
      "package": "safetensors",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "cornball-ai",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 16
    },
    {
      "week": "2026-05",
      "n": 8
    },
    {
      "week": "2026-06",
      "n": 3
    },
    {
      "week": "2026-07",
      "n": 3
    },
    {
      "week": "2026-08",
      "n": 5
    },
    {
      "week": "2026-09",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 3
    },
    {
      "week": "2026-12",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "troyhernandez",
      "count": 42,
      "uuid": 5670773
    }
  ],
  "_userbio": {
    "uuid": 153995987,
    "type": "organization",
    "name": "cornball.ai"
  },
  "_downloads": {
    "count": 544,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/whisper"
  },
  "_devurl": "https://github.com/cornball-ai/whisper",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/whisper.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cornball-ai/whisper",
  "_realowner": "cornball-ai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-02-06"
    },
    {
      "version": "0.3.0",
      "date": "2026-03-13"
    }
  ],
  "_exports": [
    "audio_to_mel",
    "detect_language",
    "download_whisper_model",
    "list_downloaded_models",
    "list_whisper_models",
    "load_audio",
    "load_whisper_model",
    "model_exists",
    "transcribe",
    "whisper_config",
    "whisper_device",
    "whisper_dtype",
    "whisper_pipeline",
    "whisper_tokenizer"
  ],
  "_help": [
    {
      "page": "apply_bpe",
      "title": "Apply BPE Merges",
      "topics": [
        "apply_bpe"
      ]
    },
    {
      "page": "apply_timestamp_rules",
      "title": "Apply Timestamp Token Rules",
      "topics": [
        "apply_timestamp_rules"
      ]
    },
    {
      "page": "audio_duration",
      "title": "Get Audio Duration",
      "topics": [
        "audio_duration"
      ]
    },
    {
      "page": "audio_to_mel",
      "title": "Convert Audio to Mel Spectrogram",
      "topics": [
        "audio_to_mel"
      ]
    },
    {
      "page": "beam_search_decode",
      "title": "Beam Search Decode",
      "topics": [
        "beam_search_decode"
      ]
    },
    {
      "page": "build_byte_decoder",
      "title": "Build Reverse Byte Decoder",
      "topics": [
        "build_byte_decoder"
      ]
    },
    {
      "page": "byte_to_token",
      "title": "Convert Byte to BPE Token",
      "topics": [
        "byte_to_token"
      ]
    },
    {
      "page": "clean_text",
      "title": "Clean Transcribed Text",
      "topics": [
        "clean_text"
      ]
    },
    {
      "page": "compression_ratio",
      "title": "Compression Ratio",
      "topics": [
        "compression_ratio"
      ]
    },
    {
      "page": "compute_stft",
      "title": "Compute STFT Magnitude",
      "topics": [
        "compute_stft"
      ]
    },
    {
      "page": "compute_word_timestamps",
      "title": "Word-Level Timestamp Alignment",
      "topics": [
        "compute_word_timestamps"
      ]
    },
    {
      "page": "copy_if_exists",
      "title": "Copy Weight if Exists",
      "topics": [
        "copy_if_exists"
      ]
    },
    {
      "page": "create_decoder",
      "title": "Create Decoder from Config",
      "topics": [
        "create_decoder"
      ]
    },
    {
      "page": "create_encoder",
      "title": "Create Encoder from Config",
      "topics": [
        "create_encoder"
      ]
    },
    {
      "page": "create_mel_filterbank_fallback",
      "title": "Create Mel Filterbank (Fallback)",
      "topics": [
        "create_mel_filterbank_fallback"
      ]
    },
    {
      "page": "decode_bpe_bytes",
      "title": "Decode BPE Bytes Back to Text",
      "topics": [
        "decode_bpe_bytes"
      ]
    },
    {
      "page": "decode_timestamp",
      "title": "Decode Timestamp Token",
      "topics": [
        "decode_timestamp"
      ]
    },
    {
      "page": "decode_with_fallback",
      "title": "Decode with Temperature Fallback",
      "topics": [
        "decode_with_fallback"
      ]
    },
    {
      "page": "detect_language",
      "title": "Language Detection",
      "topics": [
        "detect_language"
      ]
    },
    {
      "page": "detect_language_from_mel",
      "title": "Detect Language from Mel Spectrogram",
      "topics": [
        "detect_language_from_mel"
      ]
    },
    {
      "page": "detect_language_from_pipeline",
      "title": "Detect Language from Pipeline",
      "topics": [
        "detect_language_from_pipeline"
      ]
    },
    {
      "page": "download_tokenizer_files",
      "title": "Download Tokenizer Files from HuggingFace",
      "topics": [
        "download_tokenizer_files"
      ]
    },
    {
      "page": "download_whisper_model",
      "title": "Download Model from HuggingFace",
      "topics": [
        "download_whisper_model"
      ]
    },
    {
      "page": "dtw_align",
      "title": "DTW Alignment",
      "topics": [
        "dtw_align"
      ]
    },
    {
      "page": "ensure_tokenizer_files",
      "title": "Ensure Tokenizer Files are Downloaded",
      "topics": [
        "ensure_tokenizer_files"
      ]
    },
    {
      "page": "expand_kv_cache",
      "title": "Expand KV Cache for Beam Search",
      "topics": [
        "expand_kv_cache"
      ]
    },
    {
      "page": "extract_segments",
      "title": "Extract Segments with Timestamps",
      "topics": [
        "extract_segments"
      ]
    },
    {
      "page": "forced_decode",
      "title": "Forced Decode",
      "topics": [
        "forced_decode"
      ]
    },
    {
      "page": "get_initial_tokens",
      "title": "Get Initial Decoder Tokens",
      "topics": [
        "get_initial_tokens"
      ]
    },
    {
      "page": "get_model_path",
      "title": "Get Model Cache Path",
      "topics": [
        "get_model_path"
      ]
    },
    {
      "page": "get_weights_path",
      "title": "Get Path to Model Weights",
      "topics": [
        "get_weights_path"
      ]
    },
    {
      "page": "greedy_decode",
      "title": "Greedy Decoding",
      "topics": [
        "greedy_decode"
      ]
    },
    {
      "page": "group_into_words",
      "title": "Group Subword Tokens into Words",
      "topics": [
        "group_into_words"
      ]
    },
    {
      "page": "hz_to_mel",
      "title": "Convert Hz to Mel Scale",
      "topics": [
        "hz_to_mel"
      ]
    },
    {
      "page": "is_timestamp_token",
      "title": "Check if Token is Timestamp",
      "topics": [
        "is_timestamp_token"
      ]
    },
    {
      "page": "list_downloaded_models",
      "title": "List Downloaded Models",
      "topics": [
        "list_downloaded_models"
      ]
    },
    {
      "page": "list_whisper_models",
      "title": "List Available Models",
      "topics": [
        "list_whisper_models"
      ]
    },
    {
      "page": "load_audio",
      "title": "Load and Preprocess Audio",
      "topics": [
        "load_audio"
      ]
    },
    {
      "page": "load_decoder_weights",
      "title": "Load Decoder Weights",
      "topics": [
        "load_decoder_weights"
      ]
    },
    {
      "page": "load_encoder_weights",
      "title": "Load Encoder Weights",
      "topics": [
        "load_encoder_weights"
      ]
    },
    {
      "page": "load_mel_filterbank",
      "title": "Load Pre-computed Mel Filterbank",
      "topics": [
        "load_mel_filterbank"
      ]
    },
    {
      "page": "load_whisper_model",
      "title": "Load Whisper Model",
      "topics": [
        "load_whisper_model"
      ]
    },
    {
      "page": "load_whisper_weights",
      "title": "Load Weights from Safetensors",
      "topics": [
        "load_whisper_weights"
      ]
    },
    {
      "page": "medfilt1",
      "title": "1D Median Filter",
      "topics": [
        "medfilt1"
      ]
    },
    {
      "page": "mel_to_hz",
      "title": "Convert Mel Scale to Hz",
      "topics": [
        "mel_to_hz"
      ]
    },
    {
      "page": "model_exists",
      "title": "Check if Model is Downloaded",
      "topics": [
        "model_exists"
      ]
    },
    {
      "page": "pad_or_trim",
      "title": "Pad or Trim Audio to Fixed Length",
      "topics": [
        "pad_or_trim"
      ]
    },
    {
      "page": "parse_device",
      "title": "Parse Device Argument",
      "topics": [
        "parse_device"
      ]
    },
    {
      "page": "parse_dtype",
      "title": "Parse Dtype Argument",
      "topics": [
        "parse_dtype"
      ]
    },
    {
      "page": "rearrange_kv_cache",
      "title": "Rearrange KV Cache by Beam Indices",
      "topics": [
        "rearrange_kv_cache"
      ]
    },
    {
      "page": "sample_decode",
      "title": "Sample Decode",
      "topics": [
        "sample_decode"
      ]
    },
    {
      "page": "split_audio",
      "title": "Split Long Audio into Chunks",
      "topics": [
        "split_audio"
      ]
    },
    {
      "page": "tokenizer_decode",
      "title": "Decode Token IDs to Text",
      "topics": [
        "tokenizer_decode"
      ]
    },
    {
      "page": "tokenizer_encode",
      "title": "Encode Text to Token IDs",
      "topics": [
        "tokenizer_encode"
      ]
    },
    {
      "page": "transcribe",
      "title": "Transcribe Audio",
      "topics": [
        "transcribe"
      ]
    },
    {
      "page": "transcribe_chunk",
      "title": "Transcribe Single Chunk",
      "topics": [
        "transcribe_chunk"
      ]
    },
    {
      "page": "transcribe_long",
      "title": "Transcribe Long Audio",
      "topics": [
        "transcribe_long"
      ]
    },
    {
      "page": "whisper_attention",
      "title": "Whisper Encoder",
      "topics": [
        "whisper_attention"
      ]
    },
    {
      "page": "whisper_config",
      "title": "Whisper Model Configurations",
      "topics": [
        "whisper_config"
      ]
    },
    {
      "page": "whisper_decoder",
      "title": "Text Decoder",
      "topics": [
        "whisper_decoder"
      ]
    },
    {
      "page": "whisper_decoder_layer",
      "title": "Whisper Decoder",
      "topics": [
        "whisper_decoder_layer"
      ]
    },
    {
      "page": "whisper_device",
      "title": "Device and Dtype Management",
      "topics": [
        "whisper_device"
      ]
    },
    {
      "page": "whisper_dtype",
      "title": "Get Default Dtype",
      "topics": [
        "whisper_dtype"
      ]
    },
    {
      "page": "whisper_encoder",
      "title": "Audio Encoder",
      "topics": [
        "whisper_encoder"
      ]
    },
    {
      "page": "whisper_encoder_layer",
      "title": "Encoder Layer",
      "topics": [
        "whisper_encoder_layer"
      ]
    },
    {
      "page": "whisper_lang_from_id",
      "title": "Get Language Code from Token ID",
      "topics": [
        "whisper_lang_from_id"
      ]
    },
    {
      "page": "whisper_lang_token",
      "title": "Get Language Token ID",
      "topics": [
        "whisper_lang_token"
      ]
    },
    {
      "page": "whisper_language_table",
      "title": "Whisper Language Table",
      "topics": [
        "whisper_language_table"
      ]
    },
    {
      "page": "whisper_model",
      "title": "Whisper Model",
      "topics": [
        "whisper_model"
      ]
    },
    {
      "page": "whisper_pipeline",
      "title": "Whisper Transcription",
      "topics": [
        "whisper_pipeline"
      ]
    },
    {
      "page": "WHISPER_SAMPLE_RATE",
      "title": "Audio Preprocessing for Whisper",
      "topics": [
        "WHISPER_SAMPLE_RATE"
      ]
    },
    {
      "page": "whisper_special_tokens",
      "title": "Special Token IDs",
      "topics": [
        "whisper_special_tokens"
      ]
    },
    {
      "page": "whisper_tokenizer",
      "title": "Whisper BPE Tokenizer",
      "topics": [
        "whisper_tokenizer"
      ]
    }
  ],
  "_readme": "https://github.com/cornball-ai/whisper/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "av",
    "bit",
    "bit64",
    "callr",
    "cli",
    "coro",
    "curl",
    "desc",
    "farver",
    "filelock",
    "fs",
    "glue",
    "hfhub",
    "httr",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "mime",
    "openssl",
    "processx",
    "ps",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "safetensors",
    "scales",
    "sys",
    "torch",
    "triebeard",
    "urltools",
    "viridisLite",
    "withr"
  ],
  "_score": 4.447158031342219,
  "_indexed": true,
  "_nocasepkg": "whisper",
  "_universes": [
    "cornball-ai",
    "troyhernandez"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-05-18T09:46:34.000Z",
      "distro": "noble",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "c6ce26188a55abd65b88009f0125fe7b0e9a41dd32401b15e34e21bd740ddae8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-05-18T09:46:40.000Z",
      "distro": "noble",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "c317785bdc49b078bb86610ee7488644abc2e413b683151a7360f597b61e67d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-05-18T09:45:57.000Z",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "7baa58d4197e7760b775059fe4fb2a5fe6eef5cb88feabf4cdc097c04f29058b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-05-18T09:46:30.000Z",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "c642f5cfc9b90f7d2381248805cae4894c1cf67785a4f4c7b7f0366e97320d70",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-05-18T09:46:21.000Z",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "298432c42b10b896f4b10bec4e4958c4d75e803be785d3235b27d8e80e4dec0d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-05-18T09:45:38.000Z",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "4300d71e80dfa19a4ccc7c5df06e86f2a996ff5efee6401cac1d15e097538ab8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-05-18T09:45:45.000Z",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "625a84421d5d5fe24d1565dc88fbbd7dda0611141d6f8e6326ed9f5e811d0d81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-06-02T15:59:42.000Z",
      "commit": "1a34db6b99ba8e7570334ae2e7dd1dcfa2f7115c",
      "fileid": "fefb3a6bf1ec06143a3c048b334c88617188648e362ab0e01361deeb8e2aabee",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/26025712244"
    }
  ]
}