Skip to content
Merged
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 @@ -287,9 +287,9 @@ PIPER_SPEAKER_ID_ES=
but new deployments should prefer `PIPER_MODEL_PATH_EN` and
`PIPER_MODEL_PATH_ES`. If the requested language-specific model is missing, the
agent logs the actual fallback source, for example
`piper_voice_source=piper_model_path_es_fallback`. On the CPU demo image, that
means English text can temporarily fall back to the bundled Spanish voice until
an English Piper model is added through `PIPER_MODEL_PATH_EN`.
`piper_voice_source=piper_model_path_es_fallback`. The CPU deployment image is
expected to include both the Spanish and English Piper models and should set
`PIPER_MODEL_PATH_EN` to the English model path.

A site can override the full session instructions through LiveKit room metadata
(`agent_prompt`) or future site configuration. Code, comments, tests, and public
Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Settings(BaseSettings):
description="Optional legacy language-agnostic Piper ONNX voice fallback",
)
piper_model_path_en: str | None = Field(
default=None,
default="/srv/piper/voices/en_US-lessac-medium.onnx",
description="Optional Piper ONNX voice model for English agent voice",
)
piper_model_path_es: str | None = Field(
Expand Down
12 changes: 12 additions & 0 deletions tests/test_local_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,18 @@ def test_piper_voice_selection_settings_are_available(self):
assert s.piper_speaker_id_en == 1
assert s.deepgram_enable_diarization is True

def test_piper_english_voice_has_image_default(self):
s = Settings(
livekit_url="ws://localhost:7880",
livekit_api_key="k",
livekit_api_secret="s",
tts_provider="piper",
llm_provider="ollama",
stt_provider="whisper",
)

assert s.piper_model_path_en == "/srv/piper/voices/en_US-lessac-medium.onnx"


class TestFullLocalStack:
def test_all_local_no_api_keys(self, monkeypatch):
Expand Down
Loading