whisper_open

モデルファイルを読み込んでハンドル取得

whisper_open "model_path"

(プラグイン / モジュール : hspwhisper_64.dll)

解説

GGML フォーマットの whisper モデルファイル (例 ggml-base.bin) を
読み込んで context を生成します。

戻り値: ハンドル (>=0) / -1 失敗

関連項目

whisper_transcribe_wavWAV ファイルを文字起こし(hspwhisper_64.dll)
whisper_closeハンドルを解放(hspwhisper_64.dll)

情報

プラグイン / モジュールhspwhisper_64.dll
バージョン1.0
作成日2026-04-14
著作者IronHSP / hspwhisper
URLhttps://github.com/inovia/IronHSP
備考hspwhisper.dll は OpenAI Whisper の高速 C++ 移植版 whisper.cpp
(ggerganov 製) を HSP からラップしたオフライン音声認識プラグイン。

特徴:
* オフライン (ネットワーク不要、API キー不要)
* 多言語対応 (日本語含む 99 言語)
* GGML 量子化モデル (tiny 75MB / base 140MB / small 470MB / medium 1.5GB / large 3GB)
* CPU 推論 (4 thread デフォルト)

依存:
third_party/whisper.cpp の cmake build 済 whisper.lib + ggml*.lib
GGML model file (別途 DL)

HSP からは package/win32/common/iron_speech.hsp を SPEECH_BACKEND_WHISPER
で使うのが推奨です。生 API は本ヘルプ参照。

ビルド + モデル DL の手順:
plugins/win32/hspwhisper/README.md 参照
タイプ拡張命令
グループhspwhisper
対応環境
  • その他 : Win64 専用 (whisper.cpp の SIMD 依存)
hs ファイルhsphelp\hspwhisper.hs