You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
27
26
28
27
Artyom is constantly updated with new gadgets and awesome features, star and watch this repository to be aware of artyom updates.
29
28
@@ -40,11 +39,13 @@ The most known features of artyom are:
40
39
- Pause and resume command recognition.
41
40
- Artyom has available the soundex algorithm to increase the accuracy of the recognition of commands (disabled by default).
42
41
- Use a remote command processor service instead of local processing with Javascript.
42
+
- Works both in desktop browser and mobile device.
43
43
44
44
### Voice Synthesis
45
45
46
46
- Synthesize extreme huge blocks of text (+20K words according to the last test).
47
47
- onStart and onEnd callbacks **will be always executed independently of the text length**.
48
+
- Works both in desktop browser and mobile device.
48
49
49
50
# Installation
50
51
@@ -107,19 +108,19 @@ With any of the previous methods, navigate to https://localhost:8443 and explore
107
108
108
109
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.
109
110
110
-
||Description |Codes for initialization|
111
+
||Description |Code for initialization|
111
112
------------- | ------------- | ------------- |
112
-
|<imgsrc="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
-
|<imgsrc="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|
|<imgsrc="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
+
|<imgsrc="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/flag-spanish.png"alt="Supported language"/>| Español |es-ES|
@@ -136,7 +137,7 @@ Do not hesitate to create a ticket on the issues area of the Github repository f
136
137
137
138
# Basic usage
138
139
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):
140
141
141
142
## With just plain JavaScript
142
143
@@ -194,12 +195,17 @@ artyom.initialize({
194
195
/**
195
196
* To speech text
196
197
*/
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",{
198
199
onStart: () => {
199
200
console.log("Reading ...");
200
201
},
201
202
onEnd: () => {
202
203
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
+
});
203
209
}
204
210
});
205
211
```
@@ -255,4 +261,4 @@ Thanks for visit the repository !
255
261
256
262
<palign="center">
257
263
<imgsrc="https://raw.githubusercontent.com/sdkcarlos/sdkcarlos.github.io/master/sites/artyom-resources/images/artyom_make_sandwich.jpg"alt="Artyom example use"width="256"/>
0 commit comments