sing.js
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
+(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);