1
+ # DEVELOPING
2
+
1
3
## Quick start
4
+
2
5
First clone this repo: ` git clone https://github.com/jeroenouw/AngularAI.git ` .
3
6
Change directory to this project
4
7
Run ` npm install ` to install all the dependencies.
5
8
Run ` npm start ` to run this project. This will run with the AoT Compiler.
6
- Navigate to ` http://localhost:4200/ ` . The app will automatically reload if you change any of the source files.
9
+ Navigate to ` http://localhost:4200/ ` . The app will automatically reload if you change any of the source files.
7
10
8
11
## Development
12
+
9
13
For own projects please use different token ` src/environment/environment.prod.ts ` and ` src/environment/environment.ts ` :
10
- ``` dialogflow: { ```
11
- ``` [CHOOSE_A_NAME]': '[YOUR_TOKEN]' ```
12
- ``` } ```
13
-
14
+
15
+ ``` ts
16
+
17
+ dialogflow : {
18
+ [CHOOSE_A_NAME ]' : ' [YOUR_TOKEN ]'
19
+ }
20
+
21
+ ` ` `
22
+
14
23
Run ` npm start ` for a dev server. Navigate to ` http :// localhost:4200/`. The app will automatically reload if you change any of the source files.
15
24
16
25
To build the development environment , run ` npm run dist ` .
17
26
18
27
## Production
19
- To build the default production environment, run ` npm run prod ` . This will run with the AoT Compiler.
20
- To build the production environment with reduced file size, run ` npm run prod:opt ` (Takes extra time to build with build optimizer).
28
+
29
+ To build the default production environment , run ` npm run prod ` . This will run with the AoT Compiler .
30
+
31
+ To build the production environment without hashes in your file , run ` npm run prod:hashless ` .
21
32
22
33
## Speech Options
34
+
23
35
Available speech recognition options in ` src/app/service/ai.service.ts `
24
36
25
37
Choose if the API needs to look for further words :
@@ -32,4 +44,4 @@ Select your speech language:
32
44
` this.speechRecognition.lang = 'en-us'; `
33
45
34
46
Choose the quantity of alternative available matches :
35
- ` this.speechRecognition.maxAlternatives = 0; `
47
+ ` this.speechRecognition.maxAlternatives = 0; `
0 commit comments