ioBroker.sayit icon indicating copy to clipboard operation
ioBroker.sayit copied to clipboard

AWS Neural Engine Support

Open GrayDeathNBG opened this issue 2 years ago • 3 comments

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

GrayDeathNBG avatar Mar 07 '22 00:03 GrayDeathNBG

Yes, this would also very interested for me

Assemblerguru avatar Apr 19 '22 14:04 Assemblerguru

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.

neopholus avatar Jan 05 '23 16:01 neopholus

Thank you very much! It works perfect

Assemblerguru avatar Jan 08 '23 13:01 Assemblerguru