Skip to content

Commit

Permalink
🔖 update version to 2.0.0 and update the CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
zlargon committed Dec 8, 2020
1 parent 2c9dc6b commit 00c0d6b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
## 2.0.0 (Dec 8, 2020)

- Add new APIs (Please see the **Break Change** below)
- `getAudioUrl`
- `getAudioBase64`
- `getAllAudioUrls` (for long text)
- `getAllAudioBase64` (for long text)
- Support new Google TTS API to get audio Base64 text ([#35](https://github.com/zlargon/google-tts/issues/35))
- Support long text input: `getAllAudioUrls` and `getAllAudioBase64` ([#30](https://github.com/zlargon/google-tts/issues/30))
- Support changing the `host` in option ([#16](https://github.com/zlargon/google-tts/issues/16))
- Support Typescript
- Add dependency [axios](https://github.com/axios/axios)

### **Break Change from 0.x.x to 2.x.x**

`googleTTS()` is changed to `googleTTS.getAudioUrl()`.

```js
const googleTTS = require('google-tts-api');

// Before version 0.0.6
// Original googleTTS is a promise function
const url = await googleTTS('Hello World', 'en', 1);

// After version 2.0.0
// Now googleTTS is an object with 4 new methods (getAudioUrl, getAudioBase64, getAllAudioUrls, getAllAudioBase64)
// googleTTS.getAudioUrl is a non-promise function
const url = googleTTS.getAudioUrl('Hello World', {
lang: 'en-US',
slow: false, // speed (number) is changed to slow (boolean)
host: 'https://translate.google.com', // allow to change the host
});
```

## 0.0.6 (Dec 5, 2020)

- `timeout` parameter is deprecated.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-tts-api",
"version": "0.0.6",
"version": "2.0.0",
"description": "Google TTS (Text-To-Speech) for node.js",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 00c0d6b

Please sign in to comment.