drachtio/drachtio-freeswitch-modules

[mod_google_transcribe] Unable to execute

Closed this issue · 3 comments

Hi Dave,

We come across the drachtio-freeswitch-modules particularly for mod_google_transcribe. We have successfully compiled and loaded the module on our FreeSWITCH version 'FreeSWITCH Version 1.10.2-dev+git20190917T160350Z15ad4c23e2~64bit (git 15ad4c2 2019-09-17 16:03:50Z 64bit)'.

But what we are trying to attempt is to have a simple custom script, wherein we receive an incoming call and it basically executes a javascript file under the location {freeswitch_directory}/scripts/incoming_test.js.
In this script, we answer the call and start the transcription, followed by TTS speech using mod_google_tts and simple echo. But when we check the FreeSWITCH logs, we find no logs from mod_google_transcribe and it seems as if the API was not executing. Can you please help us and guide us?

PFA the Freeswitch logs as well as the javascript file which is triggered on an incoming call.

Thank you,
Anchit Dave

freeswitch.log
incoming_test.js.txt

is the module loaded? What happens if you do

reload mod_google_transcribe

yes. the module is loaded. Here are the logs

freeswitch@metrotest> reload mod_google_transcribe
+OK Reloading XML
+OK module unloaded
+OK module loaded

2020-08-06 12:52:46.670108 [INFO] switch_stun.c:900 External ip address detected using STUN: 122.170.77.114
2020-08-06 12:52:47.370033 [INFO] switch_stun.c:900 External ip address detected using STUN: 122.170.77.114
2020-08-06 12:52:47.420125 [INFO] switch_time.c:1433 Timezone reloaded 1750 definitions
2020-08-06 12:52:47.420125 [NOTICE] switch_loadable_module.c:1318 Deleting API Function 'uuid_google_transcribe'
2020-08-06 12:52:47.420125 [DEBUG] switch_loadable_module.c:1320 Write lock interface 'uuid_google_transcribe' to wait for existing references.
2020-08-06 12:52:47.420125 [CONSOLE] switch_loadable_module.c:2398 Stopping: mod_google_transcribe
2020-08-06 12:52:47.420125 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_google_transcribe.c:google_transcribe::transcription
2020-08-06 12:52:47.420125 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_google_transcribe.c:google_transcribe::end_of_utterance
2020-08-06 12:52:47.420125 [CONSOLE] switch_loadable_module.c:2418 mod_google_transcribe unloaded.
2020-08-06 12:52:47.420125 [NOTICE] mod_google_transcribe.c:200 Google Speech Transcription API loading..
2020-08-06 12:52:47.420125 [NOTICE] mod_google_transcribe.c:206 Google Speech Transcription API successfully loaded
2020-08-06 12:52:47.420125 [CONSOLE] switch_loadable_module.c:1804 Successfully Loaded [mod_google_transcribe]
2020-08-06 12:52:47.420125 [NOTICE] switch_loadable_module.c:412 Adding API Function 'uuid_google_transcribe'
freeswitch@metrotest>

session.execute executes a freeswitch dialplan application. uuid_google_transcribe is an api command.