Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Improved README.

  • Loading branch information...
commit eb89b301ea25548381a0926c39d1290658d65436 1 parent 55a4cff
@hiddentao authored
Showing with 7 additions and 5 deletions.
  1. +7 −5
@@ -18,14 +18,16 @@ Add the following inside your HTML `<body>` tag, near the bottom:
## API
-### Initialization
+### new GoogleTTS(language)
- var tts = new GoogleTTS();
+Initialize a new instance of the library, e.g:
-This initializes a new instance of the library with the default language set to _English (en)_. To set a different
-default language, pass in the language code during initialization:
+ var tts = new GoogleTTS('zh-CN');
+ * `language` - the default language to speak in when not otherwise specified. If omitted then English is assumed.
- var tts = new GoogleTTS('fr'); // French
### .languages()

0 comments on commit eb89b30

Please sign in to comment.
Something went wrong with that request. Please try again.