语音分享应用ios源码项目
该源码是语音分享应用源码,本demo使用了科大讯飞语音识别作为分享内容的输入方式,同时也支持手动键盘输入分享内容,限制分享内容文字不能超过180个字符,分享内容输入完成后可以直接分享,分享SDK使用的时友盟社会化分享。
- (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 isEqualToString:@""]) { UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"无法识别,请再说一遍" message:nil delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil]; [alert show]; }else{ self.textView.text = _result; } } }
- <ignore_js_op>运行截图
- <ignore_js_op>运行截图
- <ignore_js_op>运行截图
- <ignore_js_op>运行截图
相关推荐
瓜牛呱呱 2020-11-12
柳木木的IT 2020-11-04
yifouhu 2020-11-02
lei0 2020-11-02
源码zanqunet 2020-10-28
源码zanqunet 2020-10-26
一叶梧桐 2020-10-14
码代码的陈同学 2020-10-14
lukezhong 2020-10-14
lzzyok 2020-10-10
anchongnanzi 2020-09-21
clh0 2020-09-18
changcongying 2020-09-17
星辰大海的路上 2020-09-13
abfdada 2020-08-26
mzy000 2020-08-24
shenlanse 2020-08-18
zhujiangtaotaise 2020-08-18
xiemanR 2020-08-17