-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Native Ionic code folder (#20)
* Added plugin and native ionic code * Removed the cognitive services plugin .DS_Store file from gitignore, and added all .DS_Store files. * Renamed Native Ionic Folder. Updated Readme. * Added images for README * Renamed cognitiveservicesPlugin folder
- Loading branch information
Showing
52 changed files
with
4,470 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<any>} Returns a promise that resolves when something happens | ||
*/ | ||
SetSubscription(speechSubscriptionKey: string, serviceRegion: string): Promise<void>; | ||
RecognizeFromMicrophone(): Observable<Array<Object>>; | ||
SpeakSsml(speechText: string): Promise<string>; | ||
SpeakSsmlAsync(speechText: string): Promise<string>; | ||
SpeakText(speechText: string): Promise<string>; | ||
SpeakTextAsync(speechText: string): Promise<string>; | ||
StopListening(): Promise<void>; | ||
SpeakWithVoiceOptions(speechText: string, options?: SpeechVoiceOptions): Promise<void>; | ||
SpeakStop(): Promise<void>; | ||
} | ||
|
||
export declare const CognitiveServices: CognitiveServicesOriginal; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<any>} Returns a promise that resolves when something happens | ||
*/ | ||
SetSubscription(speechSubscriptionKey: string, serviceRegion: string): Promise<void>; | ||
RecognizeFromMicrophone(): Observable<Array<Object>>; | ||
SpeakSsml(speechText: string): Promise<string>; | ||
SpeakSsmlAsync(speechText: string): Promise<string>; | ||
SpeakText(speechText: string): Promise<string>; | ||
SpeakTextAsync(speechText: string): Promise<string>; | ||
StopListening(): Promise<void>; | ||
SpeakWithVoiceOptions(speechText: string, options?: SpeechVoiceOptions): Promise<void>; | ||
SpeakStop(): Promise<void>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" }] | ||
} | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.