Skip to content

Commit

Permalink
update readme for 01 Light speaker sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
benxu3 committed Jun 21, 2024
1 parent 5b60ec2 commit ef48e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion software/source/clients/esp32/src/client/client.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit ef48e9c

Please sign in to comment.