diff --git a/app/src/Server.js b/app/src/Server.js index 21a52cac..065b60b3 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -42,7 +42,7 @@ dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.4.41 + * @version 1.4.42 * */ diff --git a/package.json b/package.json index 62e05dc4..a7126095 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.4.41", + "version": "1.4.42", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -67,7 +67,7 @@ }, "devDependencies": { "node-fetch": "^3.3.2", - "nodemon": "^3.1.1", + "nodemon": "^3.1.2", "prettier": "3.2.5" } } diff --git a/public/css/Room.css b/public/css/Room.css index 8cf67229..5a7ccdfc 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -1333,6 +1333,11 @@ hr { align-items: center; /* Center vertically */ } +.container-flex { + display: flex; + flex-direction: column; +} + /* Custom avatar audio UI */ #audio-container { diff --git a/public/js/Room.js b/public/js/Room.js index bc14ff6b..43db980a 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.4.41 + * @version 1.4.42 * */ @@ -1460,6 +1460,9 @@ function handleButtons() { showFreeAvatars = e.currentTarget.checked; rc.getAvatarList(); }; + avatarQuality.onchange = (e) => { + VideoAI.quality = e.target.value; + }; refreshVideoDevices.onclick = async () => { await refreshMyVideoDevices(); userLog('info', 'Refreshed video devices', 'top-end'); diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 0df9934f..dc8377c4 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -9,7 +9,7 @@ * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.4.41 + * @version 1.4.42 * */ @@ -3852,11 +3852,13 @@ class RoomClient { ? `${time}, ${getFromName} ( me ) ` : `${time}, ${getFromName} `; + const formatMessage = this.formatMsg(getMsg); + console.log('FormatMessage', formatMessage); const speechButton = this.isSpeechSynthesisSupported ? `` : ''; @@ -4097,10 +4099,14 @@ class RoomClient { } speechText(msg) { - const speech = new SpeechSynthesisUtterance(); - speech.text = msg; - speech.rate = 0.9; - window.speechSynthesis.speak(speech); + if (VideoAI.active) { + this.streamingTask(msg); + } else { + const speech = new SpeechSynthesisUtterance(); + speech.text = msg; + speech.rate = 0.9; + window.speechSynthesis.speak(speech); + } } chatToggleBg() { diff --git a/public/views/Room.html b/public/views/Room.html index 4f2dc44f..5604380e 100644 --- a/public/views/Room.html +++ b/public/views/Room.html @@ -884,6 +884,7 @@

Loading

+
@@ -904,19 +905,29 @@

Loading

-
-
- + + + + +

+ >
+
+
-
-