在使用Bluemix的iOS应用程序中使用Watson Speech to Text服务

时间:2015-11-06 19:03:24

标签: ios ibm-cloud speech-to-text ibm-watson

我们正在Bluemix上创建一个iOS应用程序,我们正在尝试将Speech与Text服务相关联。我们已将服务绑定到应用程序,但现在我们不知道如何在我们的应用程序中使用该服务。

我们如何在我们的iOS应用中使用Speech to Text API,我们的后端托管在Bluemix上?

2 个答案:

答案 0 :(得分:1)

您有两种选择:

  1. 您可以直接从iOS应用程序调用Watson Speech to Text服务。您可以使用RestKit之类的内容直接从iOS应用调用REST API,也可以使用Watson Speech iOS SDK来简化调用。

  2. 您可以将所有收到的音频发送到Bluemix上的应用程序(作为移动后端)并从那里调用Speech to Text REST API。这将从移动设备卸载计算,但很可能会增加将音频转录回到手机的延迟。

答案 1 :(得分:0)

此外,现在有一个Watson iOS SDK,其中包括Speech to Text服务。如果您打算使用Watson做很多工作,这似乎是直接使用REST API的理想解决方案。