Speakhere Configuration Instructions

Source: Internet
Author: User
Speakhere Configuration Instructions

Previously seen in the group of children's shoes using Apple's official speakhere for speech recognition, but has been configured to go wrong, yesterday tried, some details need attention, here for my configuration instructions.

It should be noted that Speakhere is a non-arc engineering, Xcode5.1 the default arc when the project is created

Steps:
1. Create the project, add the required documents to the project



SpeakHereAppDelegate.h and SPEAKHEREAPPDELEGATE.M files in the class folder do not need to be added


That is, these two files

Add Library


Add in file Exampleofspeakhere-prefix.pch file
#define Kbufferdurationseconds 5

2,
(1) Non-arc mode
There was an error compiling

Solve this problem project->target->build settings, find

Change according to file type


Objective-c++, this is because the speakhere part of the file is encoded by C + +

Find preprocessor Macros in build settings, i.e.



Empty the parameters in debug, i.e.


If you compile again, you will find that the problem is resolved and new problems arise.


Change it to:



The same problem can be resolved with two issues changing
Build Again,


Add #import "AQLevelMeter.h" header file


Compiled again, if strictly follow the steps, you can already compile


(2) Arc mode

Set a file that is not in arc mode
Icon:

Compile again, problem occurs

Follow the prompts to make changes


At this point, the compilation can pass

Add code in the section where you need to add speech recognition
Speakhereviewcontroller *_viewcon = [[Speakhereviewcontroller alloc] init];
[Self.window Setrootviewcontroller:_viewcon];

debugger, you can pass

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.