To run the example project, clone the repo, and run pod install
from the Example directory first.
YJTaskModule is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'YJTaskModule'
#import <YJTaskMark/YJSpeechMark.h>
#import <YJNetManager/YJNetMonitoring.h>
#import <YJTaskModule/YJConst.h>
/** 网络监听 必须加 */
[[YJSpeechManager defaultManager] initEngine];
/** 语音评测 需要用到时才加 */
[[YJNetMonitoring shareMonitoring] startNetMonitoring];
/** 以下几个参数必须赋值,字符串可赋值为空 */
[NSUserDefaults yj_setObject:@"用户ID" forKey:YJTaskModule_UserID_UserDefault_Key];
[NSUserDefaults yj_setObject:@"用户类型" forKey:YJTaskModule_UserType_UserDefault_Key];
[NSUserDefaults yj_setObject:@"作文题是否支持图片作答" forKey:YJTaskModule_ImgAnswerEnable_UserDefault_Key];
[NSUserDefaults yj_setObject:@"图片上传接口的Ip:Port" forKey:YJTaskModule_ApiUrl_UserDefault_Key];
[NSUserDefaults yj_setObject:@"填空题是否支持语音识别" forKey:YJTaskModule_SpeechMarkEnable_UserDefault_Key];
YJTaskModule is available under the MIT license. See the LICENSE file for more info.