metamaker-for-three 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -433,12 +433,15 @@ async function replaceIdol(opts: string | Uint8Array) {
433
433
  idol = await MMFT.core.parseGLTFModel(idolBuffer.buffer);
434
434
  } else {
435
435
  idol = await MMFT.core.parseGLTFModel(opts.buffer);
436
+ idol.scale.x = 5;
437
+ idol.scale.y = 5;
438
+ idol.scale.z = 5;
436
439
  }
437
440
  // MMFT.ClothPhysics.ClothPhysicManagerInstance.setClothPhysics(idol);
438
441
 
439
442
  // idol.traverse((child) => {
440
443
  // if (child.type == "Mesh" || child.type == "SkinnedMesh") {
441
-
444
+
442
445
  // const anyTing: any = child;
443
446
  // anyTing.material.envMapIntensity = 0.3;
444
447
  // anyTing.material.needsUpdate = true;
@@ -522,9 +525,10 @@ async function handleTTS(audio, teeth, emo) {
522
525
  */
523
526
  async function fetchTTSToAnim(text: string) {
524
527
  const tts = {
525
- voice_name: "zh-CN-XiaoxiaoNeural",
526
- speed: 42,
527
- volume: 100,
528
+ speed: 50,
529
+ volume: 50,
530
+ anim_agent: "mms",
531
+ voice_name: "zh-CN-YunyangNeural",
528
532
  };
529
533
  let response: any = await fetch("//open.metamaker.cn/api/openmm/v1/text_to_anim", {
530
534
  method: "post",
@@ -711,3 +715,5 @@ makeSignCode();
711
715
  setInterval(() => {
712
716
  makeSignCode();
713
717
  }, 60 * 1000 * 10);
718
+
719
+ MMFT.Env.TTSAnimationRatio = 1.5;