muralipala1504 commited on
Commit
ef5846f
Β·
1 Parent(s): b33a738

docs: document TTS inline code fix (2026-06-15)

Browse files
Files changed (1) hide show
  1. CLAUDE.md +2 -0
CLAUDE.md CHANGED
@@ -139,6 +139,8 @@ curl -s -X POST https://deepshell.cloud/tts \
139
  - Slight delay vs EN β€” expected (translate β†’ Piper generate β†’ audio blob β†’ play)
140
  - βœ… Fixed (2026-06-05): Code blocks now stripped before sending to Piper β€” prose only
141
  - Fix: `app.js` β€” replaced backtick strip with full code block regex + inline code β†’ "code snippet"
 
 
142
 
143
  ## 🌐 Lang Dropdown Status (2026-06-05)
144
 
 
139
  - Slight delay vs EN β€” expected (translate β†’ Piper generate β†’ audio blob β†’ play)
140
  - βœ… Fixed (2026-06-05): Code blocks now stripped before sending to Piper β€” prose only
141
  - Fix: `app.js` β€” replaced backtick strip with full code block regex + inline code β†’ "code snippet"
142
+ - βœ… Fixed (2026-06-15): Inline code spans (`command`) in Trainer responses were being replaced with the spoken phrase "code snippet" β€” repeated 5-9x per response (once per inline backtick in "Breaking it down" / "Pro tip" sections), making EN/HI audio sound broken.
143
+ - Fix: `app.js:97` β€” changed `.replace(/`[^`]+`/g, "code snippet")` to `.replace(/`([^`]+)`/g, "$1")`, so TTS now speaks the actual command/text inside inline code instead of a placeholder. Fenced ```bash``` blocks remain fully stripped (line 96, unchanged).
144
 
145
  ## 🌐 Lang Dropdown Status (2026-06-05)
146