This simple Python and Ruby scripts will take the question, ask the WolframAlpha and synthesize the audio using Amazon Polly
- Install the libraries
$ pip install boto3 wolframalpha
$ gem install aws-sdk wolfram-alpha
- Install sox
$ brew install sox
for macOS, and please visit this link for other OS
$ python wolframsynth.py "What's the tallest building in the world?"
$ ruby wolframsynth.rb "What's the tallest building in the world?"