Skip to content

feat: add minimal feed_audio example for testing without hardware#29

Open
Muhammad-Awab wants to merge 1 commit into
attenlabs:mainfrom
Muhammad-Awab:add-minimal-example
Open

feat: add minimal feed_audio example for testing without hardware#29
Muhammad-Awab wants to merge 1 commit into
attenlabs:mainfrom
Muhammad-Awab:add-minimal-example

Conversation

@Muhammad-Awab

@Muhammad-Awab Muhammad-Awab commented Jun 24, 2026

Copy link
Copy Markdown

This PR adds a minimal example demonstrating how to use SAA's feed_audio() with generated audio.

Changes

  • New file: examples/python/minimal_example.py
  • Shows how to use SAA in feed mode (enable_audio=False)
  • Includes a simple test tone generator
  • Uses on_turn_ready and on_warmup_complete callbacks

Why this is useful

  • Testing SAA without a microphone
  • CI/CD pipelines
  • Quick validation of SAA functionality
  • Reference for integrating with Twilio Media Streams

How to test

# Set your API key
export SAA_API_KEY=your_key_here

Run the example

python examples/python/minimal_example.py

@Muhammad-Awab Muhammad-Awab deleted the add-minimal-example branch June 24, 2026 12:12
@Muhammad-Awab Muhammad-Awab restored the add-minimal-example branch June 24, 2026 12:19
@Muhammad-Awab Muhammad-Awab reopened this Jun 24, 2026

@omarthen3rd omarthen3rd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not to hardcode the warmup, SAA still needs audio fed during warmup phase.
Also no emojis in code.

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.

2 participants