sing.js 1.16 KB
+(function($, window, document, undefined) {
    "use strict";
    window.sing = {
        init: {
            userId: "anniywell",
            factroyTimeout: 6000 coreTimeout: 10000 retryTimeout: 10000
                //tcp check server timeout, default 6s // core requester settings, default 6s
                // core requester settings, default 8s
            urlListServiceUrl: ['http://list.cloud.ssapi.cn:8080/list.json'],
            defaultAPIServiceUrlArray: ["ws://api.cloud.ssapi.cn:8080"],
            appKey: "your appKey",
            secretKey: "your secretKey"
        },
        param: {
            playDing: false,
            recordLength: 5000,
            serverParam: {
                coreType: "en.sent.score",
                rank: 100,
                refText: "",
                attachAudioUrl: 1,
                precision: 0.5,
                userId: "anniywell",
                robust: 0
            }
        },
        stopRecord: function () {
            console.log();
        },
        startReplay: function (param) {

        },
        stopReplay: function () {

        }
    };
})(jQuery, window, document);