Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to deploy and configure voice feature in GCP VM #312

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions deploy_voice_feature.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# Update and install necessary dependencies
sudo apt-get update
sudo apt-get install -y python3-pip python3-venv ffmpeg

# Create a virtual environment
python3 -m venv venv
source venv/bin/activate

# Install required Python packages
pip install poetry

# Clone the repository if not already cloned
if [ ! -d "01" ]; then
git clone https://github.com/OpenInterpreter/01.git
fi

cd 01/software

# Install project dependencies
poetry install

# Set up environment variables for the voice feature
echo "export OPENAI_API_KEY='your_openai_api_key'" >> ~/.bashrc
source ~/.bashrc

# Start the server with the voice feature enabled
poetry run 01 --server light --expose --qr
16 changes: 16 additions & 0 deletions docs/server/configure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,19 @@ interpreter.tts = "coqui"
introducing all-local functionality for the Livekit server as soon as
possible.
</Note>

### Deploy and Configure Voice Feature in GCP VM

To deploy and configure the voice feature in a GCP VM where Open Interpreter is already installed, you can use the provided `deploy_voice_feature.sh` script. This script automates the entire process, including installing necessary dependencies, setting up environment variables, and starting the server with the voice feature enabled.

1. Download the `deploy_voice_feature.sh` script to your GCP VM.
2. Make the script executable:
```bash
chmod +x deploy_voice_feature.sh
```
3. Run the script:
```bash
./deploy_voice_feature.sh
```

The script will handle the installation of dependencies, configuration of environment variables, and starting the server with the voice feature enabled using the OpenAI Realtime Voice API.