ibmtts

1.2.0 • Public • Published

Module based on puppeteer to get free quality tts from IBM

/**
 * Creates a **puppeteer** browser.
 *
 * @example
 * ibmTTS.createBrowser()
 * 
 * @example
 * ibmTTS.createBrowser({headless: false})
 *
 *
 * @return a pupppeteeer browser
 */


/**
 * Converts text to speach.
 * browser should be a puppeteer browser or a 
 * ibmTTS.createBrowser browser
 *
 * @example
 * iibmTTS.get(browser, {
 *  text: "Hello, world!",
 *  output: "./test.flac" // Should be a path or a stream
 *  voice: 5 // Voice index (starting from 1)
 *  dialect: 1 // Dialect index (starting from 1)
 *  language: 5 // Language index (starting from 1)
 * })
 *
 * Get the indexes from https://www.ibm.com/demos/live/tts-demo/self-service/home.
 */

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i ibmtts

    Weekly Downloads

    3

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    6.36 kB

    Total Files

    4

    Last publish

    Collaborators

    • bloxxy213