【问题标题】:Synthesize speech on Windows 10: Scenario_SynthesizeText.xaml.h is missing在 Windows 10 上合成语音:缺少 Scenario_SynthesizeText.xaml.h
【发布时间】:2019-09-12 09:20:31
【问题描述】:

我对 JS、Python、Go 有一些经验,但我第一次需要用 C++ 完成一些事情。我可以尝试使用 C# 获得合成音频,但我认为最好吸收有关更通用技术的知识。我关注this documentation page。从here我发现我需要包含Scenario_SynthesizeText.xaml.h

在我的官方 Windows 10 Virtualbox 映像中,我安装了 Visual Studio Build Tools 2019 以及通用 Windows 平台构建工具。

我的代码:

#include <iostream>

#include "Scenario_SynthesizeText.xaml.h"

int main() {
    std::cout << "Hello World\n";

    InitializeComponent();
    synth = std::ref new SpeechSynthesizer();
    media = std::ref new MediaElement();

    return 0;
}

但在 Windows 10 上编译失败:

D:\>cl __windowsTTSTest.cc

fatal error C1083: Cannot open include file: 'Scenario_SynthesizeText.xaml.h': No such file or directory

看来我需要安装一些依赖项?

【问题讨论】:

    标签: c++ windows uwp uwp-xaml


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-12-05
    • 2023-01-14
    • 2021-11-04
    • 2017-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多