Skip to main content

CLI to interact with the neets.ai API

Project description

Neets API CLI

CLI to interact with the neets.ai Text To Speech and completions API.

Installation

pip install neets

A neets.ai API key must be set as an environment variable.

export NEETS_API_KEY=<your api key>

Completions

Use the chat command to generate completions.

neets chat --prompt "How soon will I be unemployed?" 

By default, the chat command will use the Neets-7B model. you can specify a different model with the --model flag.

neets chat --prompt "why is the sky blue?" --model "mistralai/Mixtral-8X7B-Instruct-v0.1"

Text To Speech

Use the tts command to generate audio from text.

neets tts --voice "mark-zuckerberg" --text "I'm out here smoking some meats"
  • To get a list of available voices, use the voices command.
  • To specify an output file, use the --output-file flag.
  • To specify the output format, use the --output-fmt
  • The default output file is [voice]_uuid.[output-fmt] in the current directory.
  • The default output format is wav

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neets-0.0.4.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distribution

neets-0.0.4-py3-none-any.whl (18.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page