Skip to content

Speech recognition, text-to-speech and diarization Framework

Notifications You must be signed in to change notification settings

elegion/stc-speechkit-ios

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itunesartwork 2x

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.

About

Speech recognition, text-to-speech and diarization Framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 95.5%
  • C 4.2%
  • Ruby 0.3%