mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
only send tokens to module if connected
This commit is contained in:
@@ -193,10 +193,7 @@ class TtsStreamingBuffer extends Emitter {
|
|||||||
this.logger.debug('TtsStreamingBuffer:_feedQueue TTS stream is not open or no endpoint available');
|
this.logger.debug('TtsStreamingBuffer:_feedQueue TTS stream is not open or no endpoint available');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (
|
if (this._connectionStatus !== TtsStreamingConnectionStatus.Connected) {
|
||||||
this._connectionStatus === TtsStreamingConnectionStatus.NotConnected ||
|
|
||||||
this._connectionStatus === TtsStreamingConnectionStatus.Failed
|
|
||||||
) {
|
|
||||||
this.logger.debug('TtsStreamingBuffer:_feedQueue TTS stream is not connected');
|
this.logger.debug('TtsStreamingBuffer:_feedQueue TTS stream is not connected');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user