ioBroker.sayit
ioBroker.sayit copied to clipboard
AWS Neural Engine Support
Hello,
can you add the NEURAL ENGINE support for the AWS Service? the neural engine created files sounds much better then the standard files.
Thanx
Yes, this would also very interested for me
As a quick fix you can do the following:
- Select a voice that is available as neural and as standard voice, see here, e.g. "Vicki" for German or Ivy for English.
- Use ssh to log into your iobroker host
-
cd /opt/iobroker/node_modules/iobroker.sayit/lib/
-
editor text2speech.js
- Search for "aws". A few lines below, there is a definition of a param-object:
const params = {
Text: text,
OutputFormat: 'mp3',
TextType: type,
VoiceId: sayitEngines[language].ename
};
- Add the neural engine like following:
const params = {
Text: text,
Engine: 'neural',
OutputFormat: 'mp3',
TextType: type,
VoiceId: sayitEngines[language].ename
};
- Save the file
-
cd /opt/iobroker
-
npm rebuild iobroker.sayit
-
cd /opt/iobroker/cache
-
rm *.mp3
-
iobroker restart
Now the neural voice should be active.
Thank you very much! It works perfect