UNPKG
google-tts-api
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.2-alpha.1
0.0.1
0.0.0-alpha
Google TTS (Text-To-Speech) for node.js
github.com/zlargon/google-tts
zlargon/google-tts
google-tts-api
/
example
/
english.js
12 lines
(9 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
var
googleTTS =
require
(
'..'
);
googleTTS
(
'Hello World'
,
'en'
,
1
)
// speed normal = 1 (default), slow = 0.24
.
then
(
function
(
url
) {
console
.
log
(url);
// https://translate.google.com/translate_tts?...
}) .
catch
(
function
(
err
) {
console
.
error
(err.
stack
); });