googletts.agi script
While setting up an Asterisk server I needed a text to speech API. This was to be utilized for a testing environment. The production server was expected to use prerecorded messages but have not been recorded yet.
I come across a script called googletts script that utilizes the Asterisk AGI plugin system. The website is currently listed here: https://zaf.github.io/asterisk-googletts/Do note that this method is not officially supported and may not work in the future. The install is fairly straight forward. Ensure you have all the dependencies installed and copy the googletts.agi to your AGI directory.
Below is an example dial plan for how I am using the googletts.agi script in my test environment.
exten => 5305370260,1,Wait(3)
exten => 5305370260,n,answer()
exten => 5305370260,n,Monitor(wav,,b)
exten => 5305370260,n,agi(googletts.agi,"Thank you for calling Harrison Technology.",en)
exten => 5305370260,n,agi(googletts.agi,"Your Provider to custom solutions.",en)
exten => 5305370260,n,goto(internal,6001,1)
;exten => _5305370260,5,Queue(support)