forked from Mirrors/freeswitch
fix for MODLANG-37
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5553 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5991ca60e5
commit
4da5a5f601
@ -1527,15 +1527,15 @@ static JSBool session_speak(JSContext * cx, JSObject * obj, uintN argc, jsval *
|
|||||||
|
|
||||||
CHANNEL_SANITY_CHECK();
|
CHANNEL_SANITY_CHECK();
|
||||||
|
|
||||||
if (argc > 0) {
|
if (argc < 3) {
|
||||||
tts_name = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||||
}
|
return JS_FALSE;
|
||||||
if (argc > 1) {
|
}
|
||||||
voice_name = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
|
||||||
}
|
tts_name = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||||
if (argc > 2) {
|
voice_name = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
||||||
text = JS_GetStringBytes(JS_ValueToString(cx, argv[2]));
|
text = JS_GetStringBytes(JS_ValueToString(cx, argv[2]));
|
||||||
}
|
|
||||||
if (argc > 3) {
|
if (argc > 3) {
|
||||||
if ((function = JS_ValueToFunction(cx, argv[3]))) {
|
if ((function = JS_ValueToFunction(cx, argv[3]))) {
|
||||||
memset(&cb_state, 0, sizeof(cb_state));
|
memset(&cb_state, 0, sizeof(cb_state));
|
||||||
|
Loading…
Reference in New Issue
Block a user