Speech sharing application source code and speech sharing source code

Source: Internet
Author: User

Speech sharing application source code and speech sharing source code

The source code is the source code of the speech sharing application. In this demo, Tencent voice recognition is used as the input method for shared content. You can also enter shared content through a manual keyboard, the text of shared content cannot exceed 180 characters. After the shared content is entered, you can share it directly. When the sharing SDK is used, umeng shares the content in a social manner.

-(IBAction) voiceRecognize :( id) sender {
[Self. textView resignFirstResponder];

_ Result = @"";

[_ IflyRecognizerView start];
}
-(Void) onResult :( NSArray *) resultArray isLast :( BOOL) isLast
{
NSDictionary * dic = [resultArray objectAtIndex: 0];
NSMutableString * result = [NSMutableString new];
NSLog (@ "DIC: % @", dic );
For (NSString * key in dic ){
[Result appendFormat: @ "% @", key];
}
NSLog (@ "result: % @", result );

_ Result = [NSString stringWithFormat: @ "% @", _ result, result];

If (isLast ){
If (_ result = nil | [_ result is1_tostring: @ ""]) {
UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "unidentifiable, please repeat it again" message: nil delegate: nil cancelButtonTitle: @ "OK" otherButtonTitles: nil];
[Alert show];
} Else {
Self. textView. text = _ result;
}
}
}

 

Source code download: http://code.662p.com/view/9125.html

Preview:

  • <Ignore_js_op> RUN
  • <Ignore_js_op> RUN
  • <Ignore_js_op> RUN
  • <Ignore_js_op>
  • Http://ios.662p.com/forum-154-1.html

Related Article

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.