Skip to content

Create Sara - #1333

Open
s4152543-ai wants to merge 1 commit into
CoplayDev:betafrom
s4152543-ai:patch-3
Open

Create Sara#1333
s4152543-ai wants to merge 1 commit into
CoplayDev:betafrom
s4152543-ai:patch-3

Conversation

@s4152543-ai

@s4152543-ai s4152543-ai commented Aug 19, 2026

Copy link
Copy Markdown

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Test update

Changes Made

Compatibility / Package Source

  • Unity version(s) tested:
  • Package source used (#beta, #main, tag, branch, or file:):
  • Resolved commit hash from Packages/packages-lock.json (if using a Git package URL):

Testing/Screenshots/Recordings

  • Python tests (cd Server && uv run pytest tests/ -v)
  • Unity EditMode tests
  • Unity PlayMode tests
  • Package import/compile check
  • Not applicable (explain why in Additional Notes)

Documentation Updates

  • I have added/removed/modified tools or resources
  • If yes, I have updated all documentation files using:
    • The LLM prompt at tools/UPDATE_DOCS_PROMPT.md (recommended)
    • Manual review of the generated changes

Related Issues

Additional Notes

Summary by CodeRabbit

  • Style
    • Added spacing at the beginning of the Sara content for improved formatting.

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 34935854-84f3-4d46-8fe3-6b949a62fdeb

📥 Commits

Reviewing files that changed from the base of the PR and between c21bf49 and 20820e6.

📒 Files selected for processing (1)
  • Sara

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The change adds one empty line at the start of Sara.

Changes

Formatting update

Layer / File(s) Summary
Add leading blank line
Sara
Adds an empty first line to Sara.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 20820

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the template but omits the actual change and required compatibility, issue, and additional-note details. Describe the blank-line change, correct the change type, and complete or mark as not applicable the compatibility, issue, testing, and notes sections.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title refers to Sara, which is related to the change, but it does not describe the added blank line.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@s4152543-ai

Copy link
Copy Markdown
Author

Ha

@s4152543-ai

Copy link
Copy Markdown
Author
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 s4152543-ai left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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); | | | | } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

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