lionsoul2014/freeswitch-asr is a C project with 72 stars. TTS and ASR module with auto Voice Active Detecting supported for Freeswitch. I build it for Nature sound interactive, With the embedded LUA engine we could easly build a Freeswtich application like this.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
TTS and ASR module with auto Voice Active Detecting supported for Freeswitch.
I build it for Nature sound interactive, With the embedded LUA engine we could easly build a Freeswtich application like this.
How to use it ?
Copy and merge the ${PROJECT_ROOT}/src and the ${PROJECT_ROOT}/conf with the Freeswitch source tree.
Add the following two module in the ${FREESWITCH_SOURCE_ROOT}/modules.conf
asr_tts/mod_yytts
asr_tts/mod_yyasr
Re-compile and install the freeswitch to install mod_yytts and mod_yyasr modules.
Active the mod_yytts and the mod_yyasr by add the following to lines into the ${FREESWITCH_INSTALLATION_ROOT}/conf/autoload_configs/modules.conf.xml
Start the Freeswitch and install a Linphone client.
Dial 5001 for TTS testing, check ./scripts/yytts_demo.lua for detail usage, module interface overview:
session:answer(); -- answer the call
-- set to use the yytts TTS with zhilingf speaker
session:set_tts_params("yytts", "zhilingf");
-- fire the speak
session:speak("Hello,我是人工智能电话系统, Bye!");
-- hangup the call
session:hangup();
Dial 5002 for ASR testing, check ./scripts/yyasr_demo for detail usage, ASR interface overview:
session:answer(); -- answer the call
-- register the sound input callback
session:setInputCallback(function onInput(s, type, obj) end);
-- start to detect the speech to keep firing the feed interface insite yyasr module
session:execute("detect_speech", "yyasr directory directory");
-- resume the detect_speech
session:execute("detect_speech", "resume");
-- stop the detecting
session:execute("detect_speech", "stop");
-- check ./script/yyasr_demo for details usage.
open
while ( thread running ) do
feed
check_results
get_results
end
optional pause|resume
close
Embedded the other ASR engine by override the yyasr_asr_feed
/*! function to feed audio to the ASR */
static switch_status_t yyasr_asr_feed(
switch_asr_handle_t *ah, void *data, unsigned int len, switch_asr_flag_t *flags)
{
// feed the text to the yyasr->text_buffer text buffer
return SWITCH_STATUS_SUCCESS;
}
/*
* Voice Active detecting implementation.
* Optimize the VAD by modify stop_audio_detect function.
*/
static switch_bool_t stop_audio_detect(
switch_asr_handle_t *ah, int16_t *data, unsigned int samples)
{
return SWITCH_FALSE;
}
How active is development on lionsoul2014/freeswitch-asr?
The most recent commit recorded on lionsoul2014/freeswitch-asr was 7.1 years ago, based on the GitHub push timestamp. The repository has 36 forks — one of the better signals of community interest.
How many stars does lionsoul2014/freeswitch-asr have?
lionsoul2014/freeswitch-asr has 72 GitHub stars — refresh the page for the live number, or check github.com/lionsoul2014/freeswitch-asr. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is lionsoul2014/freeswitch-asr?
lionsoul2014/freeswitch-asr (lionsoul2014/freeswitch-asr) is a C project on GitHub. From the project's own README: TTS and ASR module with auto Voice Active Detecting supported for Freeswitch. I build it for Nature sound interactive, With the embedded LUA engine we could easly build a Freeswtich application like this.
What language is lionsoul2014/freeswitch-asr written in?
lionsoul2014/freeswitch-asr is written primarily in C. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is lionsoul2014/freeswitch-asr associated with?
GitHub's repository topics for lionsoul2014/freeswitch-asr: "call-center", "freeswitch", "freeswitch-asr", "freeswitch-tts", "ivr-application", "lua-script". TopGit's editorial category is open-source.
Read full README in the tab above.
Curious whether freeswitch-asr is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about freeswitch-asr.