-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from medelm1/update-readme
- Loading branch information
Showing
1 changed file
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,68 @@ | ||
# pieces-voice-chat | ||
|
||
__Overview__ | ||
|
||
A simply cli that allows you to have conversations with Pieces OS using just your voice. | ||
|
||
## Installation | ||
__Table of Contents__ | ||
|
||
1. Clone the repository and switch to the project directory | ||
```bash | ||
git clone https://github.com/mason-at-pieces/pieces-voice-chat.git | ||
cd pieces-voice-chat | ||
``` | ||
1. [Introduction](#introduction) | ||
2. [Setup Instructions](#setup_instructions) | ||
- [Prerequisites](#prerequisites) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
3. [Voice-Enabled Conversation Setup](#voice_enabled_conversation_setup) | ||
4. [Troubleshooting](#troubleshooting) | ||
|
||
## Introduction <a name="introduction"></a> | ||
|
||
Include detailed instructions on setting up and configuring the application to communicate with Pieces OS 100% on-device. | ||
|
||
## Setup Instructions <a name="setup_instructions"></a> | ||
|
||
__Prerequisites__ <a name="prerequisites"></a> | ||
|
||
Before starting, ensure you have the following installed: | ||
|
||
- Node.js: Version 16.0.0 or higher | ||
- NPM (Node Package Manager) or Yarn | ||
|
||
__Installation__ <a name="installation"></a> | ||
|
||
Clone the repository and install dependencies: | ||
|
||
2. Install the dependencies | ||
```bash | ||
git clone https://github.com/mason-at-pieces/pieces-voice-chat.git pieces-voice-chat | ||
cd pieces-voice-chat | ||
npm install | ||
``` | ||
|
||
3. Run the application | ||
__Usage__ <a name="usage"></a> | ||
|
||
Start the application: | ||
|
||
```bash | ||
npm run start | ||
``` | ||
|
||
or you can use the prebuild docker image (currently only on Linux, for MacOS and Windows you need a way to passthrough a microphone to the container) | ||
## Voice-Enabled Conversation Setup <a name="voice_enabled_conversation_setup"></a> | ||
|
||
To initiate voice-enabled conversations with Pieces OS 100% on-device: | ||
|
||
1. ***Ensure Pieces OS is Running Locally***: Start Pieces OS on your local machine using the installation method appropriate for your operating system. Refer to the Pieces OS [Installation Guide for detailed instructions](https://docs.pieces.app/installation-getting-started/pieces-os#installation-guide). | ||
2. ***Integrate with Local Setup***: Modify your application logic (`transcribeAndRespond` function) to communicate with Pieces OS's local endpoint (`http://localhost:1000`). Ensure the application can transcribe audio inputs and respond using local machine learning models managed by Pieces OS. | ||
3. ***Launch the Application***: Run the application by executing `npm run start` in your terminal. | ||
4. ***Start Recording***: Press the `SPACE` key to start recording your voice input. | ||
5. ***Speak Your Command***: Clearly speak your question or command into the microphone. | ||
6. ***Receive Response***: Listen for the response from Pieces OS, which will be played back automatically. | ||
|
||
## Troubleshooting <a name="troubleshooting"></a> | ||
|
||
If you encounter any issues during setup or usage, consider the following steps: | ||
|
||
- ***Check Dependencies***: Verify that all required dependencies are installed correctly. | ||
- ***Review Console Output***: Look for error messages or warnings in the console output. | ||
- ***Community Support***: Visit the Issues page for common [issues](https://github.com/mason-at-pieces/pieces-voice-chat/issues) or seek assistance from the community. | ||
|
||
By following these steps, your `pieces-voice-chat` project will effectively integrate with Pieces OS 100% on-device, providing a seamless voice interaction experience powered by local machine learning capabilities. | ||
|
||
```bash | ||
# make sure your microphone is connected to the host machine and can be accessed by the operating system | ||
docker run -it --device /dev/snd:/dev/snd ghcr.io/mason-at-pieces/pieces-voice-chat:latest | ||
``` |