E.g. to install Cepstral (Swift) - Cepstral - Download IVR/Telephony system TTS software
OK, the installation works, but pretty useless because it requires purchasing a license to work. Unless I am missing something.
found a script written for Polly… check it out https://www.thewebmachine.net/wiki/freepbx-general/installing-aws-polly-tts-better-picotts-alternative
OK, this is a bit more adventurous. Learned AWS along the way too. Installation seems to do its job. Added /usr/bin/node
under polly in TTS Engines. But it is not working.
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: TTS AGI Started
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: Generated WAV file: /var/lib/asterisk/sounds/tts/polly-tts-01c0aeeca516d2d39504c105ba891317.sln
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: TXT file: /var/lib/asterisk/sounds/tts/polly-tts-01c0aeeca516d2d39504c105ba891317.txt
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: Text to speech wave file doesnt exist, lets create it.
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: Executing polly
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: File was not created!
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: agi://127.0.0.1/propolys-tts.agi,"Thank you for calling. Our local time is ",polly,/usr/bin/node: TTS AGI end
[2022-07-11 16:56:43] VERBOSE[23495][C-00000026] res_agi.c: <PJSIP/701-00000031>AGI Script agi://127.0.0.1/propolys-tts.agi completed, returning 0
/usr/bin/node /opt/aws-nodejs/polly.js --mp3=/var/lib/asterisk/sounds/tts/test-tts-test.mp3 --text='THIS IS A TEST' --wav=/var/lib/asterisk/sounds/tts/test-tts-temp-test
AccessDeniedException
Oh boy, this is no smooth sailing… I have checked polly.js with the correct KeyId, AccessKey, region ‘ca-central-1’ and VoiceId ‘Joanna’ Gosh, what am I getting into.