Hi,
Has anyone successfully configured the UmsPolly (i.e. AWS Polly plugin) to work via proxy connection? Can you share what is needed to get this to work via a proxy please?
I'm trying this on a CentOS v7 based server (with the default IPtables based firewall turned off) but can't get it to work.
In the umspolly.xml configuration file, I've set the proxy-host and proxy port settings as per below (also increased the debugging level to trace, it's co-resident with the Lexv2 plugin):
<umspolly license-file="umspolly_*.lic" credentials-file="aws.credentials" credentials-provider="custom" init-sdk="true" shutdown-sdk="false" sdk-log-level="6">
<synth-settings
language="en-GB"
bypass-ssml="true"
voice-name="Emma"
voice-gender="female"
voice-engine="neural"
prosody-pitch=""
prosody-rate=""
prosody-duration=""
prosody-volume=""
thread-pool-size="1"
region="eu-west-2"
caching="false"
proxy-host="86.54.150.xxx"
proxy-port="8080"
/>
I then used curl from the command line to verify that my network connectivity via the proxy from that server is ok (which it is - I can get out to the
https://polly.eu-west-2.amazonaws.com url).
I then tested it on the Unimrcp via the umc app (running bss1 as a quick test).
However in the unimrcp log files I get the following:
2021-07-29 11:14:12:536337 [INFO] Set HTTP Proxy [86.xx.xx.xx:8080]
2021-07-29 11:14:12:536396 [NOTICE] Read AWS Credentials /opt/unimrcp/data/aws.credentials
2021-07-29 11:14:12:536486 [INFO] Create Polly Client: thread pool [1] region [eu-west-2]
2021-07-29 11:14:12:536636 [INFO] Describe Voices
2021-07-29 11:14:40:460995 [WARN] Failed to Describe Voices [curlCode: 35, SSL connect error]
So it looked like (from a Unimrcp perspective,) that it got the proxy details correctly and was attempting to use it but for some reason, the handshake failed (based on the curlcode 35).
To try to trouble shoot it further, I tried to get a tcpdump trace when running the umc app but that shows zero packets. Repeating the tcpdump trace with the curl however does capture packets.
Kind regards,
Daniel