Skip to content
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Using Pipecat? See [assemblyai-pipecat-reference-voice-agent](https://github.com
You need [uv](https://docs.astral.sh/uv/getting-started/installation/), [Git LFS](https://git-lfs.com), the [LiveKit CLI](https://docs.livekit.io/intro/basics/cli/) (`brew install livekit-cli`) and an [AssemblyAI API key](https://www.assemblyai.com/dashboard/api-keys).

```console
git clone https://github.com/AssemblyAI-Solutions/assemblyai-livekit-reference-voice-agent.git
git clone https://github.com/AssemblyAI/assemblyai-livekit-reference-voice-agent.git
cd assemblyai-livekit-reference-voice-agent
uv sync
cp .env.example .env.local
Expand All @@ -39,7 +39,7 @@ Wear headphones so the agent doesn't hear itself, or add `--text` to type. Ask w
export ASSEMBLYAI_API_KEY=<your key>
curl -sS https://tts.us.assemblyai.com/v1/speech \
-H "Authorization: $ASSEMBLYAI_API_KEY" -H "Content-Type: application/json" \
-d '{"text": "Hi, I am Jane. How can I help?", "voice_id": "aai-jane", "container": "wav"}' \
-d '{"text": "Hi, I am Kyla. How can I help?", "voice_id": "37e65973-9d96-5aab-adcd-01bf56ab5af9", "container": "wav"}' \
-o voice.wav && afplay voice.wav
```

Expand All @@ -61,7 +61,7 @@ Open the repo in Claude Code, Cursor or Codex and describe the agent you want. [

| Building block | Default | Skill |
|---|---|---|
| Voice | Keegan | [tts-voice](skills/tts-voice/SKILL.md) |
| Voice | Kyla | [tts-voice](skills/tts-voice/SKILL.md) |
| Turn detection | `balanced` | [turn-detection](skills/turn-detection/SKILL.md) |
| Speech threshold and interruptions | `0.2` | [interruptions-and-vad](skills/interruptions-and-vad/SKILL.md) |
| Noise suppression | Off | [voice-focus](skills/voice-focus/SKILL.md) |
Expand Down
2 changes: 1 addition & 1 deletion skills/languages/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AssemblyAI TTS speaks English, Spanish, German, French, Italian and Portuguese:
tts = assemblyai.TTS(voice=TTS_VOICE, language="es") # "es" or "spanish"
```

The voice must speak the language. The eleven featured voices (`aai-jane`, `aai-michael` and the rest) speak all six; every other library voice, and every cloned voice, speaks only the language it was recorded in. To find voices recorded in a language, see the [tts-voice skill](../tts-voice/SKILL.md) (`&language=spanish`).
The voice must speak the language. The eleven featured voices (`aai-jane`, `aai-michael` and the rest) speak all six; every other library voice, and every cloned voice, speaks only the language it was recorded in. The default voice, Kyla, speaks only English, so change `TTS_VOICE` too. To find voices recorded in a language, see the [tts-voice skill](../tts-voice/SKILL.md) (`&language=spanish`).

With a single-language library or cloned voice, leave `language` out: the voice's own language is used.

Expand Down
4 changes: 2 additions & 2 deletions skills/tts-voice/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ description: Choose the agent's AssemblyAI text-to-speech voice, find and previe
The agent speaks with AssemblyAI streaming TTS. The voice is set in `src/agent.py`:

```python
TTS_VOICE = "987db62e-a2c2-569a-9c4d-82460cdea1bd" # Keegan
ASSISTANT_NAME = "Keegan"
TTS_VOICE = "37e65973-9d96-5aab-adcd-01bf56ab5af9" # Kyla
ASSISTANT_NAME = "Kyla"
...
tts = assemblyai.TTS(voice=TTS_VOICE)
```
Expand Down
4 changes: 2 additions & 2 deletions src/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
# --- Voice: skills/tts-voice ---

# A voice id from https://www.assemblyai.com/docs/tts/voices, or one of your cloned voices
TTS_VOICE = "987db62e-a2c2-569a-9c4d-82460cdea1bd" # Keegan
TTS_VOICE = "37e65973-9d96-5aab-adcd-01bf56ab5af9" # Kyla

# The agent introduces itself by the voice's name; if you change one, change the other
ASSISTANT_NAME = "Keegan"
ASSISTANT_NAME = "Kyla"

# --- Speech-to-text ---

Expand Down
Loading