simple-gtts
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "simple-gtts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple Google text to speech", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -6,3 +6,3 @@ # simple-gtts | ||
```js | ||
gTTS("hello there", { | ||
await gTTS("hello there", { | ||
lang: "en-us", | ||
@@ -32,3 +32,3 @@ path: "./hello.mp3" | ||
// Include a path to save to a file | ||
gTTS("hello there", { | ||
await gTTS("hello there", { | ||
path: "./hello.mp3" | ||
@@ -41,3 +41,3 @@ }) | ||
// Not including a path will return a buffer | ||
const buff = gTTS("hello there") | ||
const buff = await gTTS("hello there") | ||
``` | ||
@@ -51,3 +51,3 @@ | ||
// Languages work with both files and buffers | ||
gTTS("hello there", { | ||
await gTTS("hello there", { | ||
lang: "fr", | ||
@@ -54,0 +54,0 @@ path: "./hello.mp3" |
4590