update flow

2025_moty
reng 3 weeks ago
parent 0108d27da1
commit 183f63a5d1
  1. BIN
      vite/public/assets/moty/q7-1.mp3
  2. BIN
      vite/public/assets/moty/q7-2.mp3
  3. 18
      vite/public/cuelist_moty.json
  4. 27
      vite/src/pages/flow_moty.jsx

Binary file not shown.

Binary file not shown.

@ -77,18 +77,20 @@
"name": "Q6", "name": "Q6",
"type": "user_input", "type": "user_input",
"description": "call", "description": "call",
"duration": 30, "duration": 20,
"auto": true, "auto": true,
"nextcue": 6.1 "nextcue": 6.1
}, },
{ {
"id":6.1, "id":6.1,
"name":"Q6.1", "name":"Q6.1",
"type":"summary", "type":"export",
"auto":true, "auto":true,
"description":"summary", "description":"export",
"callback":"exportFile",
"nextcue":7, "nextcue":7,
"soundcue":"Q1" "soundcue":"Q1",
"duration":1
}, },
{ {
"id": 7, "id": 7,
@ -96,7 +98,7 @@
"type": "phone", "type": "phone",
"description": "Ending", "description": "Ending",
"auto": true, "auto": true,
"audioFile": "assets/moty/q7.mp3", "audioFile": "assets/moty/q7-1.mp3",
"nextcue": 8, "nextcue": 8,
"status":"intro" "status":"intro"
}, },
@ -105,8 +107,8 @@
"name": "Q8", "name": "Q8",
"type": "end", "type": "end",
"description": "QRcode", "description": "QRcode",
"status":"end", "status":"end",
"duration": 10, "audioFile": "assets/moty/q7-2.mp3",
"auto": true, "auto": true,
"nextcue": 1 "nextcue": 1
} }

@ -622,17 +622,17 @@ export function FlowMoty(){
const delay=order*2000; const delay=order*2000;
console.log('export delay time:', delay); console.log('export delay time:', delay);
setTimeout(()=>{ // setTimeout(()=>{
if(isTest) { if(isTest) {
sendOsc(OSC_ADDRESS.EXPORT, `${getUploadFolder()}#${getDataId()}#${summary||''}#${getFileId(padInput)}#${choice||''}#generated`); // Send OSC export message sendOsc(OSC_ADDRESS.EXPORT, `${getFileId(padInput)}#generated`); // Send OSC export message
}else{ }else{
sendOsc(OSC_ADDRESS.EXPORT, `${getUploadFolder()}#${getDataId()}#${summary||''}#${getFileId(padInput)}#${choice||''}#${default_image?'default':'generated'}`); // Send OSC export message sendOsc(OSC_ADDRESS.EXPORT, `${getFileId(padInput)}#${default_image?'default':'generated'}`); // Send OSC export message
} }
}, delay); // random delay between 0.5s to 5.5s // }, delay); // random delay between 0.5s to 5.5s
writeSheet(); // writeSheet();
} }
function startChatTimer(){ function startChatTimer(){
@ -703,19 +703,10 @@ export function FlowMoty(){
let next=cue.nextcue; let next=cue.nextcue;
switch(cue.numpad_type){ switch(cue.numpad_type){
case NUMPAD_TYPE.USERID: case NUMPAD_TYPE.USERID:
case NUMPAD_TYPE.PHONE:
console.log('set id', padInput); console.log('set id', padInput);
setUserId(()=>padInput); setUserId(()=>padInput);
break; break;
case NUMPAD_TYPE.CHOICE:
next=cue.branch[padInput.toString()].nextcue;
setChoice(()=>cue.branch[padInput.toString()].description); // Set choice for user input
sendOsc(OSC_ADDRESS.CHOICE, cue.branch[padInput.toString()].description);
break;
case NUMPAD_TYPE.PASSWORD:
setPassword(padInput);
// sendOsc(OSC_ADDRESS.PASSWORD, mess); // Send OSC password message
// sendOsc(OSC_ADDRESS.CHOICE, choice); // Send OSC save choice message
break;
} }
if(next){ if(next){
@ -937,7 +928,7 @@ export function FlowMoty(){
startChatTimer(); startChatTimer();
break; break;
case ChatStatus.Processing: case ChatStatus.Processing:
text = '記憶讀取中'; text = '美好製作中';
break; break;
case ChatStatus.Message: case ChatStatus.Message:
text = '請留言'; text = '請留言';
@ -1016,6 +1007,8 @@ export function FlowMoty(){
setLocalIP(ip); setLocalIP(ip);
}); });
sendOsc(OSC_ADDRESS.STATUS, 'reset');
},[]); },[]);

Loading…
Cancel
Save