From ab403b4b7c4bcbab7372aaa0466b0f204dd474a5 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 5 Dec 2024 16:32:39 -0500 Subject: [PATCH] add TTS_STREAMING_CONNECTION_FAILURE alert type --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 13fafa3..8c104ba 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,8 @@ const AlertType = { SP_DEVICE_LIMIT: 'service-provider-device-limit', SP_API_LIMIT: 'service-provider-api-limit', ACCOUNT_INACTIVE: 'account is inactive or suspended', - PLAY_FILENOTFOUND: 'play-url-notfound' + PLAY_FILENOTFOUND: 'play-url-notfound', + TTS_STREAMING_CONNECTION_FAILURE: 'tts-streaming-connection-failure' }; const schemas = { @@ -673,6 +674,9 @@ const writeAlerts = async(client, alerts) => { case AlertType.PLAY_FILENOTFOUND: message = `The file at ${url} was not found`; break; + case AlertType.TTS_STREAMING_CONNECTION_FAILURE: + message = `Failed to connect to tts streaming service at ${vendor}`; + break; default: break; }