Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-plugin-speech-to-text

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-plugin-speech-to-text

capacitor-plugin-speech-to-text

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

capacitor-plugin-speech-to-text

capacitor-plugin-speech-to-text

Install

npm install capacitor-plugin-speech-to-text
npx cap sync

API

hasPermission()

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

Returns: Promise<{ permission: boolean; }>


initialize()

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

Returns: Promise<{ available: boolean; }>


locales()

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

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


stop()

stop() => Promise<{ stopped: boolean; }>

Returns: Promise<{ stopped: boolean; }>


cancel()

cancel() => Promise<{ cancelled: boolean; }>

Returns: Promise<{ cancelled: boolean; }>


listen(...)

listen(options: SpeechParams) => Promise<{ listening: boolean; }>
ParamType
optionsSpeechParams

Returns: Promise<{ listening: boolean; }>


addListener('textRecognition', ...)

addListener(eventName: "textRecognition", listenerFunc: (data: { speechString: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called on textRecognition and result received

Provides textRecognition result.

ParamType
eventName'textRecognition'
listenerFunc(data: { speechString: string; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('notifyStatus', ...)

addListener(eventName: "notifyStatus", listenerFunc: (data: { status: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when status changes and result received

Provides speech recognition status.

ParamType
eventName'notifyStatus'
listenerFunc(data: { status: string; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('notifyError', ...)

addListener(eventName: "notifyError", listenerFunc: (data: { error: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when there is an error and result received

Provides speech recognition error.

ParamType
eventName'notifyError'
listenerFunc(data: { error: string; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('soundLevelChange', ...)

addListener(eventName: "soundLevelChange", listenerFunc: (data: { soundLevel: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when sound level changes and result received

Provides sound level change.

ParamType
eventName'soundLevelChange'
listenerFunc(data: { soundLevel: string; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


Interfaces

SpeechParams
PropType
onDeviceboolean
partialResultsboolean
sampleRatenumber
listenModeListenMode
localeStrstring
PluginListenerHandle
PropType
remove() => Promise<void>

Enums

ListenMode
Members
devcieDefault
dictation
search
confirmation

Keywords

FAQs

Package last updated on 13 Nov 2023

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