mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-23 20:39:16 +02:00
Fix showing TTS model bug,add default TTS model.
This commit is contained in:
parent
2f645b6961
commit
3233ce4746
2 changed files with 14 additions and 13 deletions
|
@ -44,7 +44,7 @@ class SMSEagle extends NotificationProvider {
|
||||||
sendMethod = "/tts_call";
|
sendMethod = "/tts_call";
|
||||||
} else if (notification.smseagleMsgType == "smseagle-tts-advanced") {
|
} else if (notification.smseagleMsgType == "smseagle-tts-advanced") {
|
||||||
sendMethod = "/tts_adv_call";
|
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";
|
endpoint = "/calls/tts";
|
||||||
} else if (notification.smseagleMsgType == "smseagle-tts-advanced") {
|
} else if (notification.smseagleMsgType == "smseagle-tts-advanced") {
|
||||||
endpoint = "/calls/tts_advanced";
|
endpoint = "/calls/tts_advanced";
|
||||||
postData["voice_id"] = notification.smseagleTtsModel;
|
postData["voice_id"] = notification.smseagleTtsModel ? notification.smseagleTtsModel : "1" ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@
|
||||||
<option value="smseagle-tts">{{ $t("smseagleMsgTts") }} </option>
|
<option value="smseagle-tts">{{ $t("smseagleMsgTts") }} </option>
|
||||||
<option value="smseagle-tts-advanced">{{ $t("smseagleMsgTtsAdvanced") }} </option>
|
<option value="smseagle-tts-advanced">{{ $t("smseagleMsgTtsAdvanced") }} </option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
|
||||||
<div v-if="$parent.notification.smseagleMsgType === 'smseagle-ring'
|
<div v-if="$parent.notification.smseagleMsgType === 'smseagle-ring'
|
||||||
|| $parent.notification.smseagleMsgType === 'smseagle-tts'
|
|| $parent.notification.smseagleMsgType === 'smseagle-tts'
|
||||||
|| $parent.notification.smseagleMsgType === 'smseagle-tts-advanced'" class="mb-3">
|
|| $parent.notification.smseagleMsgType === 'smseagle-tts-advanced'" class="mb-3">
|
||||||
|
@ -54,9 +53,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-if="$parent.notification.smseagleMsgType === 'smseagle-tts-advanced'" class="mb-3">
|
<div v-if="$parent.notification.smseagleMsgType === 'smseagle-tts-advanced'" class="mb-3">
|
||||||
<label for="smseagle-tts-model" class="form-label">{{ $t("smseagleTtsModel") }} </label>
|
<label for="smseagle-tts-model" class="form-label">{{ $t("smseagleTtsModel") }} </label>
|
||||||
<input id="smseagle-tts-model" v-model="$parent.notification.smseagleTtsModel" type="number" class="form-control" required>
|
<input id="smseagle-tts-model" v-model="$parent.notification.smseagleTtsModel" type="number" class="form-control" placeholder="1" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-if="$parent.notification.smseagleApiType === 'smseagle-apiv2'" class="mb-3">
|
<div v-if="$parent.notification.smseagleApiType === 'smseagle-apiv2'" class="mb-3">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="smseagle-recipient-type" class="form-label">{{ $t("smseagleRecipient") }}</label>
|
<label for="smseagle-recipient-type" class="form-label">{{ $t("smseagleRecipient") }}</label>
|
||||||
|
@ -96,7 +97,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-if="$parent.notification.smseagleMsgType === 'smseagle-tts-advanced'" class="mb-3">
|
<div v-if="$parent.notification.smseagleMsgType === 'smseagle-tts-advanced'" class="mb-3">
|
||||||
<label for="smseagle-tts-model" class="form-label">{{ $t("smseagleTtsModel") }} </label>
|
<label for="smseagle-tts-model" class="form-label">{{ $t("smseagleTtsModel") }} </label>
|
||||||
<input id="smseagle-tts-model" v-model="$parent.notification.smseagleTtsModel" type="number" class="form-control" required>
|
<input id="smseagle-tts-model" v-model="$parent.notification.smseagleTtsModel" type="number" class="form-control" placeholder="1" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue