@@ -2,12 +2,12 @@ import { Injectable, NgZone } from '@angular/core';
2
2
import { environment } from '../../environments/environment' ;
3
3
import * as lodash from 'lodash' ;
4
4
5
- import { Observable } from 'rxjs/Observable ' ;
5
+ import { Observable } from 'rxjs/observable ' ;
6
6
import { BehaviorSubject } from 'rxjs/BehaviorSubject' ;
7
7
8
8
import { ApiAiClient } from 'api-ai-javascript' ;
9
9
import { Message } from '../model/message'
10
- import { IWindow } from '../interface/iwindow '
10
+ import { IWindow } from '../interface/Iwindow '
11
11
12
12
@Injectable ( )
13
13
export class AiService {
@@ -28,11 +28,11 @@ export class AiService {
28
28
const userMessage = new Message ( msg , 'user' ) ;
29
29
this . update ( userMessage ) ;
30
30
return this . client . textRequest ( msg )
31
- . then ( res => {
32
- const speech = res . result . fulfillment . speech ;
33
- const botMessage = new Message ( speech , 'bot' ) ;
34
- this . update ( botMessage ) ;
35
- } ) ;
31
+ . then ( res => {
32
+ const speech = res . result . fulfillment . speech ;
33
+ const botMessage = new Message ( speech , 'bot' ) ;
34
+ this . update ( botMessage ) ;
35
+ } ) ;
36
36
}
37
37
38
38
voiceConversation ( ) : Observable < string > {
@@ -67,7 +67,7 @@ export class AiService {
67
67
} ;
68
68
69
69
this . speechRecognition . start ( ) ;
70
- // console.log('Listening...');
70
+ // console.log('Listening...');
71
71
} ) ;
72
72
}
73
73
0 commit comments