UNPKG

speech-to-element

Version:

Add real-time speech to text functionality into your website with no effort

13 lines (12 loc) 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AzureAudioConfig = void 0; class AzureAudioConfig { static get(sdkConfigType, deviceId) { if (deviceId) { return sdkConfigType.fromMicrophoneInput(deviceId); } return sdkConfigType.fromDefaultMicrophoneInput(); } } exports.AzureAudioConfig = AzureAudioConfig;