- TTS adapter for Amazon AWS Polly Text-to-Speech
- romanized search for Pali terms (e.g., Mulapariyayasutta vs. Mūlapariyāyasutta)
- integration with SuttaCentral bilara-data
- Linux Debian 10 or Ubuntu 20.04
- Nodejs 14.x
- AWS Polly account (required)
With a Linux console, install the software:
git clone https://github.com/sc-voice/sc-voice.git cd sc-voice
Initialization requires super user access for your computer and you will be asked to enter your computer superuser password.
Now update the content but do not reboot (i.e., Respond with no when asked to reboot)
As part of installation you will need to configure the AWS Polly TTS service adapter.
Configure Amazon AWS Polly
Login to your AWS account and go to the IAM dashboard|Delete your root access keys|Manage Security Credentials|Access Keys...|Create New Access Key
Launch localhost server
Open up localhost in your local browser and you will see Voice. When you are done with voice, type CTRL-C in the terminal.
npm run test
Unit tests take about 2 minutes. The unit tests require AWS Polly.
To execute a single unit/test, simply insert the text
it("...") title argument. Then run
npm run test:test,
which selectively tests such unit tests whenever a source file changes.
This makes quick work of debugging or implementing a feature.
- Some tests validate online APIs and may fail due to timeouts
EAI_AGAINresponses. Re-run tests and they should pass.
- Some tests validate online content which may change. For example, the number of search results may change slightly. Update the unit tests accordingly and re-run tests.
|Command line script||Description|
||Run service unit tests (about 2 minutes).|
||Compile and reload SC-Voice Vue for development at http://localhost:8080|
||Create production Vue build in
||Run esLint to check *.js and *.vue files `|
- scripts contains miscellaneous scripts
- local contains local content not archived in git
- public Vue/Vuetify public HTML assets
- words contains language lexicons for search and speech.