claude-phone-local 2.0.14 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-phone-local",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "Local/offline fork of NetworkChuck's claude-phone: talk to Claude Code over 3CX/SIP with faster-whisper STT + Piper TTS in one Docker container.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -193,7 +193,12 @@ async function playInterruptible(endpoint, session, url) {
|
|
|
193
193
|
session.once('barge-in', onBarge);
|
|
194
194
|
session.setBargeInEnabled(true);
|
|
195
195
|
try {
|
|
196
|
-
|
|
196
|
+
console.log('[' + new Date().toISOString() + '] PLAY (interruptible): ' + url);
|
|
197
|
+
const playResult = await endpoint.play(url);
|
|
198
|
+
console.log('[' + new Date().toISOString() + '] PLAY complete: ' + url + ' result=' + JSON.stringify(playResult));
|
|
199
|
+
} catch (playErr) {
|
|
200
|
+
console.log('[' + new Date().toISOString() + '] PLAY FAILED: ' + url + ' error=' + playErr.message);
|
|
201
|
+
throw playErr;
|
|
197
202
|
} finally {
|
|
198
203
|
session.setBargeInEnabled(false);
|
|
199
204
|
session.removeListener('barge-in', onBarge);
|
|
@@ -388,8 +393,10 @@ async function conversationLoop(endpoint, dialog, callUuid, options, deviceConfi
|
|
|
388
393
|
let round = 0;
|
|
389
394
|
while (waiting) {
|
|
390
395
|
round++;
|
|
396
|
+
const isSpeakRound = round % SPEAK_EVERY === 0;
|
|
397
|
+
console.log('[' + new Date().toISOString() + '] KEEPALIVE round ' + round + ': ' + (isSpeakRound ? 'speech' : 'hold music'));
|
|
391
398
|
try {
|
|
392
|
-
const clipUrl =
|
|
399
|
+
const clipUrl = isSpeakRound
|
|
393
400
|
? await ttsService.generateSpeech(getRandomWaitingPhrase(), turnVoice)
|
|
394
401
|
: HOLD_MUSIC_URL;
|
|
395
402
|
if (!waiting) break;
|