New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@morphood/capacitor-plugin-speech-recognition

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morphood/capacitor-plugin-speech-recognition

Capacitor plugin for speech recognition.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

capacitor-plugin-speech-recognition

Capacitor plugin for speech recognition.

Install

npm install capacitor-plugin-speech-recognition
npx cap sync

iOS Platform: No further action required.

Android Platform: Register the plugin in your main activity:

import com.getcapacitor.community.speechrecognition.SpeechRecognition;

public class MainActivity extends BridgeActivity {

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Initializes the Bridge
    registerPlugin(SpeechRecognitionPlugin.class);
  }
}

Configuration

No configuration required for this plugin

Supported methods

NameAndroidiOSWeb
available
start
stop
getSupportedLanguages
hasPermission
requestPermission

API

  • available()
  • start(...)
  • stop()
  • getSupportedLanguages()
  • hasPermission()
  • requestPermission()
  • addListener('partialResults', ...)
  • Interfaces

available()

available() => Promise<{ available: boolean; }>

Returns: Promise<{ available: boolean; }>


start(...)

start(options?: UtteranceOptions | undefined) => Promise<{ matches: string[]; }>
ParamType
optionsUtteranceOptions

Returns: Promise<{ matches: string[]; }>


stop()

stop() => Promise<void>

getSupportedLanguages()

getSupportedLanguages() => Promise<{ languages: any[]; }>

Returns: Promise<{ languages: any[]; }>


hasPermission()

hasPermission() => Promise<{ permission: boolean; }>

Returns: Promise<{ permission: boolean; }>


requestPermission()

requestPermission() => Promise<void>

addListener('partialResults', ...)

addListener(eventName: 'partialResults', listenerFunc: (data: { matches: string[]; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when partialResults set to true and result received

Provides partial result.

ParamType
eventName'partialResults'
listenerFunc(data: { matches: string[]; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 2.0.2


Interfaces

UtteranceOptions
PropTypeDescription
languagestring
maxResultsnumber
promptstring
popupboolean
partialResultsboolean
noSpeechTimeoutnumberfor iOS only
speechSilenceTimeoutnumber
PluginListenerHandle
PropType
remove() => Promise<void>

Keywords

FAQs

Package last updated on 28 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc