Skip to content

@capgo/capacitor-speech-recognition

Capacitor plugin for comprehensive on-device speech recognition with live partial results.

Capacitor plugin for comprehensive on-device speech recognition with live partial results.

  • available -
  • isOnDeviceRecognitionAvailable -
  • start -
  • stop -

Public API

API
MethodDescription
availableChecks whether the native speech recognition service is usable on the current device.
isOnDeviceRecognitionAvailableChecks whether the platform’s newer on-device recognition path is available for the selected locale.
startBegins capturing audio and transcribing speech.
stopStops listening and tears down native resources.
forceStop__CAPGO_KEEP_0__を停止します。
getLastPartialResult__CAPGO_KEEP_0__の最後のキャッシュされた部分的なトランスクリプション結果を取得します。
setPTTState__CAPGO_KEEP_0__の現在のプッシュ・トゥ・トークのボタン状態を更新します。
getSupportedLanguages__CAPGO_KEEP_0__が使用する下位レベルの認識器がサポートするロケールを取得します。
isListening__CAPGO_KEEP_0__が音声の入力を待っている状態かどうかを返します。
checkPermissions__CAPGO_KEEP_0__の現在の許可状態を取得します。
requestPermissions__CAPGO_KEEP_0__のマイク + 音声認識の許可を要求します。
getPluginVersion__CAPGO_KEEP_0__に組み込まれているネイティブ プラグインのバージョンを返します。
addListener__CAPGO_KEEP_0__のセグメント化されたセッションの完了イベントをリスンします (Android 限定)。
addListener__CAPGO_KEEP_0__のセグメント化された認識結果をリスンします (Android 限定)。
addListener__CAPGO_KEEP_0__が有効になっている間は、部分的なトランスクリプションの更新をリスンします。 partialResults __CAPGO_KEEP_0__が有効になっている間は、部分的なトランスクリプションの更新をリスンします。
addListenernativeリスニングの状態の変更を待つ
addListener認識エラーの変更を待つ
addListenerセッションの準備が整ったときにリスナーを待つ
removeAllListeners登録済みのリスナーをすべて削除する

このリファレンスは src/definitions.ts in capacitor-speech-recognition.

@capgo/capacitor-speech-recognitionから続ける

セクション「@capgo/capacitor-speech-recognitionから続ける」

あなたが使用している場合 @capgo/capacitor-speech-recognition DashboardとAPIの計画と運用の連携 Using @capgo/capacitor-speech-recognition Capacitorのネイティブ機能の使用に@capgo/capacitor-speech-recognition API Overview for the implementation detail in API Overview, 導入 実装詳細の導入 API Keys for the implementation detail in API Keys, and デバイス 実装詳細のデバイス.