Skip to content
Robert Hillman edited this page Feb 18, 2018 · 19 revisions

Configuration

1.) Create a file named pollytts.cfg in the services directory and enter the Amazon Polly User Credentials established earlier. You can also enter the configuration values using the paper ui. Select configuration -> services -> voice tab and select "PollyTTS"

# Configuration values:

accessKey - required credential provided by Amazon

secretKey - required credential provided by Amazon

serviceRegion - Required value select region closest for best response. ServiceRegion is one of the following:
["us-east-2" in US East (Ohio)]
["us-east-1" in US East (N. Virginia)]
["us-west-2" in US West (Oregon)]
["eu-west-1" in EU (Ireland)]

cacheExpiration - Cache expiration life in days (Optional value). As Cache files are used their timestamps are updated, files that are never used will be purged if their timestamp exceeds the specified age. If not specified, default value of 0 set to disable functionality. Example, 365 not used in a year.

audioFormat - User specified audio format. Use "default" to select the default audio format. The user can override the openhab default audio format if they prefer a specific output for their audio device. Choices of "default", "mp3" or "ogg" are the only audio entries that are supported.

NOTE: audioFormat=default (modified from "disabled" to "default" for 2.2)
Make sure you change value when updating from 2.1 to 2.2 snapshot.

# configuration data example

################## pollytts.cfg

accessKey=BKIA-example-35PUIQLZ
secretKey=1zv5TS96-example-eVPdeKrNkui7GwkYD8x
serviceRegion=us-east-1
cacheExpiration=40
audioFormat=default (modified to default for 2.2)
######################## end of file ########################

# Final configuration step

2.) Use the Openhab Paper UI to finish the configuration.

Select Configuration --> system and scroll down to Voice.

Under Default text-to-speech --> select PollyTTS Text-to-Speech Engine Under Default voice --> select your prefered voice