Skip to main content

bard is a text to speech tool based on existing open-source models (local install) and APIs to install on your desktop

Project description

pypi

Bard

Bard is a text to speech client that integrates on the desktop

Install

Install libraries or system-specific dependencies:

sudo apt-get install portaudio19-dev xclip #  portaudio19-dev becomes portaudio with Homebrew
sudo apt install libcairo-dev libgirepository1.0-dev gir1.2-appindicator3-0.1  # Ubuntu ONLY (not needed on MacOS)
pip install PyGObject # Ubuntu ONLY (not needed on MacOS)

Install the main app

pip install bard-cli

Install optional dependencies

pip install openai

(at the moment openai is the only backend so you better have it installed ;))

GNOME

On GNOME desktop you can subsequently run:

scribe-install [...]

to produce a .desktop file for GNOME's quick-launch (the [...] indicates any argument that bard takes)

Usage

In a terminal:

bard

which defaults to:

bard --backend openaiapi --voice allow --model tts-1

(this assumes the environment variable OPENAI_API_KEY is defined)

An icon should show up almost immediately in the system tray, with options to copy the content of the clipboard (the last thing you copy-pasted) and send that to the AI model for reading aloud.

For testing you can also start the app with

bard --default-file /path/to/audio.mp3

Player

The player was devised in conversation with Mistral's Le Chat and Open AI's Chat GPT, and my own experience with pystray on scribe. It works.

I'm open for suggestion for other, platform-independent integrations to the OS.

Roadmap

Include more backends including local ones.

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

bard_cli-0.1.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bard_cli-0.1.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file bard_cli-0.1.2.tar.gz.

File metadata

  • Download URL: bard_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bard_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 92e5ddba4b3c8d86a5626d7293ac0f6ce8caa369eabb3e4f93059d56ff5eb0d4
MD5 224ffb10e3ceeb58136c2866e06ce108
BLAKE2b-256 8b6c86567dec09871cf558ce56a4f545fe91f1e78babd9542d0a09d1027d2188

See more details on using hashes here.

Provenance

The following attestation bundles were made for bard_cli-0.1.2.tar.gz:

Publisher: pypi.yml on perrette/bard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bard_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bard_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bard_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecc80e186be4a6f60dabfb3e73b93cec83d3089d20dad868cdddbdc0401feda
MD5 54ff710e5b5bab9ab83be03b39937bae
BLAKE2b-256 266651c98bc05e104adf3ea2e0b2265028a3d2ac4cd42ca37e403f4de7246193

See more details on using hashes here.

Provenance

The following attestation bundles were made for bard_cli-0.1.2-py3-none-any.whl:

Publisher: pypi.yml on perrette/bard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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