Skip to content

Comments

Add noise-machine-ability community ability#111

Open
yonaseth12 wants to merge 2 commits intoopenhome-dev:devfrom
yonaseth12:noise-machine-ability-yonas
Open

Add noise-machine-ability community ability#111
yonaseth12 wants to merge 2 commits intoopenhome-dev:devfrom
yonaseth12:noise-machine-ability-yonas

Conversation

@yonaseth12
Copy link
Contributor

What does this Ability do?

Plays relaxing ambient sounds (rain, ocean waves, cafe, white noise, etc.) for a user-selected duration. Users can stop playback anytime by saying “stop” (or other exit words), and the Ability exits cleanly back to normal OpenHome flow.

Suggested Trigger Words

  • "noise machine"
  • "sound machine"
  • "sleep sounds"
  • "play rain"
  • "ocean waves"
  • "white noise"
  • "cafe sounds"
  • "forest birds"

Type

  • New community Ability
  • Improvement to existing Ability
  • Bug fix
  • Documentation update

External APIs

  • No external APIs
  • Uses external API(s):

Testing

  • Tested in OpenHome Live Editor
  • All exit paths tested (said "stop", "exit", etc.)
  • Error scenarios tested (bad input, unrecognized sound name, invalid duration, missing audio file)

Checklist

  • Files are in community/noise-machine/
  • main.py follows SDK pattern (extends MatchingCapability, has register_capability + call)
  • README.md included with description, suggested triggers, and setup
  • resume_normal_flow() called on every exit path
  • No print() — using editor_logging_handler
  • No hardcoded API keys — using placeholders
  • No blocked imports (redis, connection_manager, user_config)
  • No asyncio.sleep() or asyncio.create_task() — using session_tasks
  • Error handling on all external calls
  • Tested in OpenHome Live Editor

Anything else?

  • Ensure the 15 MP3 files are uploaded into the Ability workspace with the exact filenames referenced in main.py (e.g., cafe.mp3, ocean_waves.mp3, white_noise.mp3, etc.).
  • Recommended quick demo flow: trigger → pick sound (“cafe”) → set duration (“one hour”) → stop (“stop”).

@yonaseth12 yonaseth12 requested a review from a team as a code owner February 21, 2026 23:20
@github-actions
Copy link
Contributor

🔀 Branch Merge Check

PR direction: noise-machine-ability-yonasdev

Passednoise-machine-ability-yonasdev is a valid merge direction

@github-actions github-actions bot added first-contribution First-time contributor community-ability Community-contributed ability labels Feb 21, 2026
@github-actions
Copy link
Contributor

✅ Ability Validation Passed

📋 Validating: community/noise-machine
  ✅ All checks passed!

@github-actions
Copy link
Contributor

🔍 Lint Results

🔧 Auto-formatted

Some files were automatically cleaned and formatted with autoflake + autopep8 and committed.

  • Unused imports removed (autoflake)
  • Unused variables removed (autoflake)
  • PEP8 formatting applied (autopep8)

__init__.py — Empty as expected

Files linted: community/noise-machine/main.py

✅ Flake8 — Passed

✅ All checks passed!

@codermohsin
Copy link
Contributor

Your ability submission is currently under review.

Our team will carefully evaluate it and provide feedback shortly.

Thank you for your submission

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

Labels

community-ability Community-contributed ability first-contribution First-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants