From feac1a1a3a54653f9f808bde0f72ff1b20f1fe27 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 13 Jan 2025 18:03:00 +0100 Subject: [PATCH] [mirotalksfu] - add Vietnamese to transcription --- app/src/Server.js | 2 +- package.json | 2 +- public/js/Room.js | 4 ++-- public/js/RoomClient.js | 7 ++----- public/js/Transcription.js | 1 + 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index e6dc4894..06b3e947 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -55,7 +55,7 @@ dev 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.6.99 + * @version 1.7.00 * */ diff --git a/package.json b/package.json index 788b38e8..7d9e0d20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.6.99", + "version": "1.7.00", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { diff --git a/public/js/Room.js b/public/js/Room.js index e818e06d..933ac61f 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.6.99 + * @version 1.7.00 * */ @@ -4904,7 +4904,7 @@ function showAbout() { imageUrl: image.about, customClass: { image: 'img-about' }, position: 'center', - title: 'WebRTC SFU v1.6.99', + title: 'WebRTC SFU v1.7.00', html: `
diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index bd1dc045..eac29b51 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.6.99 + * @version 1.7.00 * */ @@ -3405,10 +3405,7 @@ class RoomClient { thereAreParticipants() { // console.log('participantsCount ---->', participantsCount); - if (this.consumers.size > 0 || participantsCount > 1) { - return true; - } - return false; + return this.consumers.size > 0 || participantsCount > 1; } // #################################################### diff --git a/public/js/Transcription.js b/public/js/Transcription.js index 4df3ba7b..d9d8598b 100644 --- a/public/js/Transcription.js +++ b/public/js/Transcription.js @@ -75,6 +75,7 @@ class Transcription { ], ['日本語', ['ja-JP']], ['Lingua latīna', ['la']], + ['Tiếng Việt', ['vi-VN']], ]; this.speechTranscription = window.SpeechRecognition || window.webkitSpeechRecognition; this.isTranscriptionSupported = false;