Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

iOS / Speech to Text Sample

0600002R0C gravatar image
Question by warpandas  (0) | May 12, 2015 at 02:22 AM speech-to-textmobileiosibmcloud

Dear Developers,

It would greatly benefit potential and current customers if we could see different implementations of the speech-to-text sample app on various platforms. Due to the uniqueness and complexity of the speech-to-text service (compared to other Watson services), the importance of examples is even more relevant.

While there is only an nodeJS example at the moment, please consider showing how this can be done in an IOS (Swift and Obj-C)/Android App or document some reference material to how this can be done.

In reference to a mobile app, some questions I have are:

  1. Is the best way to utilize Watson speech-to-text through websockets? Are there alternative ways?

  2. I understand that RESTful is an architecture whereas a socket is more like a communication method. Can someone explain how sockets utilize REST for the speech-to-text api? Specifically, how is the RESTful speech-to-text webservice augmented with a a websocket-based API for real-time responses?

  3. At large scale (hundreds of thousands of clients), will there need to be some special work done on the server to support large numbers of simultaneously connected sockets?

  4. Are there any examples of a Swift implementation of the sample speech-to-text app?

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
270007KE3F gravatar image

Answer by German Attanasio Ruiz (4975) | May 12, 2015 at 08:10 AM

Hi @warpandas,

  1. The service will support WebSocket soon, that will reduce drastically the amount of code that you need to write. YOu will write 10-20 lines total.

  2. The idea behind a socket, is that it is a “port” through which data goes in and out of. On the other hand, with REST you always need to send a message that includes headers and the server always needs to spend time processing them.
    For more details, see a general benchmark of WebSockets vs REST here.

  3. The idea behind our services is to be able to support millions of requests from all our developers. However if you are planning on having millions of requests on a daily basis I would suggest you to become an EcoSystem partner.

  4. We will be releasing SDKs for Android and IOs in a few weeks, everything will be in our GitHub organization.

Thanks for your feedback and Stay tuned.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
0600002R0C gravatar image

Answer by warpandas (0) | May 13, 2015 at 01:36 AM

@German Attanasio Ruiz

Thank you for your quick reply. It seems like there are substantial features in the pipeline to look forward to.

In the meantime, can you kindly provide an example of how to utilize sockets with the speech-to-text REST API in a general implementation for real time speech-to-text analysis? Although it's nice to have a wrapper for NodeJS users, what about other implementations such as HTTP long polling?

I'm also curious as to what the difference between using sockets to augment REST and using the websocket protocol. It appears that sockets/REST can coexist and are even interchangable in an application. It sounds like the same thing to me except that you are removing the REST communication methods and instead hooking events through the websocket protocol.

Can you provide some more information as to how the speech-to-text example encapsulates both sockets and REST? Am I correct in understanding that performance wise, we should be able to see Websocket > Socket + REST > REST when doing live transcription?

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
310000VN4F gravatar image

Answer by Glenn R. Fisher (196) | Mar 19, 2016 at 04:13 AM

Hi @warpandas.

Just want to let you know that the Watson Developer Cloud iOS SDK now includes support for Speech to Text. There is also an example application to demonstrate the Speech to Text service.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

32 people are following this question.

Answers

Answers & comments

Related questions

filesync iOS Sample of Mobile Data doesn't work on iOS8.1 1 Answer

Problem uploading an iOS push notification certificate file for a mobile back end 1 Answer

Mobile app instrumented by MQA SDK crashes on device running on iOS 5.1.1 1 Answer

iOS mobile app instrumented with pre-production SDK: information not showing up on MQA dashboard 1 Answer

IBM Bluemix supports only BOOLEAN YES not NO 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges