0.1.9 • Published 2 years ago

@morphood/capacitor-plugin-azure-keyword v0.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

capacitor-plugin-azure-keyword

This project hosts the samples for the Microsoft Cognitive Services Speech SDK.

Install

npm install @morphood/capacitor-plugin-azure-keyword
npx cap sync

API

initialize(...)

initialize(options?: InitOptions | undefined) => Promise<void>
ParamType
optionsInitOptions

recognizeKeywordFromMic()

recognizeKeywordFromMic() => Promise<RecognizeResult>

Returns: Promise<RecognizeResult>


stopRecognizeKeyword()

stopRecognizeKeyword() => Promise<RecognizeResult>

Returns: Promise<RecognizeResult>


recognizeSpeech()

recognizeSpeech() => Promise<RecognizeResult>

Returns: Promise<RecognizeResult>


stopRecognizeSpeech()

stopRecognizeSpeech() => Promise<RecognizeResult>

Returns: Promise<RecognizeResult>


recognizeIntent(...)

recognizeIntent(options: RecoIntentOption) => Promise<RecognizeResult>
ParamType
optionsRecoIntentOption

Returns: Promise<RecognizeResult>


stopIntentRecognize()

stopIntentRecognize() => Promise<RecognizeResult>

Returns: Promise<RecognizeResult>


synthesisToSpeaker(...)

synthesisToSpeaker(options: { text: string; }) => Promise<SynthesizingResult>
ParamType
options{ text: string; }

Returns: Promise<SynthesizingResult>


addListener('keywordResult', ...)

addListener(eventName: 'keywordResult', listenerFunc: (data: KeywordResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Provides keyword result.

ParamType
eventName'keywordResult'
listenerFunc(data: KeywordResult) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('speechResult', ...)

addListener(eventName: 'speechResult', listenerFunc: (data: SpeechResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Provides Speechl result.

ParamType
eventName'speechResult'
listenerFunc(data: SpeechResult) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('speechIntentResult', ...)

addListener(eventName: 'speechIntentResult', listenerFunc: (data: SpeechIntentResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Provides Speechl result.

ParamType
eventName'speechIntentResult'
listenerFunc(data: SpeechIntentResult) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


Interfaces

InitOptions

PropType
speechKeystring
speechRegionstring

RecognizeResult

PropType
isRecognizingboolean
recognizeStringstring

RecoIntentOption

PropType
appIdstring

SynthesizingResult

PropType
synthesizingboolean

PluginListenerHandle

PropType
remove() => Promise<void>

KeywordResult

PropType
reasonnumber
keywordstring

SpeechResult

PropType
isFinalboolean
textstring

SpeechIntentResult

PropType
isFinalboolean
textstring
intentstring
entitiesSpeechEntity[]

SpeechEntity

PropType
entitystring
typestring
startIndexnumber
endIndexnumber
scorenumber

Android Build Command

Add the following to android/build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

  repositories {
      google()
      jcenter()
      mavenCentral()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:7.2.1'
      classpath 'com.google.gms:google-services:4.3.10'

      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
  }
}

apply from: "variables.gradle"

allprojects {
  repositories {
      google()
      jcenter()
      mavenCentral()

      maven {
        url 'https://csspeechstorage.blob.core.windows.net/maven/'
      }
  }
}

task clean(type: Delete) {
  delete rootProject.buildDir
}

ext {
rgcfaIncludeGoogle = true
}
0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago