Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. SpeechRecognition
  4. processLocally

SpeechRecognition: processLocally property

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

TheprocessLocally property of theSpeechRecognition interface specifies whether speech recognition must be performed locally on the user's device.

SeeOn-device speech recognition for more information.

Value

A boolean value.

  • If set totrue, speech recognition done via theSpeechRecognition object must be done locally.
  • If set tofalse (the default), the user agent can choose whether to do the processing locally or remotely.

Examples

Basic usage

The following code creates a newSpeechRecognition object instance using theSpeechRecognition() constructor, then specifies that it should use local processing by settingprocessLocally totrue:

js
const recognition = new SpeechRecognition();recognition.processLocally = true;

This code is excerpted from ouron-device speech color changer (run the demo live). SeeUsing the Web Speech API for a full explanation.

Specifications

Specification
Web Speech API
# dom-speechrecognition-processlocally

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp