Re:Does anyone use sound effects in their dev environment?
by whalesalad on Monday September 16, 2024 @02:07PM
(#41558784)
macos has the "say" binary which is fun to play with for stuff like this
[ Parent
| on HN ]
Re:Does anyone use sound effects in their dev environment?
by ryanmcbride on Monday September 16, 2024 @02:57PM
(#41559306)
a billion years ago I piped say and some various noise files into ffmpeg to make audios that sounded like numbers stations, I don't think it would run anymore but it was a lot of fun :D
Re:Does anyone use sound effects in their dev environment?
by nomel on Monday September 16, 2024 @03:16PM
(#41559494)
I did something similar for finding which outlet a breaker went to. I connected my MacBook to the outlet, airplay to the TV so it was loud, then had it yell if the power was disconnected:
while ! pmset -g batt | grep 'discharging'; do; echo waiting; sleep 1; done; say disconnected
Re:Does anyone use sound effects in their dev environment?
by centur on Tuesday September 17, 2024 @03:32AM
(#41565265)
Back in windows and powershell days, this was my favorite "security reminder" prank. Everyone who forgot to lock their machine and walked away got this script executed on their machines.
TLDR: it schedules a task "Security Reminder" to play "I'm watching you" via voice synth, every 30 mins.
```
$action = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument '-NoProfile -WindowStyle Hidden -command "& {[System.Reflection.Assembly]::LoadWithPartialName(""System.Speech"") | Out-Null; (New-Object (""System.Speech.Synthesis.SpeechSynthesizer"")).Speak(""I''m watching you"")}"'
$period = New-TimeSpan -Minutes 30;
$trigger = New-ScheduledTaskTrigger -RepetitionInterval (New-TimeSpan -Minutes 30) -RepetitionDuration (New-TimeSpan -Days 1024) -At 9am -Once
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "Security reminder" -Description "Security Reminder"
```
You can imagine people faces, especially many were sitting in headphones in open space offices. Those were the days...
Re:Does anyone use sound effects in their dev environment?
by layer8 on Tuesday September 17, 2024 @10:17AM
(#41567817)
That reminds me of the Say tool on the Amiga almost 40 years ago: https://en.wikipedia.org/wiki/Amiga_music_software#Speech_sy...
Re:Does anyone use sound effects in their dev environment?
by mrbombastic on Tuesday September 17, 2024 @10:52AM
(#41568179)
I often use this when i want some feedback from a script somewhere running on my machine but don’t know where output is going