-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jeroenouw/speech
Speech
- Loading branch information
Showing
11 changed files
with
184 additions
and
40 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
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,35 @@ | ||
## Quick start | ||
First clone this repo: `git clone https://github.com/jeroenouw/AngularAI.git`. | ||
Change directory to this project | ||
Run `npm install` to install all the dependencies. | ||
Run `npm start` to run this project. This will run with the AoT Compiler. | ||
Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. | ||
|
||
## Development | ||
For own projects please use different token `src/environment/environment.prod.ts` and `src/environment/environment.ts`: | ||
``` dialogflow: { ``` | ||
``` [CHOOSE_A_NAME]': '[YOUR_TOKEN]' ``` | ||
``` }``` | ||
|
||
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. | ||
|
||
To build the development environment, run `npm run dist`. | ||
|
||
## Production | ||
To build the default production environment, run `npm run prod`. This will run with the AoT Compiler. | ||
To build the production environment with reduced file size, run `npm run prod:opt` (Takes extra time to build with build optimizer). | ||
|
||
## Speech Options | ||
Available speech recognition options in `src/app/service/ai.service.ts` | ||
|
||
Choose if the API needs to look for further words: | ||
`this.speechRecognition.continuous = false;` | ||
|
||
Show interim results or just final results: | ||
`this.speechRecognition.interimResults = false;` | ||
|
||
Select your speech language: | ||
`this.speechRecognition.lang = 'en-us';` | ||
|
||
Choose the quantity of alternative available matches: | ||
`this.speechRecognition.maxAlternatives = 0;` |
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,13 @@ | ||
## Example sentences | ||
* Can you get smarter? | ||
* You're boring | ||
* Who is your boss? | ||
* You are funny | ||
* Are we friends? | ||
* I'll be back | ||
* You're wrong | ||
* Nice to see you! | ||
* What's up? | ||
* I don't want to talk | ||
* Today is my birthday | ||
* I need an advice |
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
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
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,4 @@ | ||
export interface IWindow extends Window { | ||
webkitSpeechRecognition: any; | ||
SpeechRecognition: any; | ||
} |
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