TheDesk Akane (16.0.1)

This commit is contained in:
cutls
2018-08-05 01:26:34 +09:00
parent b3ff01188c
commit a2a937e220
87 changed files with 25983 additions and 39 deletions

View File

@@ -6,6 +6,9 @@ $voise = null;
$synthes.voice = $voise; // 音声の設定
localStorage.removeItem("voicebank");
speechSynthesis.cancel()
if(!localStorage.getItem("voice_vol")){
localStorage.setItem("voice_vol",1)
}
$synthes.rate=localStorage.getItem("voice_speed");
$synthes.pitch=localStorage.getItem("voice_pitch");
$synthes.volume=localStorage.getItem("voice_vol");
@@ -30,6 +33,7 @@ $repeat = setInterval(function() {
var obj = JSON.parse(voice);
if(obj[0]){
$synthes.text = obj[0];
console.log($synthes);
speechSynthesis.speak($synthes);
obj.splice(0, 1);
var json = JSON.stringify(obj);

View File

@@ -224,7 +224,7 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice) {
if (JSON.parse(mess.data).type == "note") {
var obj = JSON.parse(mess.data).body;
if(voice){
say(obj.content)
say(obj.text)
}
var templete = misskeyParse([obj], type, acct_id, tlid,"",mute);
var pool = localStorage.getItem("pool_" + tlid);