Setting up a Recording Device
1 min
Before we can start with a new recording, we first have to establish a Recording Device. Recording devices can be any input device currently connected to the host.
Using the Autoscriber SDK to get Recording devices:
.getAvailableRecordingDevices()
await scribe
.getAvailableRecordingDevices()
.then((res: RecordingDeviceList) => {
// List of available devices will be in the response.availableMicrophones
let microphones = res.availableMicrophones;
})
.catch((err) => {
console.log(err);
});The RecordingDeviceList type will return a list of RecordingDevice type, which has the following properties:
Name | Description | Type | Required/Optional |
|---|---|---|---|
deviceId | The deviceId of the recording device. | String | Required |
name | The name of the recording device as configured on the device properties. | String | Required |