[codex] Add iOS contextual strings fallback docs#9
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds optional ChangesiOS Contextual Strings and Fallback Support
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/definitions.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin " (The package " It's likely that the plugin isn't installed correctly. Try reinstalling by running the following: The plugin " If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. Comment |
Beta npm buildMaintainers can publish this PR to npm for fast testing. Comment The workflow will:
Security note: beta publish is only enabled for branches inside this repository. |
09e1c73 to
18dc18c
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
What
contextualStringstoSpeechRecognitionStartOptions.contextualStringsinto the iOSSFSpeechRecognizerrequest path.SFSpeechRecognizerremains the default, older iOS versions use it, anduseOnDeviceRecognitiononly opts intoSpeechAnalyzerwhen supported.cap addwhen the example app already includes native projects.Why
SFSpeechRecognizerpath.How
contextualStringsvalues from the Capacitor call.SFSpeechAudioBufferRecognitionRequest.contextualStringsbefore starting the legacy recognition task.cap syncfor existing example platforms andcap addonly when the platform directory is missing.Testing
bun run fmtJAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home ANDROID_HOME=/Users/martindonadieu/Library/Android/sdk ANDROID_SDK_ROOT=/Users/martindonadieu/Library/Android/sdk bun run lintJAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home ANDROID_HOME=/Users/martindonadieu/Library/Android/sdk ANDROID_SDK_ROOT=/Users/martindonadieu/Library/Android/sdk bun run verifybun run check:wiringbash .github/scripts/verify-packed-example.sh webJAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home ANDROID_HOME=/Users/martindonadieu/Library/Android/sdk ANDROID_SDK_ROOT=/Users/martindonadieu/Library/Android/sdk bash .github/scripts/verify-packed-example.sh androidbash .github/scripts/verify-packed-example.sh iosNot Tested
contextualStringsvocabulary on device.Summary by CodeRabbit
New Features
contextualStringsoption to provide contextual phrases that bias speech recognition results on iOSDocumentation
SFSpeechRecognizerwhen on-device recognition is unavailablecontextualStringsoption with platform-specific behavior details