Giter Club home page Giter Club logo

stc-speechkit-ios's Introduction

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.

stc-speechkit-ios's People

Contributors

alexandrasoloshcheva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.