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 ;}}}