Skip to content

Commit

Permalink
test 함수 변경처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastorder-DC authored Dec 7, 2022
1 parent 9604a23 commit 97c7748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tts.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ function addKeyword(keyword, callback) {
/**
* TTS 체크하여 사용 가능 여부 설정
*/
function checkTTS() {
function checkTTS(testString) {
if ('speechSynthesis' in window) {
window.utterances = [];

const msg = new SpeechSynthesisUtterance(window.channelname + " 채널에 연결되었습니다.");
const msg = new SpeechSynthesisUtterance(testString);
msg.rate = 1.3;
speechSynthesis.cancel();

Expand Down

0 comments on commit 97c7748

Please sign in to comment.