This repository is dedicated to both Authoring App and SCALP App.
-
IMPORTANT: Both projects use Java 8, and they don't work with further versions of java
-
Authoring App: This is a GUI application that enables the creation of
Scenario
files.- Scenarios are text files that together with some associated audio files will be executed by the Raspberry Pi.
- This app responsibility is to output a formatted text file and associated it with the correct audio files.
- The Authoring app can record audio for your scenarios. It creates .wav files at CD quality (Sample rate: 44.1 kHz, Bit depth: 16). If you plan to use your own audio recordings, it is recommended that it is recorded using the same sample rate and bit depth for maximum compatibility on all platforms.
-
SCALP: This app is responsible for running the
Scenario
files inside the Raspberry Pi (also the Desktop for debugging).SCALP
means Select-(as per)-Config-and-Launch-PlayerSCALP
contains a separate repository calledTreasure Box Braille Setup
which has a complete tutorial on how to set up a Raspberry Pi with theSCALP
app. On that note, the repository contains a series ofshell script
programs that automatically feed theScenario
files into theSCALP App
-
Download Eclipse IDE for Java Developers
-
Import the project using Eclipse
- Install JDK 8 in order to run the project code properly
- Click here to install
- After installing go to
Eclipse -> Preferences -> Java -> Installer JREs
- Click
Add
and selectStandard VM
- Finally click
Finish
- Make JRE 8 as your default option
- Import all necessary libraries to the project
- Right click on the project folder, and select
Import
- Select
Projects from Folder or Achieve
- Import the
lib
folder
- In order to run the Authoring App, open
src/common
and execute theEntryPoint.java
file
- In order to run the SCALP App, open
src/enamel
and execute theSCALP.java
file
- To build the Authoring App jar right click on the project folder and select the
Export
folder
- Select the
Runnable JAR
option
- Select the
EntryPoint - AuthoringApp
option from the drop down, mark thePackage required libraries into generate JAR
option and clickFinish
- To build the Authoring App jar right click on the project folder and select the
Export
folder
- Select the
Runnable JAR
option
- Select the
SCALP - AuthoringApp
option from the drop down, mark theCopy required libraries into a sub-folder next to the generated JAR
option and clickFinish
- To run the JAR file do the following:
- Move the generated
Enamel.jar
file to theEnamel
folder inside the project - Open the terminal, navigate to the Enamel folder and run
- In order to debug the
SCALP
app using a Raspberry Pi follow the steps:
- Navigate the
/home/pi
:cd /home/pi
- Clone the repository:
git clone https://github.com/PiETLab/TreasureBoxBrailleApps
- Close the terminal and open the BlueJ Java IDE
- Click on
Project
->Open Project
and select thesrc
file.
- Check if all the dependencies were imported correctly
- Navigate to the top menu and click on
Tools
->Preferences
- Go to the
Libraries
tab, and you should see all libraries with statusLoaded
- Double click the
Enamel
package in the center of the window.
- Finally, right click both
SCALP
andToyAuthoring
classes one at a time and selectCompile
- After compiling both classes, right click again on
ToyAuthoring
and selectvoid main(String[] args)
- This command will run the
ToyAuthoring
main class with an example scenario.
-
For further API documentation about every single package and class, visit the
doc
folder and open theindex.html
file. -
To generate a more recent API documentation click on
Project -> Generate Javadoc
- Click here for complete instructions