dectalk
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

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

Mac

Unfortunately, Dectalk does not support macOS. If you would like to use this module on Mac, try running your project inside a Linux Docker container.

Linux

On Linux, you may have to install a dependency:

apt install libpulse0

or

pacman -S libpulse

/dectalk/

    Package Sidebar

    Install

    npm i dectalk

    Weekly Downloads

    2

    Version

    1.3.1

    License

    none

    Unpacked Size

    4.55 MB

    Total Files

    14

    Last publish

    Collaborators

    • obabakinha