mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 13:00:40 +00:00
Finalization of speech detect interface and API
This changes the core to have the necessary tools to create a speech detection interface. It also changes the code in javascript (mod_spidermonkey) there are a few api changes in how it handles callbacks It also adds grammars as a system dir to store asr grammars git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3291 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b942d8e044
commit
44fc26f7d4
20 files changed
+1996
-540
No files matched your search
@@ -666,7 +666,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
|
||||
switch_memory_pool_t *pool;
|
||||
|
||||
if (conference->fnode->type == NODE_TYPE_SPEECH) {
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_TTS;
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_NONE;
|
||||
switch_core_speech_close(&conference->fnode->sh, &flags);
|
||||
} else {
|
||||
switch_core_file_close(&conference->fnode->fh);
|
||||
@@ -957,7 +957,7 @@ static void conference_loop(conference_member_t *member)
|
||||
switch_memory_pool_t *pool;
|
||||
|
||||
if (member->fnode->type == NODE_TYPE_SPEECH) {
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_TTS;
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_NONE;
|
||||
switch_core_speech_close(&member->fnode->sh, &flags);
|
||||
} else {
|
||||
switch_core_file_close(&member->fnode->fh);
|
||||
@@ -1340,7 +1340,7 @@ static switch_status_t conference_member_say(conference_obj_t *conference, confe
|
||||
{
|
||||
confernce_file_node_t *fnode, *nptr;
|
||||
switch_memory_pool_t *pool;
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_TTS;
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_NONE;
|
||||
|
||||
if (!(conference->tts_engine && conference->tts_voice)) {
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
@@ -1399,7 +1399,7 @@ static switch_status_t conference_say(conference_obj_t *conference, char *text,
|
||||
{
|
||||
confernce_file_node_t *fnode, *nptr;
|
||||
switch_memory_pool_t *pool;
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_TTS;
|
||||
switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_NONE;
|
||||
uint32_t count;
|
||||
|
||||
switch_mutex_lock(conference->mutex);
|
||||
|
||||
Reference in new issue
Block a user