akscf / mod_openai_asr

Provides an OpenAI Speech-To-Text features for the Freeswitch.
7 stars 1 forks source link
freeswitch openai text-to-speech

Provides the ability to use OpenAI Speech-To-Text service in the Freeswitch.
Also capable to work with whisperd

Usage example

<extension name="openai-asr">
  <condition field="destination_number" expression="^(3222)$">
    <action application="answer"/>
    <action application="play_and_detect_speech" data="/tmp/test2.wav detect:openai"/>
    <action application="sleep" data="1000"/>
    <action application="log" data="CRIT SPEECH_RESULT=${detect_speech_result}"/>
    <action application="hangup"/>
 </condition>
</extension>