Open Anarchy-avk opened 4 years ago
Have you set service_key
in the [general]
section of a res_speech_gdfe.conf
file in your asterisk configuration directory? The module will attempt to use the Google "default credentials" if that value is not set (or if it cannot load that file -- in which case it would log an error).
[general]
service_key = /etc/asterisk/svc_key.json
Yes. I have key svc_key.json
with credentials and res_speech_gdfe.conf
in asterisk folder
[general]
service_key=/etc/asterisk/svc_key.json
all files has owner asterisk:asterisk, read/write access for user and read access for others
Tell me what else I can check. So as the problem I have not solved.
Does the speech driver or dfe library log anything on startup? If it's looking to use the default credentials it either couldn't find or couldn't load your key.
Hi all,
Someone has solved this problem opened by Anarchy-avk , because i have the same problem here. Thanks.
@XadNightfall on startup the module should log if it has trouble loading the key specified in the configuration. Only if it cannot load the specified credentials (or they are not provided) will it attempt to use the Google default credentials. Does the module log any messages on startup? You would also see the messages when you issue gdfe reload
on a modified configuration file. Some of the messages are debug level, so make sure you have those configured in your logger.conf.
@DanDanN00dle , thanks for your reply, this is a piece of the FuLL log of Asterisk:
[Nov 5 20:15:26] VERBOSE[28889] loader.c: Loading app_speech_utils.so. [Nov 5 20:15:26] VERBOSE[28889] loader.c: res_speech_gdfe.so => (Google DialogFlow for Enterprise (DFE) Speech Engine) [Nov 5 20:15:26] VERBOSE[28889] res_speech.c: Made 'GoogleDFE' the default speech recognition engine [Nov 5 20:15:26] VERBOSE[28889] res_speech.c: Registered speech recognition engine 'GoogleDFE' [Nov 5 20:15:26] DEBUG[28889] res_speech_gdfe.c: Loading service key data from /etc/asterisk/svc_key.json [Nov 5 20:15:26] VERBOSE[28889] loader.c: Loading res_speech_gdfe.so.
it seems to load correctly the .json key but it doesn't, obviously the json file is correct.
ls /etc/asterisk/svc_key.json -la -rwxr-xr-x. 1 asterisk asterisk 2304 Oct 26 17:29 /etc/asterisk/svc_key.json
Thanks.
I have the same issue. I found that there is no any traffic to google API
tcpdump -iany host dialogflow.googleapis.com -nn
0 packets captured
Hi. I installed clear Centos 7. After installed speech driver with all dependencies. The only thing I replaced is pjsip to sip channel driver. In asterisk config folder I put svc_key.json with google credentials (Service account with DialogFlow API role). Set environment GOOGLE_APPLICATION_CREDENTIALS When i make call, I get warnings (project in logs replaced)
What I did wrong, help to understand. Test client in folder libdfegrpc works with this key.
but the queries come up empty