From ef48e9c8fb307653f859aab87da432012618618f Mon Sep 17 00:00:00 2001 From: Ben Xu Date: Fri, 21 Jun 2024 04:32:33 -0700 Subject: [PATCH] update readme for 01 Light speaker sample rate --- README.md | 2 +- software/source/clients/esp32/src/client/client.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ab2af8..ebd8488 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ If you want to run local speech-to-text using Whisper, you must install Rust. Fo To customize the behavior of the system, edit the [system message, model, skills library path,](https://docs.openinterpreter.com/settings/all-settings) etc. in the `profiles` directory under the `server` directory. This file sets up an interpreter, and is powered by Open Interpreter. -To specify the text-to-speech service for the 01 `base_device.py`, set `interpreter.tts` to either "openai" for OpenAI, "elevenlabs" for ElevenLabs, or "coqui" for Coqui (local) in a profile. +To specify the text-to-speech service for the 01 `base_device.py`, set `interpreter.tts` to either "openai" for OpenAI, "elevenlabs" for ElevenLabs, or "coqui" for Coqui (local) in a profile. For the 01 Light, set `SPEAKER_SAMPLE_RATE` to 24000 for Coqui (local) or 22050 for OpenAI TTS. We currently don't support ElevenLabs TTS on the 01 Light. ## Ubuntu Dependencies diff --git a/software/source/clients/esp32/src/client/client.ino b/software/source/clients/esp32/src/client/client.ino index ab4bc7d..da6f2d5 100644 --- a/software/source/clients/esp32/src/client/client.ino +++ b/software/source/clients/esp32/src/client/client.ino @@ -576,7 +576,7 @@ void tryReconnectToServer() { #define MAX_DATA_LEN (1024 * 9) #define MIC_SAMPLE_RATE 16000 -#define SPEAKER_SAMPLE_RATE 24000 // or 22050 for OpenAI TTS +#define SPEAKER_SAMPLE_RATE 24000 // set to 24000 for Coqui (local) or 22050 for OpenAI TTS uint8_t microphonedata0[1024 * 10]; uint8_t speakerdata0[1024 * 1];