Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
google-home-audio-tts
Advanced tools
Library to play audio and text via TTS on Google Home devices.
Use npm to install this module:
$ npm install google-home-audio-tts
The library uses callback-style. Just initialize a new instance for a single device, it can be reused at any time.
let GoogleHomeAVT = require('google-home-audio-tts');
let device = new GoogleHomeAVT('192.168.2.34', 'en');
// play text via tts
device.tts('Hello!', result => {
// result:
// - media object on success
// - false on error
});
// play audio
device.audio('http://domain.com/file.mp3', result => {
// result:
// - media object on success
// - false on error
});
Some options can be changed on any time:
device.setIp('192.168.2.123'); // change ip address
device.setLanguage('de'); // set language for tts
device.setVolume(1); // change volume before playback, value between 0 and 1
device.setRestoreVolume(true); // restore original volume after playback
device.setStreamType("BUFFERED"); // stream time, BUFFERED or LIVE
device.setTtsTimeout(1000); // set timeout for tts request
device.setTtsSpeed(1); // set tts playback speed
This library explicit don't support MDNS! Use fixed IP addresses for your devices. MDNS causes problems on different systems. If there is really need to use MDNS, just add this before by yourself and pass the IP to this library.
TTS texts has a limit of 200 characters.
Please report bugs and feel free to ask for new features directly on GitHub.
Minoss is dual-licensed under MIT and GPL-2.0 license.
You like to support me?
You appreciate my work?
You use it in commercial projects?
Feel free to make a little donation! :wink:
FAQs
Plays Audio and Text via TTS on Google Home devices.
The npm package google-home-audio-tts receives a total of 2 weekly downloads. As such, google-home-audio-tts popularity was classified as not popular.
We found that google-home-audio-tts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.