Skip to content

mob.new: add ttsSpeak/ttsStop to MobBridge.kt template#17

Merged
GenericJam merged 2 commits into
masterfrom
tts-capability
May 27, 2026
Merged

mob.new: add ttsSpeak/ttsStop to MobBridge.kt template#17
GenericJam merged 2 commits into
masterfrom
tts-capability

Conversation

@GenericJam
Copy link
Copy Markdown
Owner

Summary

  • Generated apps' MobBridge.kt gains ttsSpeak(text, optsJson) + ttsStop() — the Android side of mob's Mob.Speech TTS. Uses TextToSpeech with an async-init queue (init is async; the first utterance is held until onInit), opts (rate/pitch/voice) via org.json.JSONObject.
  • Backs the mob tts_speak/tts_stop NIFs (mob PR #34).

Test plan

  • Generator test added: MobBridge.kt declares ttsSpeak/ttsStop (mirrors existing MobBridge assertions)
  • mix test272 tests, 0 failures (the 2 @tag :integration tests need mob discoverable via MOB_DIR/../mob, as in CI)
  • Device-verified on Android: a generated app reads a sentence from a text file and speaks it audibly through this bridge method (full path Mob.Speech.speak → NIF → Zig → MobBridge.ttsSpeakTextToSpeech).

🤖 Generated with Claude Code

GenericJam and others added 2 commits May 27, 2026 00:28
Generated apps' MobBridge.kt gains ttsSpeak(text, optsJson) + ttsStop() backing
mob's Mob.Speech NIFs — Android TextToSpeech with an async-init queue, opts via
org.json.JSONObject. Pairs with mob's tts_speak/tts_stop (mob PR #34).

Device-verified end-to-end on Android: a generated app reads a text file and
speaks it audibly via this bridge method.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Generator test for the TTS bridge methods (mirrors the existing MobBridge.kt
assertions), so the Android text-to-speech surface is covered.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@GenericJam GenericJam merged commit e3f1253 into master May 27, 2026
3 checks passed
@GenericJam GenericJam deleted the tts-capability branch May 27, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant