npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pimatic-tts

v0.0.5

Published

Pimatic plugin providing Text-to-Speech capability

Downloads

8

Readme

pimatic-tts

This plugin provides Text-to-Speech (TTS) functionality to Pimatic

Features

  • Provides a rule action allowing Pimatic to speak text over connected speakers
  • Currently supports the cloud based Google TTS API and Pico2Wave on Linux for offline TTS
  • Device approach holding the config allows for shorter action definitions, as most config will always be the same. You can configure several devices each holding a different output config.
  • Device approach also allows for greater flexibility from a development perspective
  • Plugin has been created to easily plugin other TTS platforms in future, as well as audio output devices
  • Audio output to connected audio devices is achieved by streaming PCM audio to the ALSA backend on Debian/Ubuntu

Rule syntax and examples:

Syntax

Say "text with $pimatic-variables" using TTSDevice

  • TTSDevice - determines the Text-to-Speech device to use for speech synthesis.

Example

  • when trigger: $activity is "wakeup" then Say "Goodmorning everyone! I have set the home for waking up comfortably." using google-tts-device

Installation and Configuration:

Install prerequisites as needed for your system:

  • ALSA

  • Alsa.h (Needed for compiling modules on which pimatic-tts depends)

  • mpg321

  • lame

  • Pico2Wave (For using offline Text-To-Speech)

    sudo apt-get install libttspico0 libttspico-utils libttspico-data alsa-utils

Raspbian / Debian example to install prerequisites: Google TTS : sudo apt-get install alsa-utils mpg123 lame libasound2-dev Pico2Wave: sudo apt-get install libttspico0 libttspico-utils libttspico-data alsa-utils

Installation

  • Install Pimatic-tts via the Pimatic frontend (preferred), activate the plugin and restart Pimatic
  • Alternatively add it to the Plugin section of your config.json (be sure to stop Pimatic before making modifications!):
{
  "plugin": "tts",
  "active": true
}

Support

Known issues:

  • Google cloud limits the length of a TTS text string to 200 characters (should be sufficient for most use cases)
  • Pimatic-tts (Google TTS API) requires an internet connection (which likely is the case already as you want to install the plugin)

Changelog:

  • V0.0.1 - Initial version providing speech synthesis using the Google TTS API

Roadmap

  • Implement an offline voice synthesizer next to the existing Google API
  • Implement the ability to deliver speech through network connected devices (We should dream, shouldn't we)