diff --git a/.gitignore b/.gitignore index 30f4f71..aa71c35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .DS_Store -cogservPlugin/node_modules/ -cogservPlugin/.gradle/ -cogservPlugin/platforms/ -cogservPlugin/src/ios/MicrosoftCognitiveServicesSpeech.framework/ -cogservPlugin/aar +cognitiveservicesPlugin/node_modules/ +cognitiveservicesPlugin/.gradle/ +cognitiveservicesPlugin/platforms/ +cognitiveservicesPlugin/src/ios/MicrosoftCognitiveServicesSpeech.framework/ +cognitiveservicesPlugin/aar diff --git a/README.md b/README.md index 65d1430..a7e9f52 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Environments.ts file. In the folder of the Ionic Application (ie examples/ionic-angular), run the following steps. Run the following command to install all packages within the app. In a terminal -window, browse to the speecthtoText folder +window, browse to the examples/ionic-angular folder and run the following: ```bash @@ -94,7 +94,7 @@ npm i -g cordova To include the wrapper for the Cognitive Services plugin as an observable, run the following command: ```bash -cp -r ../cogservicesNative ../examples/ionic-angular/node_modules/@ionic-native/ +cp -r ../cognitiveservices ../examples/ionic-angular/node_modules/@ionic-native/ ``` While this should install all components, there have been a few changes to @@ -108,11 +108,11 @@ cordova platform remove ios cordova platform add ios ``` -## Run it Application +## Run the Application ### Run on Browser -To run the application, in a terminal window, browse to the speecthtoText folder +To run the application, in a terminal window, browse to the examples/ionic-angular folder and run the following: ```bash diff --git a/cognitiveservices/index.d.ts b/cognitiveservices/index.d.ts new file mode 100644 index 0000000..86bc5dc --- /dev/null +++ b/cognitiveservices/index.d.ts @@ -0,0 +1,47 @@ +import { IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs'; +/** + * @name cognitiveservices + * @description + * This plugin does something + * + * @usage + * ```typescript + * import { cognitiveservices } from '@ionic-native/cognitiveservices'; + * + * + * constructor(private cognitiveservices: cognitiveservices) { } + * + * ... + * + * + * this.cognitiveservices.functionName('Hello', 123) + * .then((res: any) => console.log(res)) + * .catch((error: any) => console.error(error)); + * + * ``` + */ +export interface SpeechVoiceOptions { + language?: string; + pitch?: string; + voice?: string; +} +export declare class CognitiveServicesOriginal extends IonicNativePlugin { + /** + * This function does something + * @param arg1 {string} Some param to configure something + * @param arg2 {number} Another param to configure something + * @return {Promise} Returns a promise that resolves when something happens + */ + SetSubscription(speechSubscriptionKey: string, serviceRegion: string): Promise; + RecognizeFromMicrophone(): Observable>; + SpeakSsml(speechText: string): Promise; + SpeakSsmlAsync(speechText: string): Promise; + SpeakText(speechText: string): Promise; + SpeakTextAsync(speechText: string): Promise; + StopListening(): Promise; + SpeakWithVoiceOptions(speechText: string, options?: SpeechVoiceOptions): Promise; + SpeakStop(): Promise; +} + +export declare const CognitiveServices: CognitiveServicesOriginal; \ No newline at end of file diff --git a/cognitiveservices/index.js b/cognitiveservices/index.js new file mode 100644 index 0000000..df8894f --- /dev/null +++ b/cognitiveservices/index.js @@ -0,0 +1,39 @@ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +import { IonicNativePlugin, cordova } from '@ionic-native/core'; +import { Observable } from 'rxjs'; +var CognitiveServicesOriginal = /** @class */ (function (_super) { + __extends(CognitiveServicesOriginal, _super); + function CognitiveServicesOriginal() { + return _super !== null && _super.apply(this, arguments) || this; + } + CognitiveServicesOriginal.prototype.SetSubscription = function (speechSubscriptionKey, serviceRegion) { return cordova(this, "SetSubscription", {}, arguments); }; + CognitiveServicesOriginal.prototype.RecognizeFromMicrophone = function () { return cordova(this, "RecognizeFromMicrophone", { "callbackOrder": "reverse", "observable": true }, arguments); }; + CognitiveServicesOriginal.prototype.SpeakSsml = function (speechText) { return cordova(this, "SpeakSsml", {}, arguments); }; + CognitiveServicesOriginal.prototype.SpeakSsmlAsync = function (speechText) { return cordova(this, "SpeakSsmlAsync", {}, arguments); }; + CognitiveServicesOriginal.prototype.SpeakText = function (speechText) { return cordova(this, "SpeakText", {}, arguments); }; + CognitiveServicesOriginal.prototype.SpeakTextAsync = function (speechText) { return cordova(this, "SpeakTextAsync", {}, arguments); }; + CognitiveServicesOriginal.prototype.StopListening = function () { return cordova(this, "StopListening", {}, arguments); }; + CognitiveServicesOriginal.prototype.SpeakWithVoiceOptions = function (speechText, options) { return cordova(this, "SpeakWithVoiceOptions", {}, arguments); }; + CognitiveServicesOriginal.prototype.SpeakStop = function () { return cordova(this, "SpeakStop", {}, arguments); }; + CognitiveServicesOriginal.pluginName = "Cognitive Services"; + CognitiveServicesOriginal.plugin = "microsoft-plugin-cognitiveservices"; + CognitiveServicesOriginal.pluginRef = "microsoft.plugin.cognitiveservices"; + CognitiveServicesOriginal.repo = ""; + CognitiveServicesOriginal.platforms = ["iOS", "android"]; + return CognitiveServicesOriginal; +}(IonicNativePlugin)); +var CognitiveServices = new CognitiveServicesOriginal(); +export { CognitiveServices }; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL2NvZ25pdGl2ZXNlcnZpY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFDQSxPQUFPLDhCQUEwRixNQUFNLG9CQUFvQixDQUFDO0FBQzVILE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxNQUFNLENBQUM7O0lBc0NLLHFDQUFpQjs7OztJQVN0RCwyQ0FBZSxhQUFDLHFCQUE2QixFQUFFLGFBQXFCO0lBTXBFLG1EQUF1QjtJQUd2QixxQ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9XG5cbiAgQENvcmRvdmEoe1xuICAgIGNhbGxiYWNrT3JkZXI6ICdyZXZlcnNlJyxcbiAgICBvYnNlcnZhYmxlOiB0cnVlLFxuICB9KVxuICBSZWNvZ25pemVGcm9tTWljcm9waG9uZSgpOiBPYnNlcnZhYmxlPEFycmF5PE9iamVjdD4+IHsgcmV0dXJuIH1cblxuICBAQ29yZG92YSgpXG4gIFNwZWFrU3NtbChzcGVlY2hUZXh0OiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4geyByZXR1cm4gfVxuXG4gIEBDb3Jkb3ZhKClcbiAgU3BlYWtTc21sQXN5bmMoc3BlZWNoVGV4dDogc3RyaW5nKTogUHJvbWlzZTxzdHJpbmc+IHsgcmV0dXJuIH1cblxuICBAQ29yZG92YSgpXG4gIFNwZWFrVGV4dChzcGVlY2hUZXh0OiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4geyByZXR1cm4gfVxuXG4gIEBDb3Jkb3ZhKClcbiAgU3BlYWtUZXh0QXN5bmMoc3BlZWNoVGV4dDogc3RyaW5nKTogUHJvbWlzZTxzdHJpbmc+IHsgcmV0dXJuIH1cblxuICBAQ29yZG92YSgpXG4gIFN0b3BMaXN0ZW5pbmcoKTogUHJvbWlzZTx2b2lkPiB7IHJldHVybiB9XG5cbiAgQENvcmRvdmEoKVxuICBTcGVha1dpdGhWb2ljZU9wdGlvbnMoc3BlZWNoVGV4dDogc3RyaW5nLCBvcHRpb25zPzogU3BlZWNoVm9pY2VPcHRpb25zKTogUHJvbWlzZTx2b2lkPiB7IHJldHVybiB9XG4gICBcbn0iXX0= \ No newline at end of file diff --git a/cognitiveservices/ngx/index.d.ts b/cognitiveservices/ngx/index.d.ts new file mode 100644 index 0000000..4a403e5 --- /dev/null +++ b/cognitiveservices/ngx/index.d.ts @@ -0,0 +1,45 @@ +import { IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs'; +/** + * @name cognitiveservices + * @description + * This plugin does something + * + * @usage + * ```typescript + * import { cognitiveservices } from '@ionic-native/cognitiveservices'; + * + * + * constructor(private cognitiveservices: cognitiveservices) { } + * + * ... + * + * + * this.cognitiveservices.functionName('Hello', 123) + * .then((res: any) => console.log(res)) + * .catch((error: any) => console.error(error)); + * + * ``` + */ +export interface SpeechVoiceOptions { + language?: string; + pitch?: string; + voice?: string; +} +export declare class CognitiveServices extends IonicNativePlugin { + /** + * This function does something + * @param arg1 {string} Some param to configure something + * @param arg2 {number} Another param to configure something + * @return {Promise} Returns a promise that resolves when something happens + */ + SetSubscription(speechSubscriptionKey: string, serviceRegion: string): Promise; + RecognizeFromMicrophone(): Observable>; + SpeakSsml(speechText: string): Promise; + SpeakSsmlAsync(speechText: string): Promise; + SpeakText(speechText: string): Promise; + SpeakTextAsync(speechText: string): Promise; + StopListening(): Promise; + SpeakWithVoiceOptions(speechText: string, options?: SpeechVoiceOptions): Promise; + SpeakStop(): Promise; +} diff --git a/cognitiveservices/ngx/index.js b/cognitiveservices/ngx/index.js new file mode 100644 index 0000000..32b4529 --- /dev/null +++ b/cognitiveservices/ngx/index.js @@ -0,0 +1,48 @@ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +import { Injectable } from '@angular/core'; +import { IonicNativePlugin, cordova } from '@ionic-native/core'; +import { Observable } from 'rxjs'; +var CognitiveServices = /** @class */ (function (_super) { + __extends(CognitiveServices, _super); + function CognitiveServices() { + return _super !== null && _super.apply(this, arguments) || this; + } + CognitiveServices.prototype.SetSubscription = function (speechSubscriptionKey, serviceRegion) { return cordova(this, "SetSubscription", {}, arguments); }; + CognitiveServices.prototype.RecognizeFromMicrophone = function () { return cordova(this, "RecognizeFromMicrophone", { "callbackOrder": "reverse", "observable": true }, arguments); }; + CognitiveServices.prototype.SpeakSsml = function (speechText) { return cordova(this, "SpeakSsml", {}, arguments); }; + CognitiveServices.prototype.SpeakSsmlAsync = function (speechText) { return cordova(this, "SpeakSsmlAsync", {}, arguments); }; + CognitiveServices.prototype.SpeakText = function (speechText) { return cordova(this, "SpeakText", {}, arguments); }; + CognitiveServices.prototype.SpeakTextAsync = function (speechText) { return cordova(this, "SpeakTextAsync", {}, arguments); }; + CognitiveServices.prototype.StopListening = function () { return cordova(this, "StopListening", {}, arguments); }; + CognitiveServices.prototype.SpeakWithVoiceOptions = function (speechText, options) { return cordova(this, "SpeakWithVoiceOptions", {}, arguments); }; + CognitiveServices.prototype.SpeakStop = function () { return cordova(this, "SpeakStop", {}, arguments); }; + CognitiveServices.pluginName = "Cognitive Services"; + CognitiveServices.plugin = "microsoft-plugin-cognitiveservices"; + CognitiveServices.pluginRef = "microsoft.plugin.cognitiveservices"; + CognitiveServices.repo = ""; + CognitiveServices.platforms = ["iOS", "android"]; + CognitiveServices = __decorate([ + Injectable() + ], CognitiveServices); + return CognitiveServices; +}(IonicNativePlugin)); +export { CognitiveServices }; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5z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0ZW5pbmcoKTogUHJvbWlzZTx2b2lkPiB7IHJldHVybiB9XG5cbiAgQENvcmRvdmEoKVxuICBTcGVha1dpdGhWb2ljZU9wdGlvbnMoc3BlZWNoVGV4dDogc3RyaW5nLCBvcHRpb25zPzogU3BlZWNoVm9pY2VPcHRpb25zKTogUHJvbWlzZTx2b2lkPiB7IHJldHVybiB9XG4gICBcbn0iXX0= \ No newline at end of file diff --git a/cognitiveservices/ngx/index.metadata.json b/cognitiveservices/ngx/index.metadata.json new file mode 100644 index 0000000..7bd32e5 --- /dev/null +++ b/cognitiveservices/ngx/index.metadata.json @@ -0,0 +1,42 @@ +[ + { + "__symbolic": "module", + "version": 4, + "metadata": { + "SpeechVoiceOptions": { "__symbolic": "interface" }, + "CognitiveServices": { + "__symbolic": "class", + "extends": { + "__symbolic": "reference", + "module": "@ionic-native/core", + "name": "IonicNativePlugin", + "line": 40, + "character": 39 + }, + "decorators": [ + { + "__symbolic": "call", + "expression": { + "__symbolic": "reference", + "module": "@angular/core", + "name": "Injectable", + "line": 39, + "character": 1 + } + } + ], + "members": { + "SetSubscription": [{ "__symbolic": "method" }], + "RecognizeFromMicrophone": [{ "__symbolic": "method" }], + "SpeakSsml": [{ "__symbolic": "method" }], + "SpeakSsmlAsync": [{ "__symbolic": "method" }], + "SpeakText": [{ "__symbolic": "method" }], + "SpeakTextAsync": [{ "__symbolic": "method" }], + "StopListening": [{ "__symbolic": "method" }], + "SpeakWithVoiceOptions": [{ "__symbolic": "method" }], + "SpeakStop": [{ "__symbolic": "method" }] + } + } + } + } +] diff --git a/cognitiveservicesPlugin/.idea/codeStyles/Project.xml b/cognitiveservicesPlugin/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..681f41a --- /dev/null +++ b/cognitiveservicesPlugin/.idea/codeStyles/Project.xml @@ -0,0 +1,116 @@ + + + + + + + +
+ + + + xmlns:android + + ^$ + + + +
+
+ + + + xmlns:.* + + ^$ + + + BY_NAME + +
+
+ + + + .*:id + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + .*:name + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + name + + ^$ + + + +
+
+ + + + style + + ^$ + + + +
+
+ + + + .* + + ^$ + + + BY_NAME + +
+
+ + + + .* + + http://schemas.android.com/apk/res/android + + + ANDROID_ATTRIBUTE_ORDER + +
+
+ + + + .* + + .* + + + BY_NAME + +
+
+
+
+
+
\ No newline at end of file diff --git a/cognitiveservicesPlugin/.idea/gradle.xml b/cognitiveservicesPlugin/.idea/gradle.xml new file mode 100644 index 0000000..f885d59 --- /dev/null +++ b/cognitiveservicesPlugin/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/cognitiveservicesPlugin/.idea/misc.xml b/cognitiveservicesPlugin/.idea/misc.xml new file mode 100644 index 0000000..aecc280 --- /dev/null +++ b/cognitiveservicesPlugin/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/cognitiveservicesPlugin/.idea/vcs.xml b/cognitiveservicesPlugin/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/cognitiveservicesPlugin/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/cognitiveservicesPlugin/.idea/workspace.xml b/cognitiveservicesPlugin/.idea/workspace.xml new file mode 100644 index 0000000..ab2a7e6 --- /dev/null +++ b/cognitiveservicesPlugin/.idea/workspace.xml @@ -0,0 +1,335 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +