From 3233ce47460003b231edbe480d3c9a8256768c1f Mon Sep 17 00:00:00 2001 From: AxeKam333 Date: Wed, 26 Mar 2025 12:52:52 +0100 Subject: [PATCH] Fix showing TTS model bug,add default TTS model. --- server/notification-providers/smseagle.js | 4 ++-- src/components/notifications/SMSEagle.vue | 23 ++++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/server/notification-providers/smseagle.js b/server/notification-providers/smseagle.js index 4989408bb..5dd6cfeb8 100644 --- a/server/notification-providers/smseagle.js +++ b/server/notification-providers/smseagle.js @@ -44,7 +44,7 @@ class SMSEagle extends NotificationProvider { sendMethod = "/tts_call"; } else if (notification.smseagleMsgType == "smseagle-tts-advanced") { sendMethod = "/tts_adv_call"; - voice_id = notification.smseagleTtsModel; + voice_id = notification.smseagleTtsModel ? notification.smseagleTtsModel : 1 ; } } @@ -130,7 +130,7 @@ class SMSEagle extends NotificationProvider { endpoint = "/calls/tts"; } else if (notification.smseagleMsgType == "smseagle-tts-advanced") { endpoint = "/calls/tts_advanced"; - postData["voice_id"] = notification.smseagleTtsModel; + postData["voice_id"] = notification.smseagleTtsModel ? notification.smseagleTtsModel : "1" ; } } diff --git a/src/components/notifications/SMSEagle.vue b/src/components/notifications/SMSEagle.vue index 6286628a2..cc0e5e83f 100644 --- a/src/components/notifications/SMSEagle.vue +++ b/src/components/notifications/SMSEagle.vue @@ -45,18 +45,19 @@ - -
- - -
-
- - +
+ + +
+
+ + +
+
@@ -96,7 +97,7 @@
- +