Debugged ElevenLabs STT; added debug-recording option

This commit is contained in:
James Babcock committed 2026-07-05 21:00:40 -07:00
1 parent 097d40efb2
commit 7fcab243a3
8 files changed
+34 -7

No files matched your search

+3 -1
View File
@@ -61,7 +61,9 @@ export class ElevenLabsSttClient {
});
try {
// The API key rides an xi-api-key header, added by FaceclawWebSocket.
this.ws = new com.faceclaw.app.FaceclawWebSocket(url, this.listenerProxy, "xi-api-key", this.options.apiKey);
const key = this.options.apiKey;
console.log(`[elevenlabs] connecting; apiKey length=${key.length} prefix=${key.slice(0, 4)}`);
this.ws = new com.faceclaw.app.FaceclawWebSocket(url, this.listenerProxy, "xi-api-key", key);
this.options.onStatus("Connecting to ElevenLabs...");
} catch (error) {
this.options.onError(`ElevenLabs connection failed: ${String((error as Error)?.message ?? error)}`);