Giter VIP home page Giter VIP logo

rtts's Introduction

rtts (Ryu Text to Speech)

How to install

npm i rtts

rtts is an open source JavaScript package for text to speech conversion

example usage

const rtts = require('rtts');
(async()=>{
    rtts.rate=2.1
    rtts.vol=100
    await rtts.talk('hi');
})()

Options

Volume

A value between 0-100

rtts.vol

Speed

A value between 0-100

rtts.rate

Export

saves output as .wav in given dir .if no dir is given it will store output as example.wav in CW

rtts.exportWav(text,dir)

Ontalk

function will repeat every intervel until speech is ended only valid after calling rtts.talk

rtts.ontalk(callback,intervel)

Kill

terminate rtts.talk

rtts.kill

Kill

Terminate the running rtts.talk

rtts.kill

listVoices

list all available voices in current device options

Option Notes
name Name of the TTS instance
lang language of the TTS instance
gender Gender of the TTS instance
age Vocal age of the TTS instance
id TTS instance ID
ver TTS instance version
lcid Windows Language Code Identifier
langid ISO Language Code
rtts.listVoices(options) 

Options can be passed as strings separated by comas

for example if you only want to list names and age of avilable voices

rtts.listVoices('name,age') 

Features

Platform Speak Export Stop Speed Voice Voloume List
Windows 🚫
Linux 🚫 🚫 🚫 🚫 🚫 🚫 🚫
macOS 🚫 🚫 🚫 🚫 🚫 🚫 🚫

rtts's People

Contributors

8g6 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

rtts's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.