Pedal-Intelligence / saypi-userscript

An independent voice interface for Inflection AI's conversational assistant, Pi
https://www.saypi.ai/
Other
15 stars 3 forks source link
ai chat chatbot dictation heypi inflection-ai llm openai pi speech-recognition speech-to-text transcription voice voice-recognition whisper

Say, Pi Browser Extension

SayPi Logo

Enhance your voice interactions with Inflection AI's Pi chatbot with the Say, Pi extension for accurate voice dictation and immersive spoken dialogues.

Description

saypi-userscript is a powerful content script that enhances the voice dictation capabilities of Inflection AI's conversational AI chatbot, Pi. By installing and enabling this script in your web browser, you can have an immersive and interactive spoken dialogue with Pi, on the web at https://pi.ai.

Assembly

The content script is assembled using Webpack with npm run build from the command line in the project directory. This will generate a saypi.user.js file in the /public directory, bundling together all necessary JavaScript modules and assets. This user.js file is what get packaged as a userscript (with metadata.txt) and Chrome extension (with manifest.json).

Demo

Watch the demo video on YouTube

Features

Installation

Method 1: As A Browser Extension

  1. Say, Pi works best as a browser extension. Install it from the Chrome Web Store or unpacked from this repo

Method 2: As A Userscript

  1. Install a userscript manager extension for your browser (e.g., Tampermonkey, Greasemonkey).
  2. Install the userscript from public/saypi.user.js file in this repository, or from https://www.saypi.ai.

Compatibility

The Say, Pi works best on Chromium browsers such as Google Chrome, Microsoft Edge, and Kiwi Browser. It also works on these and other browsers, including Safari, as a userscript.

Contribution

We are not currently seeking code contributions to the repo. However, if you have ideas for improvements or bug fixes, feel free to discuss them with us on any of our social or support channels. Let's work together to enhance the voice interaction experience with Pi!

Testing

This project uses both Jest and Vitest for testing.

Jest is a JavaScript Testing Framework with a focus on simplicity. Vitest is a test runner designed for Vite. It's used for all ESM and TypeScript modules in this project. You can run Vitest in watch mode with the following command:

npm run test:vitest:watch

License

This project is licensed under a proprietary commerical license. Some source code is made available in this repo for public review, but it may not be copied, modified, forked or redistributed - see the LICENSE file for details.

Disclaimer

The "Say, Pi is an unofficial enhancement for Pi.ai. Use it responsibly and respect the terms of service of Pi as provided by Inflection AI. We cannot guarantee its compatibility with future updates or changes to Pi platform.

Contact Us

If you have any questions or comments, we'd love to hear from you! Drop us a message any of the channels below, or find us on the Pi Party Discord server. 🥧