Skip to content

Add input/output transcription to live audio example#10

Open
makelinux wants to merge 1 commit intogoogle-gemini:mainfrom
makelinux:add-transcription
Open

Add input/output transcription to live audio example#10
makelinux wants to merge 1 commit intogoogle-gemini:mainfrom
makelinux:add-transcription

Conversation

@makelinux
Copy link
Copy Markdown

Summary

  • Enable text transcription alongside audio streaming
  • Output transcription prints inline with newlines after sentence-ending punctuation
  • Input transcription printed in italic for visual separation

Test plan

  • Run command-line/python/main.py and verify transcription text appears
  • Verify output transcription is normal text, input is italic
  • Verify newlines appear between input/output and after .!?

🤖 Generated with Claude Code

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 16, 2026

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.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for input and output audio transcriptions in the command-line Python client. The CONFIG is updated to enable these features, and the receive_audio function now processes transcription data from the server, printing it to the console with specific formatting. Feedback was provided to ensure consistent newline handling for input transcriptions, matching the logic used for output transcriptions.

Comment thread command-line/python/main.py Outdated
@makelinux makelinux force-pushed the add-transcription branch 3 times, most recently from 6683121 to bb8be10 Compare April 16, 2026 22:09
@makelinux makelinux marked this pull request as draft April 17, 2026 19:45
@makelinux makelinux marked this pull request as ready for review April 17, 2026 19:46
@makelinux makelinux force-pushed the add-transcription branch 2 times, most recently from 9f2a676 to 0834187 Compare April 17, 2026 20:03
Enable text transcription alongside audio streaming.
Output transcription prints inline, input transcription
in italic. Newlines separate input from output and after
sentence-ending punctuation.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
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