From 6d287e445ea0f195706c6d5c57d12a85c4c28652 Mon Sep 17 00:00:00 2001 From: sebvanleuven Date: Mon, 9 Feb 2026 15:15:44 +0000 Subject: [PATCH 1/5] swap defaults and update comment --- examples/avatar_audio_passthrough.py | 1 + src/anam/types.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/avatar_audio_passthrough.py b/examples/avatar_audio_passthrough.py index 7655659..e1d9412 100644 --- a/examples/avatar_audio_passthrough.py +++ b/examples/avatar_audio_passthrough.py @@ -192,6 +192,7 @@ def main() -> None: persona_config = PersonaConfig( avatar_id=avatar_id, enable_audio_passthrough=True, + llm_id="CUSTOMER_CLIENT_V1", ) # Create client diff --git a/src/anam/types.py b/src/anam/types.py index dcd4018..b4261a1 100644 --- a/src/anam/types.py +++ b/src/anam/types.py @@ -60,9 +60,8 @@ class PersonaConfig: llm_id: LLM model to use (optional). Set to 'CUSTOMER_CLIENT_V1' to disable Anam's default brain for custom LLM integration. max_session_length_seconds: Maximum session duration (optional). - enable_audio_passthrough: If True, enables audio passthrough mode where TTS audio - is sent directly through the socket without transcription, LLM, or TTS processing. - For ephemeral personas, this must be set explicitly. + enable_audio_passthrough: If True, bypasses Anam's orchestration layer + and allows to ingest direct TTS audio through the socket. """ persona_id: str | None = None @@ -74,7 +73,7 @@ class PersonaConfig: language_code: str | None = None llm_id: str | None = None max_session_length_seconds: int | None = None - enable_audio_passthrough: bool | None = True + enable_audio_passthrough: bool | None = False def to_dict(self) -> dict[str, Any]: """Convert to dictionary for API requests.""" From 5230ee7c8f21c55c7da9d81efd21016d572692de Mon Sep 17 00:00:00 2001 From: sebvanleuven Date: Mon, 9 Feb 2026 15:17:38 +0000 Subject: [PATCH 2/5] update comment --- src/anam/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anam/types.py b/src/anam/types.py index b4261a1..724c2c3 100644 --- a/src/anam/types.py +++ b/src/anam/types.py @@ -61,7 +61,7 @@ class PersonaConfig: Anam's default brain for custom LLM integration. max_session_length_seconds: Maximum session duration (optional). enable_audio_passthrough: If True, bypasses Anam's orchestration layer - and allows to ingest direct TTS audio through the socket. + and allows to ingest TTS audio directly through the socket. """ persona_id: str | None = None From 7ad2d7272b00da1d39f9b05ddde4ac7658ef4558 Mon Sep 17 00:00:00 2001 From: sebvanleuven Date: Mon, 9 Feb 2026 15:18:21 +0000 Subject: [PATCH 3/5] revert old debug line| --- examples/avatar_audio_passthrough.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/avatar_audio_passthrough.py b/examples/avatar_audio_passthrough.py index e1d9412..7655659 100644 --- a/examples/avatar_audio_passthrough.py +++ b/examples/avatar_audio_passthrough.py @@ -192,7 +192,6 @@ def main() -> None: persona_config = PersonaConfig( avatar_id=avatar_id, enable_audio_passthrough=True, - llm_id="CUSTOMER_CLIENT_V1", ) # Create client From d03939e371c27daa86f7364e73d99069786eed48 Mon Sep 17 00:00:00 2001 From: sebvanleuven Date: Mon, 9 Feb 2026 15:40:27 +0000 Subject: [PATCH 4/5] update default in pytest --- tests/test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index ea97f89..ced80ed 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -111,7 +111,7 @@ def test_to_dict_minimal(self) -> None: config = PersonaConfig(persona_id="test-id") result = config.to_dict() # enableAudioPassthrough defaults to True, so it's included - assert result == {"personaId": "test-id", "enableAudioPassthrough": True} + assert result == {"personaId": "test-id", "enableAudioPassthrough": False} def test_to_dict_full(self) -> None: """Test to_dict with all fields.""" From 6615f01746a1f6548f634a5ba68a47681e08ac64 Mon Sep 17 00:00:00 2001 From: sebvanleuven Date: Tue, 10 Feb 2026 23:47:31 +0000 Subject: [PATCH 5/5] remove incorrect comment --- tests/test_client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index ced80ed..09a6bbf 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -110,7 +110,6 @@ def test_to_dict_minimal(self) -> None: """Test to_dict with minimal config.""" config = PersonaConfig(persona_id="test-id") result = config.to_dict() - # enableAudioPassthrough defaults to True, so it's included assert result == {"personaId": "test-id", "enableAudioPassthrough": False} def test_to_dict_full(self) -> None: