Fix TTS play during recording / transcription
This commit is contained in:
@@ -1241,6 +1241,7 @@ class Odidere {
|
|||||||
*/
|
*/
|
||||||
#enqueueTTS(text, voice, messageId) {
|
#enqueueTTS(text, voice, messageId) {
|
||||||
if (!text || !this.ttsURL) return;
|
if (!text || !this.ttsURL) return;
|
||||||
|
if (this.isRecording || this.isTranscribing) return;
|
||||||
this.playQueue.push({ text, voice, messageId });
|
this.playQueue.push({ text, voice, messageId });
|
||||||
if (!this.isPlaying) {
|
if (!this.isPlaying) {
|
||||||
this.#processQueue();
|
this.#processQueue();
|
||||||
|
|||||||
Reference in New Issue
Block a user