├── .github
└── FUNDING.yml
├── .gitattributes
├── images
├── mic.gif
├── mic-slash.gif
└── mic-animation.gif
├── style
└── web-speech.css
├── README.md
├── LICENSE
├── index.html
└── js
├── languages.js
└── web-speech-api.js
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | ko_fi: bensonruan
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/images/mic.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bensonruan/Chrome-Web-Speech-API/HEAD/images/mic.gif
--------------------------------------------------------------------------------
/images/mic-slash.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bensonruan/Chrome-Web-Speech-API/HEAD/images/mic-slash.gif
--------------------------------------------------------------------------------
/images/mic-animation.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bensonruan/Chrome-Web-Speech-API/HEAD/images/mic-animation.gif
--------------------------------------------------------------------------------
/style/web-speech.css:
--------------------------------------------------------------------------------
1 | #info a {
2 | color: darkred;
3 | text-decoration: underline;
4 | }
5 |
6 | .final {
7 | color: black;
8 | padding-right: 3px;
9 | }
10 | .interim {
11 | color: gray;
12 | }
13 | #results {
14 | font-size: 14px;
15 | font-weight: bold;
16 | border: 1px solid #ddd;
17 | padding: 15px;
18 | text-align: left;
19 | min-height: 150px;
20 | margin: 0 0 20px 0;
21 | }
22 | #start_button {
23 | border: 0;
24 | background-color:transparent;
25 | padding: 0;
26 | cursor: pointer;
27 | }
28 | #start_img {
29 | width: 50px;
30 | height: 50px;
31 | }
32 |
33 | .btn-primary {
34 | width: 100px;
35 | margin: auto;
36 | }
37 |
38 | select {
39 | padding: 5px 5px;
40 | }
41 |
42 | @media screen and (max-width: 767px) {
43 | #select_dialect {
44 | position: absolute;
45 | right: 0;
46 | }
47 | }
48 |
49 | @media screen and (min-width: 768px) {
50 | select {
51 | margin-right: 10px;
52 | }
53 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Chrome Web Speech API
2 | Voice to Text with Google Chrome Web Speech API
3 |
4 |
5 | ## Live Demo
6 | **[https://bensonruan.com/voice-to-text-with-chrome-web-speech-api/](https://bensonruan.com/voice-to-text-with-chrome-web-speech-api/)**
7 |
8 |
9 | ## Installing
10 | Clone this repository to your local computer
11 | ``` bash
12 | git https://github.com/bensonruan/Chrome-Web-Speech-API.git
13 | ```
14 | Point your localhost to the cloned root directory
15 |
16 | Browse to http://localhost/index.html with Chrome browser.
17 |
18 | ## Start Typing with your voice
19 | * Turn on the microphone by click on the microphone icon
20 | * Allowing the browser to access your microphone
21 | * Start speaking
22 |
23 | ## Supported Browsers
24 | At the moment, it only support Google Chrome version 25 or later on desktop and Android mobile
25 |
26 | ## Library
27 | * [jquery](https://code.jquery.com/jquery-3.3.1.min.js) - JQuery
28 |
29 | ## Support me
30 | [](https://ko-fi.com/W7W6METMY)
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Benson Ruan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |