I am using voicerss to send some messages over squeezebox (OH2 is running on VM ubuntu 16.04, latest updates, latest snapshots, java 1.8.0_151) using the say command (just picks a message randomly out of the a selection of 20 or so).
In general, this works well, when the mp3 files are available, but the ‘say’ command times out often (though not always) when no cached mp3 is available.
So I thought pre-populating the cache may take care of this, and there are instructions in the docs: https://docs.openhab.org/addons/voices/voicerss/readme.html
Usage: java org.openhab.voice.voicerss.tool.CreateTTSCache <args>
Arguments: --api-key <key> <cache-dir> <locale> { <text> | @inputfile }
key the VoiceRSS API Key, e.g. "123456789"
cache-dir is directory where the files will be stored, e.g. "voicerss-cache"
locale the language locale, has to be valid, e.g. "en-us", "de-de"
text the text to create audio file for, e.g. "Hello World"
inputfile a name of a file, where all lines will be translatet to text, e.g. "@message.txt"
Sample: java org.openhab.voice.voicerss.tool.CreateTTSCache --api-key 1234567890 cache en-US @messages.txt
When I typed the sample command above in a console, I got this error:
Error: Could not find or load main class org.openhab.voice.voicerss.tool.CreateTTSCache
OH2 runs well, so I figured that it is not path problem, but obviously I am missing something.
Any and all thoughts will be appreciated