Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Orbita Voice SDK will enable the integration of Orbita Voice services across iOS apps. Development of services such as audio processing, speech to text conversion from scratch can be time-consuming. For this reason, Orbita has developed the SDK that can integrate all the voice-related services that a business requires, for easy and quick implementation.

Table of Contents

Prerequisites

- iOS 10.0 or above

...

6. A new project will be created with the “Product name” that was given in the previous step.

...

...

Import the SDK files to the project

1. Unzip the SDK.zip file.

...

3. Move the ‘googleapis.podspec’ file and ‘google’ folder from the SDK folder to the project directory.

From the “SDK” folder

...

To the “Project name” folder

...

4. In Xcode, right-click on the project directory and select “Add files to <Project name>”.

...

5. Select the folder named “SDK” which is added to Xcode and click on “Add”

...

...

Pod Installation

1. Go to Terminal and change the directory to project directory

...

7. Close the project in Xcode and open ‘<Project name>.xcworkspace’ file from the project directory

...

...

Build procedure

1. Go to Product – Run from the file menu. Build The build would run into errors in google STT. Please follow the below link to resolve it.

...

3. Replace the Google API key in SpeechRecognitionService.swift

...

Using the SDK

...

Login to Orbita services

Code Block
let servicePayload = [“username":"","password":""]
WebServices.sharedManager.LoginRequest(servicePayload as NSDictionary, success:
{ (response, requestName, status) in
})
{ (error, requestName,status) in
}

...

Code Block
SpeechAudioProcessor.shared.StopAudio()

...

To synthesize the text from Orbita voice service to speech (TTS)

Code Block
var audioText = serviceResponse.value(forKey: "text") as! String
SpeechAudioProcessor.shared.SpeakText(string: audioText)

...