如何基于 Azure 文本到语音将 Visimes ID 与我的 svg 图像框架文件夹连接

问题描述

我使用了从 Microsoft Text to Speech 的代码,它正在运行。现在我想让我的图像 svg 作为动画工作。

但是没有文件可以指导这一点。所以请告诉我如何让 headtalkingDiv 与我的文件 svg 一起工作,以确保从 Microsoft Text 到 Speech 的 Visimes ID rusults。

synthesizer.visemeReceived = function (s,e) {
          window.console.log(e);
          eventsDiv.innerHTML += "(Khẩu hình),thời lượng: " + e.audioOffset / 10000 + "ms. Viseme ID: " + e.visemeId + '\n';
          talkingHeadDiv.innerHTML = e.animation.replaceAll("begin=\"0.5s\"","begin=\"indefinite\"");
          $("svg").width('1920px').height('1080px');
        }   

还有这个

synthesizer.visemeReceived = function (s,"begin=\"indefinite\"");
          $("svg").width('1920px').height('1080px');
        }      

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)