From 1b75c79179de290911a0385ef6ac000d139ad80f Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Sat, 14 Feb 2026 21:27:50 -0500 Subject: [PATCH] Create say-out-loud skill: chime, built-in speakers, sets volume, speaks answer --- skills/say-out-loud/SKILL.md | 23 +++++++++++++++++++++++ skills/say-out-loud/say_out_loud.sh | 20 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 skills/say-out-loud/SKILL.md create mode 100755 skills/say-out-loud/say_out_loud.sh diff --git a/skills/say-out-loud/SKILL.md b/skills/say-out-loud/SKILL.md new file mode 100644 index 0000000..340576a --- /dev/null +++ b/skills/say-out-loud/SKILL.md @@ -0,0 +1,23 @@ +# SKILL.md - Say Out Loud + +## Purpose +Announce messages out loud through the Mac mini’s built-in speakers. Plays a chime, sets volume to 80%, and uses the macOS default system voice. Triggers on phrases like “talk to us” or “say out loud.” + +## Triggers +- “talk to us” +- “say out loud” +- “announce” +- or by explicit command in the interface + +## How it works +- Sets output to built-in speakers (if available) +- Sets volume to 80% +- Plays the macOS "Glass" chime +- Speaks the full answer using the system's default voice (can be changed to Alex, David, etc. on request) + +## Usage +Just say “talk to us” or any of the trigger phrases and Bro will say the next message out loud for everyone in the room. + +--- + +Script: `say_out_loud.sh` (see alongside this file) diff --git a/skills/say-out-loud/say_out_loud.sh b/skills/say-out-loud/say_out_loud.sh new file mode 100755 index 0000000..8bf67c4 --- /dev/null +++ b/skills/say-out-loud/say_out_loud.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# say_out_loud.sh +# Usage: ./say_out_loud.sh "message to say" + +MESSAGE="$1" + +# Set output to built-in speakers — comment this line if not needed +default_output="$(system_profiler SPAudioDataType | grep -B 5 'Built-in Output' | grep 'Device ID' | awk -F ": " '{print $2}' | head -n1)" +if [[ -n "$default_output" ]]; then + SwitchAudioSource -s "$default_output" 2>/dev/null +fi + +# Set system volume to 80% +osascript -e 'set volume output volume 80' + +# Play chime +afplay /System/Library/Sounds/Glass.aiff + +# Speak the message (default voice) +say "$MESSAGE"