Skip to content

Commit

Permalink
add TTS_STREAMING_CONNECTION_FAILURE alert type
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Dec 5, 2024
1 parent c2665e8 commit ab403b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit ab403b4

Please sign in to comment.