stream-assistant
v1.0.4
Published
An interactive stream assistant CLI built with Node.js. Powered by TikTok-Live-Connector.
Readme
stream-assistant
An interactive stream assistant and CLI tool built with Node.js. It integrates with tiktok-live-connector to listening the chat events and uses gTTS (text-to-speech) for audio feedback.
[!WARNING] This project is deprecated and no longer maintained. Visit the GitHub repository for more information.
Features
- Command-line interface executable (
stream-assistant) - Language selection via
-l/--langoption - Handlers for default behaviour, help, and version commands
- Text-to-speech utility (
src/utils/tts.js) usinggttsandsound-play - Easily extendable with new command handlers under
src/handler/
Installation
# clone and install locally
git clone https://github.com/NgodingWok/stream-assistant.git
cd stream-assistant
npm install
# or install globally after publishing
npm i -g stream-assistantUsage
# run with language code (e.g., en, ar, es)
stream-assistant -l enAvailable commands:
-help— show usage information-version— display the package version- any other input triggers the default handler
Development
- Handlers live in
src/handler/; each exports a function receiving(args). src/index.jsis the CLI entry point and dispatches to handlers.utils/tts.jsprovidesspeak(text, lang)returning a promise.
To add a handler, create a new file and update the handlers object in index.js.
License
MIT License — see LICENSE.
