This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.
Sound
•
A local speech recognizer may still need a language download.
speechRecognitionStatus.local describes the engine, not its installed
languages. Gate recognition on speechRecognitionAvailability and offer
installSpeechRecognition when it answers downloadable. Recorder hid
Download behind not speech.local on an iPhone whose en_KR model was
missing. Refresh availability after installation. (LLP 1133.020.)
•
An audio player is silent in iPhone Silent mode. The default audio
session is ambient. An app whose purpose includes media playback should
set "audio_session": "playback" in app.json, as Recorder does. For sound
over another app's audio, "playback-mix" also ignores the switch on iOS and
tvOS while mixing without ducking. On the web, page initialization applies
ambient and playback as given and maps playback-mix to ambient, which
obeys the switch in WebKit. This also applies to pages with only video,
audio or GPU audio, where the Audio Session API exists. Raising the media
volume alone does not override Silent mode. (LLP 1096 D8.)
•
A scheduled sound plays after Stop. A sequencer that schedules each step
ahead (playSounds(…) with a future at=) keeps sounding the hits already
scheduled for a beat after the Stop press. Cause: a voice is the runner's once
its commit stands; a state change does not unschedule it. Fix: call
stopSounds() (or stopSounds(group=…)) in the stop action: it stops what
sounds and cancels what waits (by cancelled). (Drums adoption, LLP 1096 D13.)
•
The first sound on the web is silent. A sound a page plays on load, or
from a timer before anyone has pressed anything, is dropped and journaled
sound blocked: the page has had no user activation. Cause: browsers start
audio only after a user activation. Fix: start sound from a press (its own
commit plays), or accept that a timer's sounds begin after the first tap or
key. Native hosts have no such rule. (Trivia F5; LLP 1096 D7.)
•
A sequence's first hit is late when the first timer tick plays it. A
gated or new every(25, tick) first fires 25 ms after it starts, so a downbeat
left to the tick is 25 ms late. Fix: schedule the first window from the press
itself (playSounds(hitsBetween(song, performanceNow(), performanceNow() + 100)) in the start
action), then each tick the next ([scheduledTo, performanceNow() + 100)). (Drums; LLP
1096 D3.)
Is this helpful
Last updated December 1, 2026