-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
51 lines (51 loc) · 1.12 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs';
export interface SnipsResponse {
hotword: boolean;
}
/**
* @name Snips
* @description
* This plugin does something
*
* @usage
* ```typescript
* import { Snips } from '@ionic-native/snips';
*
*
* constructor(private snips: Snips) { }
*
* ...
*
* let config: DialogflowConfiguration;
* this.dialogflow.init(config)
* .then(() => console.log('Initialized'))
* .catch((error: any) => console.error(error));
*
* ```
*
* @interfaces
* DetectIntentResponse
*
* @interfaces
* StreamingDetectIntentResponse
*/
export declare class Snips extends IonicNativePlugin {
/**
* Starts listening to microphone input.
* @return {Observable<StreamingDetectIntentResponse>} Returns a observable containing streaming detect intent response.
*/
start(): Observable<SnipsResponse>;
/**
* Stops listening to microphone input.
*/
stop(): void;
/**
* Pauses listening to microphone input.
*/
pause(): void;
/**
* Resumes listening to microphone input.
*/
resume(): void;
}