Giter VIP home page Giter VIP logo

speechsuper-sdk-ios-objectivec-demo's Introduction

SpeechSuper SDK iOS Objective-C Demo

This demo provides an example of how to integrate the SpeechSuper iOS Objective-C SDK into your iOS app for pronunciation assessment. Follow these steps to get started:

Step 1: Configure Your Keys

  1. Open the file RecorderDemo/ViewController.m.

  2. Insert your appKey and secretKey into the following lines:

    NSString *appKey = @"Insert your appKey here";
    NSString *secretKey = @"Insert your secretKey here";

Step 2: Customize Your Inputs

  1. Open the file RecorderDemo/evalScences/Controller/TestViewController.m.

  2. Modify the input parameters according to your needs in the following code block:

    - (void)startSkegn {
    
            ...
           
            [appDic setValue:@"userId" forKey:@"userId"];
            
            NSMutableDictionary *audioDic = [NSMutableDictionary dictionary];
            [audioDic setValue:@"wav" forKey:@"audioType"];
            [audioDic setValue:@16000 forKey:@"sampleRate"];
            [audioDic setValue:@1 forKey:@"channel"];
            [audioDic setValue:@2 forKey:@"sampleBytes"];
            
            NSMutableDictionary *requestDic = [NSMutableDictionary dictionary];
            [requestDic setValue:self.coreType forKey:@"coreType"];
            [requestDic setValue:self.testString forKey:@"refText"];
            
            NSMutableDictionary *paramDic = [NSMutableDictionary dictionary];
            [paramDic setValue:appDic forKey:@"app"];
            [paramDic setValue:audioDic forKey:@"audio"];
            [paramDic setValue:requestDic forKey:@"request"];
            [paramDic setValue:@"native" forKey:@"coreProvideType"];
            NSString *jsonString = [self objectToJsonString:paramDic];
            ...
    }

Step 3: Run the Application

  1. Run the application on your iOS device or simulator.
  2. Click on the item on the screen to navigate to the evaluation screen.

Step 4: Start and End Evaluation

  1. On the evaluation screen, click the "Start Record" button to begin recording and evaluation.
  2. Click the "End" button to stop recording and await the result.

Now you're ready to use the SpeechSuper iOS Objective-C SDK in your iOS app.

speechsuper-sdk-ios-objectivec-demo's People

Contributors

chelseadong avatar speechsuper avatar

Watchers

 avatar  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.