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

ts-zello-player

v0.0.6

Published

Command line audio player for Zello

Downloads

12

Readme

Command line Zello player

This is a command line tool to play audio files on a Zello channel.

It uses TS Zello library.

The tool is currently under development and is not ready for "production". There are things to do first, see the TODO section below.

Installation

Linux

Install the player:

$ npm i -g ts-zello-player

Install FFmpeg:

$ apt-get install ffmpeg

Install build-essential package:

$ apt-get install build-essential

Other OSes

Haven't tested or tried. Contributions are welcome.

Configuration

Create a json file credentials.json in the following format:

{
    "username": "<User Name>",
    "password": "<Password>",
    "auth_token": "<Auth Token>",
    "channel": "<Channel Name>"
}

See Zello authentication docs on how to get the token for your account.

Quick start

Play a file on the default channel from credentials.json:

$ ts-zello-player "file.mp3" 

Play a YouTube video on another channel:

$ ts-zello-player -c ChannelName "https://www.youtube.com/watch?v=0hLnMDJ-gV4"

Play a file

  • from 35th second
  • at 0.75 speed
  • at 0.5 volume
  • with bitrate of 32 Kbps
  • on the channel "ChannelName":
$ ts-zello-player -b 32 -t 0.75 -l 0.5 -c ChannelName file.mp3 35

For the full list of options see below.

Usage

$ ts-zello-player --help

Usage: ts-zello-player [options] <file> [start]
Usage: ts-zello-player [options] <youtube link> [start]

Positionals:
  target  A target to play, either file path or a YouTube link          [string]
  start   Start playback at                                             [string]

Options:
      --version      Show version number                               [boolean]
  -b, --bitrate      Bitrate in Kbps                      [number] [default: 48]
  -l, --volume       Volume factor                                      [number]
  -r, --rate         (re)Sampling rate
                    [choices: 8000, 12000, 16000, 24000, 48000] [default: 48000]
  -t, --tempo        Tempo factor                                       [number]
  -f, --frame        Frame size  [choices: 2.5, 5, 10, 20, 40, 60] [default: 20]
      --credentials  Credentials file path[string] [default: "credentials.json"]
  -c, --channel      Zello channel to connect to                        [string]
  -p, --preview      Show recording image preview     [boolean] [default: false]
  -i, --info         Show recording text information  [boolean] [default: false]
      --normalize    Normalize sound with FFmpeg "loudnorm" filter
                                                      [boolean] [default: false]
      --compress     Compress sound with FFmpeg "acompressor" filter
                                                      [boolean] [default: false]
  -h, --help         Show help                                         [boolean]

Examples:
  ts-zello-player file.mp3                  play file.mp3
  ts-zello-player https://www.youtube.com/  play audio from the YouTube video
  watch?v=0hLnMDJ-gV4

TODO

  • Finish this README
  • Record a short helping screencast
  • Add retry strategy selection to the command line options