+
Skip to content

tomivm/ccboard

Repository files navigation

Cboard Cordova - AAC communication board with text-to-speech for mobile devices

cboard-org

This is a Cordova application that wraps the original Cboard React application to bring native mobile and desktop support. The Cboard react app is maintained to support Cordova detection, setup and bindings.

Text-to-speach (TTS) support is provided via phonegap-plugin-speech-synthesis. This plugin bridges the native operating system TTS functionality to browser app, in a way that mimics W3C Web Speech API: SpeechSynthesis. It uses the android.speech.tts.TextToSpeech interface on Android.

Platforms supported:

  1. Android
  2. Electron - Windows

Before setup

You will need to modify the next files:

  • In /cboard/package.json change "homepage": "https://app.cboard.io" to "homepage": "."
  • In /cboard/public/index.html add <script src="cordova.js"></script> below <head> tag

One-time setup

  1. git submodule update - Get Cboard app
  2. npm i
  3. mkdir -p www - Make root cordova app folder
  4. cordova platform add android or cordova platform add electron@2.0.0 - Add Cordova platforms. www folder must be present.
  5. cd cboard
  6. npm i

Building Cboard (React project)

You need to build the react.js app, and after that copy un cordova project:

  1. cd cboard
  2. Release npm run build / Debug npm run build-cordova-debug
  3. cp -r ./build/* ../www
  4. cd ..

Building and running Ccboard (Cordova project)

Android:

  • cordova run android --emulator

Electron:

  • cordova build electron --release For release
  • cordova build electron --debug For enable the dev tools

Android Platform

Generate Release APK

  1. Build cordova build android --release

  2. Copy cp platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk ccboard.apk

  3. Sign

    1. Generate self-signed keys keytool -genkey -v -keystore ccboard.keystore -alias ccboard -keyalg RSA -keysize 2048 -validity 100000
    2. Sign jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ccboard.keystore ccboard.apk ccboard

Debugging output

For emulator console.log output, you can either run in the debugging under eg. Android Studio, or in Chrome, navigate to chrome://inspect, and select the remote target that shows up once the emulator starts.

Electron Platform

You can find the documentation here

In the root folder, you will find the file settings.json where are the configurations of the BrowserWindow. This contains all the graphics options to modify the electron window.

About

Cordova wrapper for the Cboard application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载