FSTT
  • Fcloud Speak To Text (STT)
  • [Android] FSTT SDK
    • 1. Install FSTT SDK
    • 2. FSTT SDK features
  • [iOS] FSTT SDK
    • 1. Install FSTT SDK
    • 2. FSTT SDK features
Powered by GitBook
On this page
  1. [iOS] FSTT SDK

2. FSTT SDK features

init SDK

FTechSSTManager.instance().initSDK(appId: "", key: "")
Param
Type
Description

appId

String

Application id

key

String

Secret key

Contact us for get app_id & secret_key

Register callback

FTechSSTManager.instance().delegate = self

Implement FTechSSTManagerDelegate

  • After registration, the SDK will return the corresponding status in the callback.

status
Description

onStart

Called at start record

onRecording

Called while in process recording

onCompletion

Called when completed record process and return result

onFailure

Called when an error occurs in process recording

extension ViewController: FTechSSTManagerDelegate {
    func onStart() {
    }
    
    func onRecording() {
    }
    
    func onCompletion(data: STTResponse) {
    }
    
    func onFailure(error: FTError) {
    }
}

Start STT

  • Used to start record for STT

  • When successful start, the SDK starts entering the recording state, it will be called on onStart() in callback. Handling start record successfully here.

  • When start record fails, it will be processed at callback onFailure() in callback

FTechSSTManager.instance().startRecording()

Stop STT

  • Used to stop record and process record to text result

  • When successful, the SDK will be return text result on onCompletion() in callback. Handling stop record successfully here.

  • When fails, it will be processed at callback onFailure() in callback.

FTechSSTManager.instance().stopRecoding()
Previous1. Install FSTT SDK

Last updated 10 months ago