コード例 #1
0
    private void Awake()
    {
        this._interface = new JoyYouSDK();
        string localConfigPath = this.GetLocalConfigPath();
        string path            = string.Format("{0}/config.cfg", Application.persistentDataPath);

        if (File.Exists(path))
        {
            this.LoadConfig(path);
        }
        else
        {
            this.LoadConfig(localConfigPath);
        }
        XPlatform._isTestMode = File.Exists(Path.Combine(Application.persistentDataPath, "TEST_VERSION"));
    }
コード例 #2
0
    private void Awake()
    {
        this._interface = new JoyYouSDK();
        BuglyAgent.ConfigDebugMode(false);
        switch (Application.platform)
        {
        case RuntimePlatform.IPhonePlayer:
            BuglyAgent.InitWithAppId("i1105309683");
            break;

        case RuntimePlatform.Android:
            BuglyAgent.InitWithAppId("1105309683");
            break;
        }
        BuglyAgent.EnableExceptionHandler();
    }
コード例 #3
0
    private void Start()
    {
        this.InitIFly(this.android_appid);
        this.SetCallback(new Action <string>(this.TextRecCallback));
        this._interface = new JoyYouSDK();
        this.SetParameter("engine_type", "cloud");
        this.SetParameter("audio_format", "pcm");
        this.SetParameter("vad_bos", "8000");
        this.SetParameter("vad_eos", "5000");
        string audioCachePath = this.GetAudioCachePath();

        if (!string.IsNullOrEmpty(audioCachePath))
        {
            this.filepath = audioCachePath + "/record.pcm";
            Debug.Log("PCM filepath: " + this.filepath);
            this.SetParameter("asr_audio_path", this.filepath);
            this.inited = true;
        }
    }
コード例 #4
0
 private void Awake()
 {
     this._interface    = new JoyYouSDK();
     UniWeb.m_uiUtility = XSingleton <XInterfaceMgr> .singleton.GetInterface <IUiUtility>(XSingleton <XCommon> .singleton.XHash("IUiUtility"));
 }