11 lines
455 B
JavaScript
11 lines
455 B
JavaScript
const fs = require("fs");
|
|
const tik = require("./pkg");
|
|
|
|
(async function() {
|
|
let buff = await tik.get("hello world, i'm the english female voice!");
|
|
fs.writeFileSync("./test-1.mp3", buff);
|
|
console.log("- english female voice test saved to ./test-1.mp3");
|
|
buff = await tik.get("hello world, i'm the english male voice!", "en_us_006");
|
|
fs.writeFileSync("./test-2.mp3", buff);
|
|
console.log("- english male voice test saved to ./test-2.mp3");
|
|
})(); |