UE4TTS文字转语音功能。
留下一个文字转语音插件,看插件代码就行了,下面代码太烂了,就不用看了。
链接: https://pan.baidu.com/s/1US54U5sbzUH5oFIFbnfIEA 提取码: e37s 复制这段内容后打开百度网盘手机App,操作更方便哦
创建一个C++类,这里使用的是FunctionLibrary类型C++类
引入头文件
#include <sapi.h>
#include <sphelper.h>
在.Build.cs中加入一句话
PublicAdditionalLibraries.Add("atls.lib");
.h中定义三个函数
UFUNCTION(BlueprintCallable, Category = "TTS", meta = (DisplayName = "Start", Keywords = "Text To Speech"))
static void Start();
UFUNCTION(BlueprintCallable, Category = "TTS", meta = (DisplayName = "Quit", Keywords =