Skip to content

feat: ✨ enable input transcription and send as user event - #495

Closed
BloodBoy21 wants to merge 17 commits into
google:mainfrom
BloodBoy21:main
Closed

BloodBoy21 wants to merge 17 commits into
google:mainfrom
BloodBoy21:main

Conversation

@BloodBoy21

Copy link
Copy Markdown
Contributor

This pull request introduces several updates related to transcription handling, dependency upgrades, and codebase improvements for consistency and maintainability. The most significant changes include adding support for input audio transcription, updating the google-genai dependency, and refactoring string formatting for consistency across the codebase.

New Features and Enhancements:

  • Added input_audio_transcription to RunConfig and updated the run_async method to handle this configuration for live agents with audio input. (src/google/adk/agents/run_config.py, src/google/adk/flows/llm_flows/basic.py) [1] [2]

Dependency Updates:

  • Upgraded the google-genai dependency from version 1.11.0 to 1.12.1 in pyproject.toml. (pyproject.toml)

Codebase Consistency:

  • Refactored string formatting throughout the codebase to use double quotes for improved consistency and readability. This includes changes in gemini_llm_connection.py, google_llm.py, and other files. [1] [2] [3]

Model and Configuration Updates:

  • Updated the default Gemini model to gemini-2.0-flash-live-preview-04-09 and adjusted related configurations in the google_llm.py file. (src/google/adk/models/google_llm.py)

@google-cla

google-cla Bot commented May 1, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@BloodBoy21 BloodBoy21 changed the title Enable input transcription and get user event feat: ✨ enable input transcription and send as user event May 1, 2025
@AlankritVerma01

Copy link
Copy Markdown
Contributor

Hey @BloodBoy21
Thanks for the PR!
I believe you changed a lot of formatting of the files, which now is not consistent with the formatting of the repo.
Please revert those changes and only change the part which is necessary.
Thanks!

@BloodBoy21

Copy link
Copy Markdown
Contributor Author

Hey @BloodBoy21 Thanks for the PR! I believe you changed a lot of formatting of the files, which now is not consistent with the formatting of the repo. Please revert those changes and only change the part which is necessary. Thanks!

Sure, done!

@hangfei
hangfei self-requested a review May 3, 2025 00:11
@hangfei

hangfei commented May 3, 2025

Copy link
Copy Markdown
Collaborator

@BloodBoy21 thanks for the contribution.

I made a few changes:

  1. set the author to "user" for transcription.
  2. remove the api version change. Could you help put up a new PR for it? (one thing for one CL.)

Could you help update the documentation in adk-docs or create an issue so others can contribute?

@BloodBoy21

Copy link
Copy Markdown
Contributor Author

@BloodBoy21 thanks for the contribution.

I made a few changes:

  1. set the author to "user" for transcription.
  2. remove the api version change. Could you help put up a new PR for it? (one thing for one CL.)

Could you help update the documentation in adk-docs or create an issue so others can contribute?

Hello @hangfei sure, i will write another PR for the api version and then update the doc

@Jacksunwei
Jacksunwei self-requested a review May 6, 2025 16:02
@hangfei hangfei added the ready to pull [Status] This PR is ready to be imported back to Google label May 6, 2025
copybara-service Bot pushed a commit that referenced this pull request May 6, 2025
Copybara import of the project:

--
d481e06 by Alan B <[email protected]>:

feat: 🚧 catch user transcription

--
bba436b by Alan B <[email protected]>:

feat: ✨ send user transcription event as llm_response

--
ad2abf5 by Alan B <[email protected]>:

style: 💄 update lint problems

--
744703c by Hangfei Lin <[email protected]>:

fix: set right order for input transcription

--
31a5d42 by Hangfei Lin <[email protected]>:

remove print

--
59e5d9c by Hangfei Lin <[email protected]>:

remove api version

COPYBARA_INTEGRATE_REVIEW=#495 from BloodBoy21:main ea29015
PiperOrigin-RevId: 755401615
@hangfei hangfei closed this May 6, 2025
@hangfei

hangfei commented May 6, 2025

Copy link
Copy Markdown
Collaborator

It's in : fcca0af

coder-aditi pushed a commit to coder-aditi/adk-python that referenced this pull request Jul 2, 2025
Copybara import of the project:

--
d481e06 by Alan B <[email protected]>:

feat: 🚧 catch user transcription

--
bba436b by Alan B <[email protected]>:

feat: ✨ send user transcription event as llm_response

--
ad2abf5 by Alan B <[email protected]>:

style: 💄 update lint problems

--
744703c by Hangfei Lin <[email protected]>:

fix: set right order for input transcription

--
31a5d42 by Hangfei Lin <[email protected]>:

remove print

--
59e5d9c by Hangfei Lin <[email protected]>:

remove api version

COPYBARA_INTEGRATE_REVIEW=google#495 from BloodBoy21:main ea29015
PiperOrigin-RevId: 755401615
FrigaZzz pushed a commit to FrigaZzz/adk-python that referenced this pull request Aug 11, 2026
Copybara import of the project:

--
d481e06 by Alan B <[email protected]>:

feat: 🚧 catch user transcription

--
bba436b by Alan B <[email protected]>:

feat: ✨ send user transcription event as llm_response

--
ad2abf5 by Alan B <[email protected]>:

style: 💄 update lint problems

--
744703c by Hangfei Lin <[email protected]>:

fix: set right order for input transcription

--
31a5d42 by Hangfei Lin <[email protected]>:

remove print

--
59e5d9c by Hangfei Lin <[email protected]>:

remove api version

COPYBARA_INTEGRATE_REVIEW=google#495 from BloodBoy21:main ea29015
PiperOrigin-RevId: 755401615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull [Status] This PR is ready to be imported back to Google

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants