Merge branch 'master' of http://yykjgit.sdyyst.com/r/easegen
# Conflicts:
# easegen-front/package-lock.json
| | |
| | | "dayjs": "^1.11.10", |
| | | "diagram-js": "^12.8.0", |
| | | "driver.js": "^1.3.1", |
| | | "duix-guiji-light": "^0.2.2", |
| | | "echarts": "^5.5.0", |
| | | "echarts-wordcloud": "^2.1.0", |
| | | "element-plus": "2.8.4", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/config/axios' |
| | | |
| | | export const getDuixSign = async () => { |
| | | return await request.get({ url: `/system/duix/sign` }) |
| | | } |
| | |
| | | message.warning('åºæ¯ä¸ºç©ºï¼è¯·å
ä¸ä¼ PPTï¼') |
| | | return false |
| | | } |
| | | |
| | | |
| | | |
| | | //äººè¸æ ¡éª |
| | | while(!IsEndCheckFace.value){} //ä¸ä¸ªç©ºå¾ªç¯ï¼ä¸»è¦ä¸ºäºé¿å
æç«¯æ
åµä¸å½ç¨æ·ç¹å»ä¿åæé®æè
è§é¢åææé®æ¶ï¼äººè¸æ ¡éªæªå®æçé®é¢ |
| | |
| | | .host-item { |
| | | position: relative; |
| | | display: inline-block; |
| | | width: 45%; |
| | | height: 200px; |
| | | width: 95%; |
| | | margin: 5px 0; |
| | | margin-left: 10px; |
| | | cursor: pointer; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <div class="remote-container"></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import DUIX from 'duix-guiji-light' |
| | | import {getDuixSign} from "../../api/dialogue"; |
| | | import * as pptTemplateApi from "../../api/pptTemplate"; |
| | | |
| | | export default { |
| | | name: "index" |
| | | } |
| | | const tempConversationId ='dev-'+ Math.random().toString(36).substring(2, 11); |
| | | const duix = new DUIX() |
| | | |
| | | getDuixSign().then(res => { |
| | | if (res.code === 200) { |
| | | duix.init({ |
| | | sign: res.data.sign, |
| | | containerLable: '.remote-container', |
| | | conversationId: tempConversationId, |
| | | }) |
| | | } |
| | | }) |
| | | duix.on('getDuixSign', () => { |
| | | // start session |
| | | duix.start({ |
| | | conversationId: tempConversationId, |
| | | openAsr: true |
| | | }).then(res => { |
| | | console.info(res) |
| | | }) |
| | | }) |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .remote-container{ |
| | | width: 500px; |
| | | height: 500px; |
| | | } |
| | | </style> |
| | |
| | | import cn.iocoder.yudao.framework.common.util.collection.ArrayUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.support.SFunction; |
| | | import com.github.xiaoymin.knife4j.core.util.StrUtil; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.Collection; |
| | |
| | | } |
| | | |
| | | public LambdaQueryWrapperX<T> eqIfPresent(SFunction<T, ?> column, Object val) { |
| | | if (ObjectUtil.isNotEmpty(val)) { |
| | | return (LambdaQueryWrapperX<T>) super.eq(column, val); |
| | | if (val != null && !(val instanceof String && StrUtil.isBlank((String) val))) { |
| | | this.eq(column, val); |
| | | } |
| | | return this; |
| | | } |
| | |
| | | // 彿²¡æäººåæ¶ï¼è§é¢æ¾å¨ cover çä¸å± |
| | | builder = new ProcessBuilder( |
| | | "ffmpeg", |
| | | "-i", cover1, // èæ¯å¾ 1 |
| | | "-i", substring1, // è§é¢ |
| | | "-i", cover1, // èæ¯å¾ 2 |
| | | "-i", cover, // PPTå
容 |
| | | "-i", cover1, // èæ¯å¾ 1 |
| | | "-i", substring1, // è§é¢ï¼å«é³é¢ï¼ |
| | | "-i", cover1, // èæ¯å¾ 2 |
| | | "-i", cover, // PPT å
容 |
| | | "-filter_complex", |
| | | "[0:v]scale=" + Math.round(scene.getBackground().getWidth()) + ":" + Math.round(scene.getBackground().getHeight()) + "[bg1];" + |
| | | "[1:v]scale=" + Math.round(scene.getComponents().get(0).getWidth()) + ":" + Math.round(scene.getComponents().get(0).getHeight()) + "[v1];" + |
| | |
| | | "[2:v]scale=" + Math.round(scene.getBackground().getWidth()) + ":" + Math.round(scene.getBackground().getHeight()) + "[bg2];" + |
| | | "[img1][bg2]overlay=shortest=1[v2];" + |
| | | "[3:v]scale=" + Math.round(scene.getComponents().get(1).getWidth()) + ":" + Math.round(scene.getComponents().get(1).getHeight()) + "[v3];" + |
| | | "[v2][v3]overlay=x=" + Math.round(scene.getComponents().get(1).getMarginLeft()) + ":y=" + Math.round(scene.getComponents().get(1).getTop()), |
| | | newFileName2 // è¾åºæä»¶å |
| | | "[v2][v3]overlay=x=" + Math.round(scene.getComponents().get(1).getMarginLeft()) + ":y=" + Math.round(scene.getComponents().get(1).getTop()) + "[outv]", |
| | | "-map", "[outv]", |
| | | "-map", "1:a?", // æ·»å é³é¢æµï¼å¦æåå¨ï¼ |
| | | "-c:v", "libx264", // è§é¢ç¼ç æ ¼å¼ï¼å¯é使¨èï¼ |
| | | "-c:a", "aac", // é³é¢ç¼ç æ ¼å¼ï¼å¯é使¨èï¼ |
| | | "-shortest", // 让è¾åºé¿åº¦ä¸æçæµä¸è´ï¼é¿å
é»å±æéé³å»¶é¿ |
| | | "-y", // è¦çè¾åºæä»¶ |
| | | newFileName2 // è¾åºæä»¶å |
| | | ); |
| | | } |
| | | System.out.println(newFileName2); |