STCSpeechKitDemo demonstrates a functionality of STCSpeechKit framework.
How To Get Started
STCSpeechKitDemo supports multiple methods for installing the library in a project. Download STCSpeechKit and add SpeechproSpeechKit source code folder to project
Installation with CocoaPods
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
Communication
- 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.
How to use STC SpeechKit
Configure Server STCSpeechKit
Add server settings to your PLIST
- ASRApiURL
- ASVSApiURL
- SessionApiURL
- TTSApiURL
- DiarizationApiUR
Initialization STCSpeechKit
STCSpeechKit *speechKit = [STCSpeechKit sharedInstance];
AuthDataModel *dataModel = [[AuthDataModel alloc] initWithUsername:self.usernameTextField.text
withPassword:self.passwordTextField.text
withDomainid:self.domainidTextField.text];
[speechKit setAuthorizationData: dataModel];
Web Socket Recognizer
id<STCStreamRecognizing> streamRecognizer = STCSpeechKit.sharedInstance.streamRecognizer;
[streamRecognizer startWithCompletionHandler:^(NSError *error, NSString *result) {
//handle result;
}];
Recognizer
id<STCRecognizing> recognizer = STCSpeechKit.sharedInstance.recognizer;;
[recognizer startWithCompletionHandler:^(NSError *error, NSString *result) {
//handle result;
}];
Web Socket Synthesizer
id<STCStreamSynthesizing> streamSynthesizer = STCSpeechKit.sharedInstance.streamSynthesizer;
[streamSynthesizer playText:text withVoice:@"Carol"
withCompletionHandler:^(NSError *error) {
//handle result
}];
Synthesizer
id<STCSynthesizing> synthesizer = STCSpeechKit.sharedInstance.synthesizer;
[synthesizer playText:text withVoice:self.voice withCompletionHandler:^(NSError *error) {
//handle result
} ];
[synthesizer cancel];
Diarization
id<STCDiarizating> diarizator = STCSpeechKit.sharedInstance.diarizator;
[diarizator startWithCompletionHandler:^(NSError *error, NSDictionary *result) {
//handle result
}];
License
Copyright (c) 2016 STC. Licensed under the FreeBSD License.