Dectalk
A Simple package for using Dectalk (Moonbase alpha voice)
Installation
npm install dectalk
see notes if it doesn't work for you
Example
Javascript:
const { say } = require('dectalk');
const { writeFileSync } = require('fs');
(async () => {
const WavData = await say("Hello World!");
writeFileSync('Hello.wav', WavData)
})();
Typescript:
import { writeFileSync } from "fs";
import { say } from 'dectalk';
(async () => {
const WavData: Buffer = await say("Hello World");
writeFileSync('Hello.wav', WavData);
})();
Notes
Windows
Windows support was added recently,
if you have any problems dont be afraid to make an issue
Linux
On my arch linux server (x86_64)
i had to install some dependencies
yay -S gcc-multilib lib32-glibc
since i was running 64-bit and the binary is 32-bit
but on ubuntu i didnt (it must have them pre installed)