STCSpeechKitDemo demonstrates a functionality of STCSpeechKit framework.
STCSpeechKitDemo supports multiple methods for installing the library in a project. Download STCSpeechKit and add SpeechproSpeechKit source code folder to project
To integrate STCSpeechKit into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'SpeechproSpeechKit', :git => 'https://github.com/STC-VoiceKey/stc-speechkit-ios.git'
##Before you get started Review the Documentation for the library API. Register on the website and get credentials
- If you'd like to ask a general question, email to [email protected].
- If you found a bug, and can provide steps to reliably reproduce it, open an issue.
- If you have a feature request, open an issue.
Add server settings to your PLIST
- ASRApiURL
- ASVSApiURL
- SessionApiURL
- TTSApiURL
- DiarizationApiUR
STCSpeechKit *speechKit = [STCSpeechKit sharedInstance];
AuthDataModel *dataModel = [[AuthDataModel alloc] initWithUsername:self.usernameTextField.text
withPassword:self.passwordTextField.text
withDomainid:self.domainidTextField.text];
[speechKit setAuthorizationData: dataModel];
id<STCStreamRecognizing> streamRecognizer = STCSpeechKit.sharedInstance.streamRecognizer;
[streamRecognizer startWithCompletionHandler:^(NSError *error, NSString *result) {
//handle result;
}];
id<STCRecognizing> recognizer = STCSpeechKit.sharedInstance.recognizer;;
[recognizer startWithCompletionHandler:^(NSError *error, NSString *result) {
//handle result;
}];
id<STCStreamSynthesizing> streamSynthesizer = STCSpeechKit.sharedInstance.streamSynthesizer;
[streamSynthesizer playText:text withVoice:@"Carol"
withCompletionHandler:^(NSError *error) {
//handle result
}];
id<STCSynthesizing> synthesizer = STCSpeechKit.sharedInstance.synthesizer;
[synthesizer playText:text withVoice:self.voice withCompletionHandler:^(NSError *error) {
//handle result
} ];
[synthesizer cancel];
id<STCDiarizating> diarizator = STCSpeechKit.sharedInstance.diarizator;
[diarizator startWithCompletionHandler:^(NSError *error, NSDictionary *result) {
//handle result
}];
Copyright (c) 2016 STC. Licensed under the FreeBSD License.