Thank for your help, but unfortunately none of the scripts is working, not yours, not mine, not the system sounds, not the beeps, not MS Speech and not even old SAPI Speech code. In case these system sounds should be really accessible with Task Scheduler and PowerShell. Maybe I can inject a WAV-output of the Microsoft Speech Platform into the system sounds, Is now talking to me, but speaking as well as probably all audio features seems to be limited only to a logged-in user, whereas in Unix you can program whatever you like.īTW, thanks for your suggestion with the System Sound API, which seems to be addressed via ::($sound.name).play(). Finally I got PowerShell speaking German using the latest 圆4 Microsoft Speech Platform v11 and Hedda Compared to the Mac, where about 80 HighQuality voices/languages are freely included in the system and which are fully scriptable with the Say command inĪny situation, it was a hard task for me to teach Windows 7 Pro 圆4 my native German language, because there aren't any included or free 圆4 SAPI voices. Unfortunately Windows seems to be - speakingwise - only intended for use in English speaking countries. And English is not my native language, thus this gadget would be anyway useless, because something like that would be either not available or very expensive. To buy additional hardware just for a pure fun feature, which is not includedīy itself, therefore doesn't make any sense. My intention is to play around with PowersShell, to check the possibilities and the limits, and to compare it with my primary system OS X 10.8 Mountain Lion. In a commercial environment I would get an IP based TTS device as it would be more reliable. You can get email to auto play sound files this way too. Set teh tablet into speach mose so that it erads either the system messages or an email body. Try using a cheap tablet PC and send it messages. Old PCs are good for all kinds of mundane tasks besides print spooling and simple file servers. It sat on a shelf and played music and told jokesįor a couple of years then went silent. OUtput it to the speach program and redlted the file. I wrote a batch file that looke for a file. Taken a very old WIndows 3.0 PC and used it as an annunciator. I would search for one of these methods and choose the most applicable solution. There is also a way to alter teh security on teh media device to alow it to be accessed with no UI. I have even seen some Wi-FI and blue tooth implementations. More sophisticated systems use a USB or an IP based device. Windows does not pecent a service or task from accessing the com ports so it is very easy to use file primitives like copy to send text to a com port. They are buit fo use in factories or anywhere where people cannotīerelioed on to see visual alerts They are generally no expensive and are somewhat ruggedized to the factory floor. Escapes in text can be used to control the speech or generate sounds like bells and alarms. Get a TTS device that sits on teh com port. it also speaks to the user what has happened,īut all these audio functions don't seem to be accessible in cases where no user is logged in. The complete script is much more complex, e.g. SMTP Client for this and despite some necessary circumvents like authentication it works. Sending an email is of course additionally done, the newer Intel Rapid Storage Technology versions have an integrated Of course it wouldn't make sense to only get an alarm of a dying RAID if the user is logged in… Here the essential part of the code, anything I'm missing or anything wrong with it? Alarm.wav is a 4 second audio file. Results are the same: The sound is audible only if "Run only when user is logged on" is checked, but fails if the "Run whether user is logged on or not" and "Run with highest privileges" options are checked and all users are logged off. Of course it wouldn't make sense to only get an alarm of a dying RAID if the user is logged in… Here the essential part of the code, anything I'm missing or anything wrong with it? Alarm.wav is a 4 the script runs under Administrator privileges. Results are the same: The sound is audible only if "Run only when user is logged on" is checked, but fails if the "Run whether user is logged on or not" and "Run with highest privileges" options are checked and all users are logged Thus for debugging I changed the event trigger to a simple timer in task scheduler, Triggering the event is done in Windows 7 task scheduler and according to the logs all events are recognized and the script is executed without errors, but no sound is audible. My intention is to trigger all events like a degraded RAID from the Intel Rapid Storage Technology Service “IAstorDataMgrSvc” and execute in this caseĪ PowerShell script which starts an audible alarm, even if no user is logged in. Coming from the UNIX world I'm a newbie in PowerShell scripting and thus started with a very simple script.
0 Comments
Leave a Reply. |