Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ class Endpoint extends EventEmitter {
* speaks fixed-rate pcm independent of the endpoint codec); assemblyai
* passes host/path/apiKey with no authType slot; google passes apiKey
* first then optional host/path (key rides a ?key= query param). openai,
* xai, qwen and gptlive all use the default mapping below
* xai, qwen, gptlive and voicelive all use the default mapping below
* (host, path, authType, apiKey). */
const s2 = /^uuid_(openai|voice_agent|ultravox|elevenlabs|assemblyai|google|xai|qwen|gptlive)_s2s$/.exec(command);
const s2 = /^uuid_(openai|voice_agent|ultravox|elevenlabs|assemblyai|google|xai|qwen|gptlive|voicelive)_s2s$/
.exec(command);
if (s2) {
const vendor = s2[1];
const raw = Array.isArray(args) ? args.join('|') : String(args || '');
Expand Down Expand Up @@ -278,6 +279,14 @@ class Endpoint extends EventEmitter {
await this._request('s2s.start', {
vendor, host: parts[2], path: parts[3], authType: parts[4], apiKey: parts[5]
});
} else if (vendor === 'voicelive') {
/* azure voice live (own branch): args host, path, authType, apiKey
* (host=<resource>.services.ai.azure.com,
* path=voice-live/realtime?api-version=...&model=...,
* authType=query for api-key or bearer for an Entra token) */
await this._request('s2s.start', {
vendor, host: parts[2], path: parts[3], authType: parts[4], apiKey: parts[5]
});
} else {
await this._request('s2s.start', {
vendor, host: parts[2], path: parts[3], authType: parts[4], apiKey: parts[5]
Expand Down
Loading