如何在VB.NET中使用包装器 [英] How to use a wrapper in VB.NET

查看:102
本文介绍了如何在VB.NET中使用包装器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我们一直试图让Nuance Vocalizer Expressive进入我们的VB.NET项目,但我们似乎遇到了麻烦。在联系Nuance支持后,我们被告知必须创建一个包装器才能执行此操作,并且他们没有此示例。我对包装工作完全不熟悉,网上的细节很少,我发现这与Vocalizer Expressive产品有关。



我想要任何帮助无论是包装器,还是集成Vocalizer。



提前感谢您提供任何和所有帮助

Hi
We have been trying to get Nuance Vocalizer Expressive into our VB.NET project, but we seem to be having trouble with this. Having contacted Nuance support, we were informed that we will have to create a wrapper to do this and that they don't have examples of this. I am completely unfamiliar with working with wrappers and there is very little detail online that I can find which relates to the Vocalizer Expressive product specifically.

I would like any assistance with either the wrapper, or with integrating Vocalizer.

Thank you in advance for any and all assistance

推荐答案

Nuance Vocalizer的开发者文档 [ ^ ]



这需要一个好的我不会做长期学习,但我需要包装课。



发声器tts是一套需要在你的服务器上运行的服务网络(或服务器)。您将拥有一个将与这些服务进行交互的API。



服务将具有特定于您的设置的路径和设置。您可以检查这些服务是否已启动或从您的代码中启动它们,但我怀疑您是否需要这些服务。它们看起来非常稳定。



现在,包装类:API提供了大量功能。我怀疑你是否需要使用它的大部分,如果你这样做,你可以在包装类中简化它的功能。





在没有研究文档的情况下,我可以猜测ttsprompt需要使用服务器细节进行初始化,应该给出一些文本(带有变形),告诉它生成音频流并被告知将流传输到哪里。每次都要做很多事情。您可以将其简化为 WrapperClass.StreamSpeach(字符串文本,流输出); 然后在包装类中执行所有额外的操作。



这有意义吗?我希望很清楚:S



支持团队应该能够告诉你:S
Developer documentation for Nuance Vocalizer[^]

This needs a good long study which I won't do, but I get the need for the wrapper class.

The vocalizer tts is a suite of services that need to be running on your network (or server). You will have an api that will interact with these services.

The services will have paths and settings specific to your setup. You can check that these services are started or start them from within your code, but I doubt you will need that. They look pretty stable.

Now, the wrapper class: The API provides a great deal of functionality. I doubt you will ever need to use most of it and if you do, you can simplify it's functionality in a wrapper class.


Without studying the docs, I could guess that the ttsprompt needs to be initialized with the servers details, should be given some text (with inflections), told to generate the audio stream and be told where to stream it to. That's a lot to do each time. You can simplify this into WrapperClass.StreamSpeach(string text,stream output); then do all that extra stuff in the wrapper class.

Does that make sense? I hope it's clear :S

The support team should have been able to tell you this :S


这篇关于如何在VB.NET中使用包装器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆