Lightweight voice assistant that parses Berkeley facility websites to answer questions about open hours.
Apple scripts unfortunately function only when given absolute paths. Hence, you will need to generate the appropriate scripts using scrapers/generate_scripts.py
. Pass in the absolute path to the cloned Rook
directory like so: python3 generate_scripts.py /Users/YOUR_NAME_HERE/Desktop/Rook
. The program will automatically create a new directory called scripts
in Rook
and populate scripts
with Apple scripts. You can set trigger words to run these scripts with the following steps.
For MacOS pre-Catalina and earlier:
- Go to Settings -> Accessibility -> Dictation -> Dictation Commands ->
+
. - Type your desired trigger phrase for a particular location (i.e., "what time is the stadium gym open today?")
- For "Perform:" select Run workflow -> Other -> Path to the relevant Apple script generated by
generate_scripts.py
For Catalina:
- Go to Settings -> Accessibility -> Voice Control -> Commands ->
+
. - Steps 2 and 3 are the same as above.
For MacOS pre-Catalina and earlier:
To use Rook, tap the fn
button twice and hold on the second time. The dictation box should pop up. Say the trigger phrase, and the system will parse the relevant web page and read the answer back to you.
For Catalina:
Unfortunately, Catalina no longer allows Dictation to run Apple Scripts. Instead, one must manually turn on Voice Control through Settings -> Accessibility -> Voice Control -> Check Enable Voice Control
. Alternatively, one can turn on Siri and tell it "Turn on voice control"
Currently Rook supports:
- Stadium gym hours
- RSF hours
- Anthropology library hours
- VLSB library hours
- Main stacks library hours
- Moffitt library hours
- Haas library hours
- Kresge library hours
- Chemistry library hours
- East Asian library hours
- Art history library hours
- Doe library hours
- Math library hours
- Morrison library hours
- Music library hours
- Optometry library hours
- Physics library hours
- BAMPFA library hours
- Bancroft library hours
- Boalt library hours
- Career Center library hours
- Visual Resources Center hours
- Earth Sciences library hours
- Environmental Design library hours
- Ethnic Studies library hours
- Graduate Services hours
- Theology library hours
- Governmental Studies library hours
- Transportation library hours
- Interlibrary Services hours
- Media library hours
- Newspaper library hours
- Northern Regional library hours
- Privileges hours
- Robbins library hours
- Social Research library hours