MCPcopy
hub / github.com/mudler/LocalAI / sendTestTone

Function sendTestTone

core/http/static/talk.js:368–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366}
367
368function sendTestTone() {
369 if (!dc || dc.readyState !== 'open') {
370 console.warn('Data channel not open');
371 return;
372 }
373 console.log('[test-tone] Requesting server test tone...');
374 dc.send(JSON.stringify({ type: 'test_tone' }));
375 addTranscript('assistant', '(Test tone requested — you should hear a 440 Hz beep)');
376}
377
378function disconnect() {
379 stopDiagnostics();

Callers

nothing calls this directly

Calls 5

addTranscriptFunction · 0.85
warnMethod · 0.80
stringifyMethod · 0.80
logMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected