ios-senior23-Iflytek speech Recognition 1

Source: Internet
Author: User

Iflytek speech recognition

With the rapid development of today's society, the products we use are also moving towards the development of traverse and intelligence, of course, mobile app is no exception. Today's apps are reducing the flow of user operations, optimizing the user experience, and facilitating users. Improve the user's Dau (daily live), increase the user's stickiness generally we will come up with more novel moves.

If there is a demand: User needs: Users need to bind the bank card input bank card number, manual input to increase the user's operational degree, so the user can read the bank card number through the voice, is not both convenient and only, now do some good speech recognition of the open platform for us to use, one is the Hkust news fly platform, One is the Baidu voice platform. I personally prefer Iflytek, because the advantage of Iflytek is the large segment of the word recognition, the accuracy rate is high. This is exactly what I need to enter the bank card number accurately. This blog is also mainly about the use of the voice of the CyberLink SDK. Let's take a look at Iflytek in detail.

1. Hkust Flying Open Platform

2. Hkust Flying Ios-api Open Platform

First step: Apply for Account ID

Log on to the open platform, the User menu bar to create an application, where the login can also be used in a third-party way, in the creation of the application interface to fill in the relevant information, and then there will be an SDK download link, if not directly to the SDK option to download.

Step two: Import the Flight SDK framework

Download the SDK after decompression there are three folders: Doc folder: Not to mention must be the development of documents; The important thing is that the next two folders: One is the Lib folder: the library to store the Iflytek SDK, this is the SDK we want to import, one is sample of the Hkust Flight demo project.

Below we create a project, copy the "Iflymsc.framework" under the Lib folder to the project directory, and then add the dependent libraries in the project, as shown in:

Step three: Start speech recognition.

Speech recognition is divided into two kinds, used in different situations, one is the interface prompt speech recognition, one is no interface prompt speech recognition, here with the interface prompts for speech recognition as an example of advanced interpretation.

3.1 Importing header files

3.2 Log in to the Flying server

In the use of the voice of the message before the user authentication, that is, login to the flight server, this in the Viewdidload () method to add two lines of code, that is, the flying server needs to be based on your current user's appid to consent to your login. The code is as follows:

3.3 Creating an Interface prompt speech recognition object

3.4 Initializing a recognized object with an interface

3.5 Implementing Proxy methods

3.6 Trigger starts to recognize speech

Recognition implemented in the Socket button event: beginrecongnizedaction:

ios-senior23-Iflytek speech Recognition 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.