README.md
March 15, 2026 ยท View on GitHub
Google Speech-To-Text service for the Freeswitch.
Features: vad, cmd api, flexible settings.
A small installation guide can be found here: Fail to compile module
Usage example
<extension name="asr-test">
<condition field="destination_number" expression="^(3222)$">
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="play_and_detect_speech" data="/tmp/test2.wav detect:google {lang=en}"/>
<action application="sleep" data="1000"/>
<action application="log" data="CRIT SPEECH_RESULT=${detect_speech_result}"/>
<action application="sleep" data="1000"/>
<action application="hangup"/>
</condition>
</extension>
mod_quickjs
session.ttsEngine= 'google'; // requires: mod_google_tts
session.asrEngine= 'google';
var txt = session.sayAndDetectSpeech('Hello, how can I help you?', 10);
consoleLog('info', "TEXT: " + txt);
Command line
freeswitch> google_asr_transcript /tmp/test.wav
+OK: How old is the Brooklyn Bridge