Skip to content
Snippets Groups Projects
Commit 645161e0 authored by Stuart Mark James's avatar Stuart Mark James
Browse files

Update README.md, and add the scripts/TextToSpeech script for deployment

parent d2938f3b
No related branches found
No related tags found
No related merge requests found
...@@ -86,10 +86,20 @@ make convert-audio ...@@ -86,10 +86,20 @@ make convert-audio
## Installation ## Installation
Along with the binary, the TextToSpeech device server requires a small script to configure the AWS keys and some pre-converted audio files. The audio files are converted via the build system and placed under the `build` directory. See the Build instructions for more information. Along with the binary, the TextToSpeech device server requires a small script to configure the AWS keys and some pre-converted audio files. This script is located at `scripts/setup.sh` and must be run befre the device server is started.
Under `scripts` there is a script named setup.sh. This is to be sourced before running the device server (or unit tests). It will set the AWS keys to allow the devices server to use the AWS cloud SDK. The audio files are converted via the build system and placed under the `build` directory. See [Assets](#Assets). These must be in place for the device server to load jingles from.
### Deployment
A suggested deployment strategy is as follows:
1. Make a directory called TextToSpeechDir in the servers bin directory.
2. Copy the TextToSpeech binary into TextToSpeechDir.
3. Copy script scripts/setup.sh into TextToSpeechDir.
4. Copy the build/jingles (see [Assets](#Assets)) to TextToSpeechDir.
5. Copy the script scripts/TextToSpeech to TextToSpeechDirś parent directory.
6. Setup with Astor as normal, except use the script as the executable.
## Running Tests ## Running Tests
......
#!/bin/bash
# Wrapper script to run the TextToSpeech device server and ease integration and deployment.
# See README for details.
source /opt/dserver/bin/TextToSpeechDir/setup.sh
/opt/dserver/bin/TextToSpeechDir/TextToSpeech $@
#!/bin/bash #!/bin/bash
# Setup the runtime environment for the TextToSpeech device server
export AWS_ACCESS_KEY_ID=AKIAJYJ6YWMGMCJLYZZQ export AWS_ACCESS_KEY_ID=AKIAJYJ6YWMGMCJLYZZQ
export AWS_SECRET_ACCESS_KEY=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 export AWS_SECRET_ACCESS_KEY=lJZKBZ+baZqQcMTTZRSBEXARZETkFs+Pu8HMwoII
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment