From 3f4b0b912e93e40486588b746d8c3b8914e8fa89 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 16 Sep 2023 14:11:23 +0200 Subject: [PATCH] [mirotalksfu] - add speech messages for ChatGPT --- public/js/RoomClient.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index af81b96d..023dd702 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2888,6 +2888,9 @@ class RoomClient { this.peer_name, ); this.cleanMessage(); + if (this.speechInMessages) { + this.speechMessage(true, 'ChatGPT', completion); + } this.sound('message'); }.bind(this), )