Create Sara - #1333
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds one empty line at the start of ChangesFormatting update
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This is a trivial, localized change with no identified merge-blocking risk; it is ready for normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Ha |
| https://firebase.google.com/docs/reference/unity#unity | | | | -- | -- | -- | -- | -- | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package com.example.myaiaassistant; | | | | | | | | import android.app.Activity; | | | | import android.os.Bundle; | | | | import android.speech.RecognizerIntent; | | | | import android.speech.tts.TextToSpeech; | | | | import android.content.Intent; | | | | import android.speech.SpeechRecognizer; | | | | import android.widget.Button; | | | | import android.widget.TextView; | | | | | | | | import java.util.ArrayList; | | | | import java.util.Locale; | | | | | | | | public class MainActivity extends Activity { | | | | | | | | Button btnSpeak; | | | | TextView txtAnswer; | | | | TextToSpeech textToSpeech; | | | | | | | | @OverRide | | | | protected void onCreate(Bundle savedInstanceState) { | | | | super.onCreate(savedInstanceState); | | | | setContentView(R.layout.activity_main); | | | | | | | | btnSpeak = findViewById(R.id.btnSpeak); | | | | txtAnswer = findViewById(R.id.txtAnswer); | | | | | | | | textToSpeech = new TextToSpeech(this, status -> { | | | | if (status == TextToSpeech.SUCCESS) { | | | | textToSpeech.setLanguage(new Locale("hi", "IN")); | | | | } | | | | }); | | | | | | | | btnSpeak.setOnClickListener(v -> startVoiceInput()); | | | | } | | | | | | | | private void startVoiceInput() { | | | | | | | | Intent intent = new Intent( | | | | RecognizerIntent.ACTION_RECOGNIZE_SPEECH | | | | ); | | | | | | | | intent.putExtra( | | | | RecognizerIntent.EXTRA_LANGUAGE_MODEL, | | | | RecognizerIntent.LANGUAGE_MODEL_FREE_FORM | | | | ); | | | | | | | | intent.putExtra( | | | | RecognizerIntent.EXTRA_LANGUAGE, | | | | hi-IN | | | | ); | | | | | | | | intent.putExtra( | | | | RecognizerIntent.EXTRA_PROMPT, | | | | बोलिए... | | | | ); | | | | | | | | startActivityForResult(intent, 100); | | | | } | | | | | | | | @OverRide | | | | protected void onActivityResult( | | | | int requestCode, | | | | int resultCode, | | | | Intent data) { | | | | | | | | super.onActivityResult( | | | | requestCode, | | | | resultCode, | | | | data | | | | ); | | | | | | | | if (requestCode == 100 && | | | | resultCode == RESULT_OK && | | | | data != null) { | | | | | | | | ArrayList result = | | | | data.getStringArrayListExtra( | | | | RecognizerIntent.EXTRA_RESULTS | | | | ); | | | | | | | | if (result != null && !result.isEmpty()) { | | | | | | | | String question = result.get(0); | | | | | | | | txtAnswer.setText( | | | | आपने कहा:\n + question | | | | ); | | | | | | | | speak( | | | | आपने कहा + question | | | | ); | | | | } | | | | } | | | | } | | | | | | | | private void speak(String text) { | | | | | | | | textToSpeech.speak( | | | | text, | | | | TextToSpeech.QUEUE_FLUSH, | | | | null, | | | | assistant | | | | ); | | | | } | | | | | | | | @OverRide | | | | protected void onDestroy() { | | | | | | | | if (textToSpeech != null) { | | | | textToSpeech.stop(); | | | | textToSpeech.shutdown(); | | | | } | | | | | | | | super.onDestroy(); | | | | } | | | | } | | | | | | | | | | | | | | | | | | | | | | | | | | | | Intent launchIntent = | | | | getPackageManager() | | | | .getLaunchIntentForPackage( | | | | com.google.android.youtube); | | | | | | | | if (launchIntent != null) { | | | | startActivity(launchIntent); | | | | } | | | | | | | | Intent launchIntent = | | | | getPackageManager() | | | | .getLaunchIntentForPackage( | | | | com.whatsapp); | | | | | | | | if (launchIntent != null) { | | | | startActivity(launchIntent); | | | | } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
s4152543-ai
left a comment
There was a problem hiding this comment.
Description
Type of Change
Changes Made
Compatibility / Package Source
#beta,#main, tag, branch, orfile:):Packages/packages-lock.json(if using a Git package URL):Testing/Screenshots/Recordings
cd Server && uv run pytest tests/ -v)Documentation Updates
tools/UPDATE_DOCS_PROMPT.md(recommended)Related Issues
Additional Notes
Summary by CodeRabbit