|
@@ -169,7 +169,7 @@ async function sendMessage(type = "") {
|
|
|
console.log("sendMessage", userMessage.value);
|
|
|
qaQuery.push(userMessage.value);
|
|
|
|
|
|
- let url = "https://devbox10.itri-nlp.tw:38125/v1/qa/";
|
|
|
+ let url = "https://api.itri-101-5g.com/v1/qa/";
|
|
|
|
|
|
try {
|
|
|
// 使用者訊息
|
|
@@ -273,7 +273,7 @@ let showInput = ref(false); // 輸入框
|
|
|
// async function getVideo(data) {
|
|
|
// console.log("getVideo data", data);
|
|
|
// // let url = `https://cmm.ai:9101/tts?message=${data.response}&type=101`;
|
|
|
-// let url = `https://bf18-61-230-0-215.ngrok-free.app/tts?message=${data.response}&type=101`;
|
|
|
+// let url = `https://cmm.ai:9001/tts?message=${data.response}&type=101`;
|
|
|
|
|
|
// try {
|
|
|
// const response = await axios.post(url);
|
|
@@ -284,7 +284,7 @@ let showInput = ref(false); // 輸入框
|
|
|
// videoPause.value = false;
|
|
|
|
|
|
// // ttsVideoSrc.value = `https://cmm.ai:9101/${response.data.url}`;
|
|
|
-// // ttsVideoSrc.value = `https://bf18-61-230-0-215.ngrok-free.app/${response.data.url}`;
|
|
|
+// // ttsVideoSrc.value = `https://cmm.ai:9001/${response.data.url}`;
|
|
|
// ttsVideoSrc.value = response.data.url;
|
|
|
// await ttsVideo.value.load();
|
|
|
// await ttsVideo.value.play();
|
|
@@ -2046,8 +2046,8 @@ async function handleTTS(message) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // let url = `https://bf18-61-230-0-215.ngrok-free.app/ttsTry/tts_try?message=${message}&type=101`;
|
|
|
- let url = `https://bf18-61-230-0-215.ngrok-free.app/gcp/text-to-speech?language_code=${audioLang}&gender=female`;
|
|
|
+ // let url = `https://cmm.ai:9001/ttsTry/tts_try?message=${message}&type=101`;
|
|
|
+ let url = `https://cmm.ai:9001/gcp/text-to-speech?language_code=${audioLang}&gender=female`;
|
|
|
|
|
|
const formData = new FormData();
|
|
|
formData.append("text", message);
|
|
@@ -2178,8 +2178,8 @@ async function handleAudioToText() {
|
|
|
}
|
|
|
|
|
|
// let url = `http://172.104.93.163:9880/whisper/${audioLang}/`;
|
|
|
- // let url = `https://bf18-61-230-0-215.ngrok-free.app/whisper/${audioLang}/`;
|
|
|
- let url = `https://bf18-61-230-0-215.ngrok-free.app/gcp/speech-to-text?language_code=${audioLang}`;
|
|
|
+ // let url = `https://cmm.ai:9001/whisper/${audioLang}/`;
|
|
|
+ let url = `https://cmm.ai:9001/gcp/speech-to-text?language_code=${audioLang}`;
|
|
|
|
|
|
const formData = new FormData();
|
|
|
formData.append("file", audioFile.value);
|
|
@@ -2979,7 +2979,7 @@ function handleVoice(state) {
|
|
|
<swiper-slide v-for="item in message.body.ticketList">
|
|
|
<div class="slide-item">
|
|
|
<img
|
|
|
- class="cover-img aa"
|
|
|
+ class="cover-img"
|
|
|
:src="item.info.img || item.info.cover_img"
|
|
|
alt=""
|
|
|
/>
|
|
@@ -2990,7 +2990,7 @@ function handleVoice(state) {
|
|
|
<div class="price-info">
|
|
|
<span>{{ item.info.floor || item.info.price }}</span>
|
|
|
<div class="link-btn">
|
|
|
- <a :href="item.info.url" target="_blank">
|
|
|
+ <a :href="item.info.url || item.info.website_url" target="_blank">
|
|
|
{{ t("ctaGoUrl") }}
|
|
|
</a>
|
|
|
</div>
|
|
@@ -3244,7 +3244,7 @@ function handleVoice(state) {
|
|
|
<div v-show="isTTSVideo">
|
|
|
<video ref="ttsVideo" preload playsinline>
|
|
|
<source
|
|
|
- :src="`https://bf18-61-230-0-215.ngrok-free.app/${ttsVideoSrc}`"
|
|
|
+ :src="`https://cmm.ai:9001/${ttsVideoSrc}`"
|
|
|
type="video/mp4"
|
|
|
/>
|
|
|
|
|
@@ -3397,7 +3397,9 @@ function handleVoice(state) {
|
|
|
class="mb-3 text-center"
|
|
|
v-html="t('system_construction')"
|
|
|
></p>
|
|
|
- <!-- <p v-if="!isRecording" class="mb-3">點選以進行錄音</p> -->
|
|
|
+ <!-- <p v-if="!isRecording" class="mb-3">
|
|
|
+ {{ t("tap_to_record") }}
|
|
|
+ </p> -->
|
|
|
<p v-else class="mb-3">錄音中:{{ recordTime }} 秒</p>
|
|
|
<!-- 錄音按鈕 -->
|
|
|
<!-- <v-btn
|