Repository navigation
feat(tv): bring back the voice search button on Android TV search - #830
Conversation
TV users could only search by voice through a keyboard mic key, so anyone whose TV keyboard lacks one had no voice search in Silo. The remote's own mic button goes to the system assistant before any app sees it, so an on-screen button is the only entry point an app can offer. Restore the mic removed in #286, recogniser selection included, and place it right of the field so the field stays on the page gutter. Right walks field, mic, clear; the mic is hidden when no recogniser is installed. Silo hands listening to the system recogniser and still needs no RECORD_AUDIO. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 35 minutes. View limit details
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Evidence is missing:
Phone, tablet, and foldables are correctly excluded because the changed code is in the TV app. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
…uery A spoken query is set and submitted at once, so the query-change effect started while that request search was in flight and, past its 300 ms delay, cancelled and restarted it. Treat a search loading for the same query and media type as answered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The evidence placeholder was replaced after this check ran. The PR body now links https://evidence.siloserver.org/r/silo-android/pr-830/, which has before/after captures of the same TV search screen with and without a query, the recogniser opening, and the mic hidden when no recogniser is present. 🤖 Claude Code (claude-opus-5-5) |
Audit the upstream voice helper, result/submission callback, activity, ViewModel and manifest against PR Silo-Server#830: no omitted upstream voice code or permission was found. The reported Shield session still returned no text; its runtime cause remains unconfirmed. Restore the prior speech controller, overlay, permission flow and eight session tests. Retain upstream in-flight request-search deduplication. Reactivate tv-voice and defer the activity-based replacement until an official build is confirmed to complete a spoken search on the affected device. Validation: all 1,434 TV host tests, full TV release lint and release Kotlin compilation passed. Physical-device capture/result return remains unverified.
Restore the prior speech controller, overlay, permission flow and eight session tests. Retain upstream in-flight request-search deduplication. Reactivate tv-voice and defer the activity-based replacement until an official build is confirmed to complete a spoken search on the affected device. Source and packaged-manifest comparison against PR Silo-Server#830 found no omitted upstream voice code or permission. Follow-up device testing by Matt reproduced the missing search text on an onn 4K Pro running Android 14 with unchanged upstream source at f13a265. Matt reports that the microphone works in other apps and with the prior Silora implementation. The failure therefore reproduces without Silora patches; it is not dependent on our merge or keyboard integration. The exact recognizer/provider failure has not been traced. Original validation: all 1,434 TV host tests, full TV release lint and release Kotlin compilation passed. The restored controller, overlay and session tests match the prior implementation byte for byte. Matt's working-device report covers that prior implementation; the final rebuilt restoration still needs its own device check.
Problem
Related issue: N/A
Validation tasks: none
Users report that voice search on Android TV only works through Gboard. Silo's TV search has no mic of its own: it relies on the keyboard's mic key, so a TV whose keyboard has no mic key gets no voice search in Silo. The remote's mic button can't fill the gap, because Android TV sends it to the system assistant before any app sees it.
Approach
Restore the on-screen mic removed in #286 (originally added in 07df233, with the Google TV Streamer recogniser fix from 9c9c869). Selecting it opens the system speech recogniser with a "Speak a title" prompt, and the recognised text is submitted like a typed query, with focus moving to the results.
#286 removed the mic partly because it sat left of the field and pushed the field off the page gutter. It now sits to the right, so the field stays in line with the chips and cards. The row reads field, mic, clear. Right from the field focuses the mic, Left walks back, and Down from the mic goes to the filter chips. The mic is hidden when the device has no recogniser.
Silo still never records audio: the system recogniser listens, so no
RECORD_AUDIOpermission is needed. The manifest gets back the<queries>entry that lets Android 11+ see the recogniser. The typed and spoken paths now share one submit function. TV-only; the phone search bar already has a mic.Validation
:androidTvApp:assembleDebugbuilds;:androidTvApp:testDebugUnitTestpasses.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-830/
Surface and build: Android TV debug builds of
main(before) and this branch (after) on the same emulator, server, and query. Phone, tablet, and foldable are unaffected: the change is in the TV app only.Risks
This reverses the product call in #286 and #181, which removed the TV mic. On a TV whose keyboard has a mic key there are now two ways to start voice search.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add voice search button to Android TV search screen
TvVoiceSearchControllerandrememberTvVoiceSearchin TvVoiceSearch.kt, which launch a speech-recognition activity and return the first non-empty recognized result. Recognizer availability is checked via the package manager; with multiple recognizers, the configured voice-interaction or assistant package is preferred.SearchStageand shows a message when voice search cannot start.Macroscope summarized b37c2db.