You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apps/mobile/DESIGN.md gives the composer a mic that becomes Send once there is text. The composer (#1715) has + and Send but no mic. Today voice works only through the keyboard's own dictation.
Smallest useful scope / 最小有用范围
First, decide between two approaches and record the decision in the PR:
On-device speech to text: a native speech recognition module fills the text field, and the Human edits it before sending. No Host change is needed, but it is a new native dependency, so the dev client must be rebuilt.
A voice message: record audio and send it as an attachment through the existing upload path. The Host and the Bot would need to transcribe it.
Included, whichever approach wins:
The mic button shows while the field is empty, with recording and listening states and a cancel.
Microphone and speech permission text in app.json.
Graceful refusal when permission is denied.
How to verify / 如何验收
Unit tests for the composer's state changes.
On a device build, dictate a sentence. It lands in the field (or as a sent voice message) and reaches the Bot.
PR screenshots of the mic, recording and denied states.
Activity
Dictate into the mobile DM composer with on-device speech recognition (…