startAudioRecording(params: Object)
Requires:
WearKit≥1.3.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Start recording with transcription (new), supports input source and business mode parameters.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | Device ID |
| Yes | Configuration | ||
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description | WearKit Since |
|---|---|---|---|
| Recording task information | v3.0.0 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Error Code
| Error Code | Error Message |
|---|---|
10001 | Internal error |
10002 | Device PID is not associated with an Agent |
10021 | Timeout |
10041 | Operation error |
10042 | Already in started state |
10046 | Request already in progress |
10047 | Device is already recording |
10061 | Device error |
10062 | Device does not support the recording control dpCode |
10063 | DP value error |
10064 | Device not fully connected |
10071 | Audio format error |
10073 | Audio engine initialization failed |
10081 | Payment required |
10082 | Bluetooth connection error |
10083 | Device offline |