コード例 #1
0
 private void SpeakComboSend(BiliLiveJsonParser.ComboSend item)
 {
     if (speechProcessor.IsAvalable)
     {
         string ssmlDoc = SsmlHelper.Gift(item.Sender.Name, item.Number, item.GiftName, item.Action);
         speechProcessor.Speak(ssmlDoc);
     }
 }
コード例 #2
0
 private void SpeakSuperChat(BiliLiveJsonParser.SuperChat item)
 {
     if (speechProcessor.IsAvalable)
     {
         string ssmlDoc = SsmlHelper.SuperChat(item.User.Name, item.Message);
         speechProcessor.Speak(ssmlDoc);
     }
 }
コード例 #3
0
 private void SpeakDanmaku(BiliLiveJsonParser.Danmaku item)
 {
     if (speechProcessor.IsAvalable)
     {
         string ssmlDoc = SsmlHelper.Danmaku(item.Sender.Name, item.Message);
         speechProcessor.Speak(ssmlDoc);
     }
 }
コード例 #4
0
        private void SpeakGift(GiftCacheManager.GiftCache gift)
        {
            if (gift.CoinType == "gold" && !OptionDict[DanmakuSpeechConfig.SpeechFilterOptions.GoldenGiftSpeech])
            {
                return;
            }
            if (gift.CoinType == "silver" && !OptionDict[DanmakuSpeechConfig.SpeechFilterOptions.SilverGiftSpeech])
            {
                return;
            }

            if (speechProcessor.IsAvalable)
            {
                string ssmlDoc = SsmlHelper.Gift(gift.Username, gift.Number, gift.GiftName, gift.Action);
                speechProcessor.Speak(ssmlDoc);
            }
        }