static int _s_set_FilePathToFileId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.FilePathToFileId = (System.Collections.Generic.Dictionary <string, string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, string>)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_FilePathToFileId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.FilePathToFileId); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_mIsGCloudVoiceAuthKey(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.mIsGCloudVoiceAuthKey = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_IsCanSendByGameLogic(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsCanSendByGameLogic); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.VoiceManager __cl_gen_ret = new xc.VoiceManager(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.VoiceManager constructor!")); }
static int _m_Init(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Init( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetQueueHeadFileId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); try { { string __cl_gen_ret = __cl_gen_to_be_invoked.GetQueueHeadFileId( ); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_isGCloudVoiceReady(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); try { { bool __cl_gen_ret = __cl_gen_to_be_invoked.isGCloudVoiceReady( ); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SpeechToText(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); try { { string fileid = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.SpeechToText(fileid); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRecFileSize(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.VoiceManager __cl_gen_to_be_invoked = (xc.VoiceManager)translator.FastGetCSObj(L, 1); try { { string path = LuaAPI.lua_tostring(L, 2); uint __cl_gen_ret = __cl_gen_to_be_invoked.GetRecFileSize(path); LuaAPI.xlua_pushuint(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }