🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@marswave/coli

Package Overview
Dependencies
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marswave/coli

A CLI for the Cola

latest
Source
npmnpm
Version
0.0.19
Version published
Weekly downloads
156
3.31%
Maintainers
5
Weekly downloads
 
Created
Source

coli

Core library for Cola. Provides essential capabilities commonly used by agents.

CLI Usage

npm install -g @marswave/coli
Usage
  $ coli <command> [options]

Commands
  asr         Transcribe an audio file using speech recognition
  tts         Speak text using native text-to-speech
  cloud-tts   Generate speech using ListenHub OpenAPI

Examples
  $ coli asr recording.m4a
  $ coli asr -j recording.m4a
  $ coli tts "Hello world"
  $ coli tts -v Samantha -r 200 "Hello world"
  $ coli cloud-tts --language en "Hello world"
  $ coli cloud-tts --voice cozy-man-english "Hello world"

API Usage

npm install @marswave/coli
import {ensureModels, runAsr, streamAsr, runTts} from '@marswave/coli';

// ASR
await ensureModels();
await runAsr('recording.m4a', {json: false, model: 'sensevoice'});

// Streaming ASR (see docs/asr.md for details)
await streamAsr(audioSource, {
	onResult(result) {
		console.log(result.text, result.isFinal ? '(final)' : '(partial)');
	},
});

// TTS
await runTts('Hello world', {voice: 'Samantha', rate: 200});

Documentation

  • ASR — Automatic speech recognition
  • TTS — Native text-to-speech synthesis
  • Cloud TTS — Cloud-based TTS via ListenHub OpenAPI
  • ListenHub OpenAPI — ListenHub OpenAPI client
  • Deprecations — Deprecated APIs

License

MIT

FAQs

Package last updated on 11 May 2026

Did you know?

Socket

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.

Install

Related posts