Skip to content

Commit 7f2b2d9

Browse files
committed
Update 1.0.3
Optimization for mobile devices and force a language in a single speech synthesis object.
1 parent cfd8ac6 commit 7f2b2d9

File tree

14 files changed

+954
-840
lines changed

14 files changed

+954
-840
lines changed

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://raw.githubusercontent.com/sdkcarlos/artyom.js/master/public/images/artyomjs-logo.png" width="256" title="Artyom logo">
2+
<img src="https://raw.githubusercontent.com/sdkcarlos/artyom.js/master/public/images/artyomjs-logo.png" width="256" title="Artyom logo">
33
</p>
44

55
# Table of Contents
@@ -22,8 +22,7 @@
2222

2323
# About Artyom
2424

25-
Artyom.js is a robust and useful wrapper of the webkitSpeechRecognition and speechSynthesis APIs written in plain ol' Vanilla Javascript.
26-
Besides, artyom allows you to add dynamic commands to your web app (website).
25+
Artyom.js is a robust and useful wrapper of the webkitSpeechRecognition and speechSynthesis APIs. Besides, artyom allows you to add dynamic commands to your web app (website).
2726

2827
Artyom is constantly updated with new gadgets and awesome features, star and watch this repository to be aware of artyom updates.
2928

@@ -40,11 +39,13 @@ The most known features of artyom are:
4039
- Pause and resume command recognition.
4140
- Artyom has available the soundex algorithm to increase the accuracy of the recognition of commands (disabled by default).
4241
- Use a remote command processor service instead of local processing with Javascript.
42+
- Works both in desktop browser and mobile device.
4343

4444
### Voice Synthesis
4545

4646
- Synthesize extreme huge blocks of text (+20K words according to the last test).
4747
- onStart and onEnd callbacks **will be always executed independently of the text length**.
48+
- Works both in desktop browser and mobile device.
4849

4950
# Installation
5051

@@ -107,19 +108,19 @@ With any of the previous methods, navigate to https://localhost:8443 and explore
107108

108109
Artyom provides **complete** support for the following languages. Every language needs an initialization code that needs to be provided in the lang property at the initialization.
109110

110-
| |Description |Codes for initialization|
111+
| |Description |Code for initialization|
111112
------------- | ------------- | ------------- |
112-
|<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-usa.png" alt="Supported language"/>| English (USA)<br/>English (Great Britain) Great Britain <br/> United States of America | en-US<br/>en-GB<br/>en |
113-
|<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-spanish.png" alt="Supported language"/>| Español |es-CO<br/>es-ES<br/>es |
114-
|<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-german.png" alt="Supported language"/>| Deutsch | de-DE<br/>de |
113+
|<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-usa.png" alt="Supported language"/>| English (USA)<br/>English (Great Britain) Great Britain| en-US<br/>en-GB |
114+
|<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-spanish.png" alt="Supported language"/>| Español | es-ES |
115+
|<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-german.png" alt="Supported language"/>| Deutsch | de-DE |
115116
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-italy.png" alt="Supported language"/> | Italiano |it-IT |
116-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-france.png" alt="Supported language"/> | Français |fr-FR<br/>fr |
117-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-japan.png" alt="Supported language"/> | Japanese 日本人 | ja-JP<br/>jp |
118-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-russia.png" alt="Supported language"/> | Russian | ru-RU<br/>ru |
119-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-brasil.png" alt="Supported language"/> | Brazil | pt-PT<br/>pt |
120-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-netherlands.png" alt="Supported language"/> | Dutch (netherlands)| nl-NL<br/>nl |
121-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-poland.png" alt="Supported language"/> | Polski (polonia)| pl-PL<br/>pl |
122-
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-indonesia.png" alt="Supported language"/> | Indonesian (Indonesia)| id-ID<br/>id |
117+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-france.png" alt="Supported language"/> | Français |fr-FR |
118+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-japan.png" alt="Supported language"/> | Japanese 日本人 | ja-JP |
119+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-russia.png" alt="Supported language"/> | Russian | ru-RU |
120+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-brasil.png" alt="Supported language"/> | Brazil | pt-PT |
121+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-netherlands.png" alt="Supported language"/> | Dutch (netherlands)| nl-NL |
122+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-poland.png" alt="Supported language"/> | Polski (polonia)| pl-PL |
123+
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-indonesia.png" alt="Supported language"/> | Indonesian (Indonesia)| id-ID |
123124
| <img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-china.png" alt="Supported language"/> | Chinese (Cantonese[ 粤語(香港)] <br/> Mandarin[普通话(中国大陆)])| Cantonese<br/>zh-HK<br/> Mandarin<br />zh-CN|
124125

125126
# All you need to know about Artyom
@@ -136,7 +137,7 @@ Do not hesitate to create a ticket on the issues area of the Github repository f
136137

137138
# Basic usage
138139

139-
In this section we'll show you different examples of use of Artyom.
140+
Artyom it's written in Vanilla JS and TypeScript (Angular2):
140141

141142
## With just plain JavaScript
142143

@@ -194,12 +195,17 @@ artyom.initialize({
194195
/**
195196
* To speech text
196197
*/
197-
artyom.say("Hello, this is a demo text.",{
198+
artyom.say("Hello, this is a demo text. The next text will be spoken in Spanish",{
198199
onStart: () => {
199200
console.log("Reading ...");
200201
},
201202
onEnd: () => {
202203
console.log("No more text to talk");
204+
205+
// Force the language of a single speechSynthesis
206+
artyom.say("Hola, esto está en Español", {
207+
lang:"es-ES"
208+
});
203209
}
204210
});
205211
```
@@ -255,4 +261,4 @@ Thanks for visit the repository !
255261

256262
<p align="center">
257263
<img src="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/artyom_make_sandwich.jpg" alt="Artyom example use" width="256"/>
258-
</p>
264+
</p>

bower.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"name": "artyom.js",
3-
"description": "Artyom is a Robust Wrapper of the Google Chrome SpeechSynthesis and SpeechRecognition that allows you to create a virtual assistent",
4-
"main": "artyom.js",
5-
"authors": [
6-
"Carlos Delgado"
7-
],
8-
"license": "ISC",
9-
"keywords": [
10-
"speech",
11-
"recognition",
12-
"voice",
13-
"commands",
14-
"voice",
15-
"siri",
16-
"cortana",
17-
"googleNow"
18-
],
19-
"homepage": "https://github.com/sdkcarlos/artyom.js",
20-
"moduleType": [],
21-
"ignore": [
22-
"**/.*",
23-
"node_modules",
24-
"bower_components",
25-
"development",
26-
"public"
27-
]
28-
}
2+
"name": "artyom.js",
3+
"description": "Artyom is a Robust Wrapper of the Google Chrome SpeechSynthesis and SpeechRecognition that allows you to create a virtual assistent",
4+
"main": "artyom.js",
5+
"authors": [
6+
"Carlos Delgado"
7+
],
8+
"license": "ISC",
9+
"keywords": [
10+
"speech",
11+
"recognition",
12+
"voice",
13+
"commands",
14+
"voice",
15+
"siri",
16+
"cortana",
17+
"googleNow"
18+
],
19+
"homepage": "https://github.com/sdkcarlos/artyom.js",
20+
"moduleType": [],
21+
"ignore": [
22+
"**/.*",
23+
"node_modules",
24+
"bower_components",
25+
"development",
26+
"public"
27+
]
28+
}

0 commit comments

Comments
 (0)