UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

116 lines 4.2 kB
/** * Providers that have a local Cognigy `Connection` backend (TTS+STT credentials * stored AND managed inside Cognigy.AI). The local `connections` map is keyed on * exactly these — adding a vendor here adds a persisted connection slot. */ export const localConnectionProviders = [ "microsoft", "google", "aws", "deepgram", "elevenlabs", "speechmatics", ]; /** * All vendors selectable in Voice-Gateway credential mode. Superset of * `localConnectionProviders`: the extra entries (ibm, nuance, openai, playht, * wellsaid, whisper, deepgramflux, soniox, verbio) are VG-only — they are listed * by the VG credential picker and the service-security listing proxy allowlist, * but never get a local `connections` slot (no Cognigy Connection backend exists * for them). Kept in sync with vg-core's `vendors` set, minus `nice` (the * NICE-shared-credentials path, handled via the isNiceProvided flag, not a * user-selectable custom-credential vendor). */ export const audioPreviewProviders = [ ...localConnectionProviders, "ibm", "nuance", "openai", "playht", "wellsaid", "whisper", "deepgramflux", "soniox", "verbio", ]; export const audioPreviewSettingsDataSchema = { title: "audioPreviewSettingsDataSchema", type: ["object", "null"], additionalProperties: false, properties: { provider: { type: ["string", "null"] }, isNiceProvided: { type: ["boolean", "null"] }, connections: { type: ["object", "null"], properties: { aws: { type: "object", properties: { connectionId: { type: ["string", "null"], format: "uuid" } } }, microsoft: { type: "object", properties: { connectionId: { type: ["string", "null"], format: "uuid" } } }, google: { type: "object", properties: { connectionId: { type: ["string", "null"], format: "uuid" } } }, deepgram: { type: "object", properties: { connectionId: { type: ["string", "null"], format: "uuid" } } }, elevenlabs: { type: "object", properties: { connectionId: { type: ["string", "null"], format: "uuid" } } }, speechmatics: { type: "object", properties: { connectionId: { type: ["string", "null"], format: "uuid" } } }, } }, credentialSource: { type: ["string", "null"], enum: ["local", "voiceGateway", null], }, voiceGatewayCredentials: { type: ["object", "null"], additionalProperties: false, properties: { recognizer: { type: ["object", "null"], additionalProperties: false, required: ["credentialSid", "vendor"], properties: { credentialSid: { type: "string" }, vendor: { type: "string", enum: [...audioPreviewProviders] }, label: { type: ["string", "null"] }, }, }, synthesizer: { type: ["object", "null"], additionalProperties: false, required: ["credentialSid", "vendor"], properties: { credentialSid: { type: "string" }, vendor: { type: "string", enum: [...audioPreviewProviders] }, label: { type: ["string", "null"] }, }, }, }, }, } }; //# sourceMappingURL=IAudioPreviewSettings.js.map