Open the file SwiftDemo/ViewController.swift
and insert your AppKey and SecretKey:
paramDic["appKey"] = "Insert your appKey here"
paramDic["secretKey"] = "Insert your secretKey here"
In the file SwiftDemo/EvalTest/TestViewController.swift
, customize the input parameters according to your needs. For example:
func startSkegn() {
...
let appDic: [String: Any] = ["userId": "userId"]
let audioDic: [String: Any] = [
"audioType": "wav",
"sampleRate": 16000,
"channel": 1,
"sampleBytes": 2
]
let requestDic: [String: Any] = [
"coreType": coreType,
"refText": testString
]
let paramDic: [String: Any] = [
"app": appDic,
"audio": audioDic,
"request": requestDic,
"coreProvideType": "native"
]
...
}
Run the application and navigate to the evaluation screen by clicking the corresponding item on the screen.
Click the "Start Record" button to initiate the recording and evaluation process.
Click the "End" button to stop recording and wait for the evaluation result.