This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Region lines and then `M-x osx-say' to make OSX speak. | |
;; Adjust speak speed | |
(setq osx-say-speed 180) | |
;; Change voice | |
;; Kathy, Vicki, Victoria, Alex, Bruce, Fred | |
(setq osx-say-voice "Alex") | |
(setq osx-say-buffer "*osx say*") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//g++ -framework ApplicationServices ls2sl.cc | |
//enable [System Preferences -> Universal Access -> Access for assistive devices] | |
#include <stdio.h> | |
#include <ApplicationServices/ApplicationServices.h> | |
#include <sys/time.h> | |
#define BUFSIZE 100 | |
int keyBuffer[BUFSIZE]; | |
struct timeval timeBuffer[BUFSIZE]; |