Update tts/
This commit is contained in:
		
							parent
							
								
									cf95fea6c3
								
							
						
					
					
						commit
						86844e330e
					
				| @ -214,8 +214,12 @@ app.addEventListener("channel-message", (data) => { | ||||
|             app.playSound("mention"); | ||||
|         } else if (!isMentionForSomeoneElse(data.message)) { | ||||
|             if(data.is_final){ | ||||
|                 app.playSound("message"); | ||||
|                 document.querySelector("snek-speaker").speak(data.message); | ||||
|                 const speaker = document.querySelector("snek-speaker"); | ||||
|                 if(speaker.enabled){ | ||||
|                     speaker.speak(data.message); | ||||
|                 }else{ | ||||
|                     app.playSound("message"); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user