Skip to content

Add Python feed-mode integration example with failure case documentationAdd files via upload#35

Open
phillipsmark434-ux wants to merge 1 commit into
attenlabs:mainfrom
phillipsmark434-ux:main
Open

Add Python feed-mode integration example with failure case documentationAdd files via upload#35
phillipsmark434-ux wants to merge 1 commit into
attenlabs:mainfrom
phillipsmark434-ux:main

Conversation

@phillipsmark434-ux

Copy link
Copy Markdown

What does this PR do?

Type

  • Bug fix
  • New feature
  • Docs / examples
  • Internal / refactor

Checklist

  • Focused on one logical change
  • No public API / package / event names renamed
  • Tests added or updated where sensible
  • CHANGELOG.md updated under [Unreleased]
  • Commits signed off (git commit -s)

@phillipsmark434-ux

Copy link
Copy Markdown
Author

Hi attenlabs team!

This PR adds a Python feed-mode integration example for the SAA SDK.

What this contribution includes:

  • saa_integration.py: A working proof-of-concept using AttentionClient
    in audio-only feed mode (no microphone or camera required)
  • All 12 SDK events wired with clear print output
  • Synthetic PCM16 audio feed simulating a real microphone
  • LLM lifecycle demonstration (mute, mark_responding, unmute)
  • Runtime threshold adjustment example
  • 10 failure cases identified and handled with clear error messages

Failure cases covered:

  • Missing API key
  • SDK not installed
  • Auth failed (server error)
  • Connection stalled
  • WebSocket handshake failure
  • feed_audio() called with enable_audio=True
  • Wrong audio sample rate
  • Rate limiting
  • Heavy callback blocking
  • No error handler registered

Happy to make any changes based on your feedback!

Best regards,
phillipsmark434-ux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant