Voice sharing app ios source code project, voice ios source code project

Source: Internet
Author: User

Voice sharing app ios source code project, voice ios source code project

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: @ "cannot be identified. Please repeat it again" message: nil delegate: nil cancelButtonTitle: @ "OK" otherButtonTitles: nil]; [alert show];} else {self. textView. text = _ result ;}}}

  

  • <Ignore_js_op> RUN
  • <Ignore_js_op> RUN
  • <Ignore_js_op> RUN
  • <Ignore_js_op>

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

    Http://ios.662p.com/thread-2164-1-1.html

    Run

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.