From d9924ca332b8140dea532854e4123382f16d1ef7 Mon Sep 17 00:00:00 2001 From: Lucas Proxmox Date: Fri, 9 Oct 2026 15:11:03 +0200 Subject: [PATCH] fix(voice): let long speech run about 5 minutes (0.35.1) Explanations and long reply summaries were cut after 3000 characters (about 3 minutes at 1.2x), ending them mid-thought. DS_VOICE_LONG_MAX is now 5000 characters. Co-Authored-By: Claude Opus 5.5 (1M context) --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- CHANGELOG.md | 7 +++++++ scripts/voice/lib.sh | 4 ++-- tests/voice/run.sh | 4 ++-- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index ccdca6d..171fd8c 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ { "name": "devscope", "description": "Real-time developer activity monitoring for Claude Code sessions", - "version": "0.35.0", + "version": "0.35.1", "author": { "name": "Lucas Dow", "email": "lucdow7@gmail.com" diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index d0507fa..7250413 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "devscope", - "version": "0.35.0", + "version": "0.35.1", "description": "Real-time developer activity monitoring for Claude Code sessions", "author": { "name": "Lucas Dow", diff --git a/CHANGELOG.md b/CHANGELOG.md index e31d36a..77a9e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.35.1] - 2026-10-09 + +### Changed +- **Long speech runs up to about 5 minutes.** Explanations and reply summaries + were cut after 3000 characters (about 3 minutes at 1.2x), which could end + them mid-thought; the limit is now 5000 characters (`DS_VOICE_LONG_MAX`). + ## [0.35.0] - 2026-10-08 ### Added diff --git a/scripts/voice/lib.sh b/scripts/voice/lib.sh index 08b85b0..83517ef 100755 --- a/scripts/voice/lib.sh +++ b/scripts/voice/lib.sh @@ -84,8 +84,8 @@ DS_VOICE_CHUNK_FIRST=200 DS_VOICE_CHUNK_MAX=400 # What one voice-audio request takes: text up to this length is never split. DS_VOICE_ONE_REQUEST=440 -# Longest text spoken at once (~3 minutes at 1.2x); the rest is cut. -DS_VOICE_LONG_MAX=3000 +# Longest text spoken at once (~5 minutes at 1.2x); the rest is cut. +DS_VOICE_LONG_MAX=5000 # How much of Claude's reply is sent for a summary (the server takes 4000). DS_VOICE_REPLY_HEAD=2800 DS_VOICE_REPLY_TAIL=1100 diff --git a/tests/voice/run.sh b/tests/voice/run.sh index f957de6..364112f 100644 --- a/tests/voice/run.sh +++ b/tests/voice/run.sh @@ -243,8 +243,8 @@ runon="Intro. $(for i in $(seq 1 60); do printf 'clause %s, ' "$i"; done)end." runon_pieces=$( . "$S/_helpers.sh"; . "$S/voice/lib.sh"; _ds_voice_chunks "$runon") [ "$(printf '%s\n' "$runon_pieces" | awk 'length > 400' | wc -l | tr -d ' ')" = 0 ] && \ [ "$(printf '%s\n' "$runon_pieces" | sed -n '2,$p' | sed '$d' | grep -vc ',$')" = 0 ] && ok "a long sentence is split at commas" || bad "comma split" "$runon_pieces" -huge=$(for i in $(seq 1 400); do printf 'word%s. ' "$i"; done) -[ "$( . "$S/_helpers.sh"; . "$S/voice/lib.sh"; _ds_voice_chunks "$huge" | wc -c | tr -d ' ')" -le 3500 ] && ok "long text is cut near 3000 characters" || bad "cap" "" +huge=$(for i in $(seq 1 800); do printf 'word%s. ' "$i"; done) +[ "$( . "$S/_helpers.sh"; . "$S/voice/lib.sh"; _ds_voice_chunks "$huge" | wc -c | tr -d ' ')" -le 5500 ] && ok "long text is cut near 5000 characters" || bad "cap" "" # 10e. Progress for the devscope-live bar: phase per piece, with its length. python3 -c 'import wave,sys; w=wave.open(sys.argv[1],"wb"); w.setnchannels(1); w.setsampwidth(2); w.setframerate(24000); w.writeframes(b"\0\0"*24000); w.close()' "$TMP/one-second.wav"