Skip to content

feat(speech): add transcribe word level confidence samples for v1 - #10378

Merged
amcolin merged 1 commit into
GoogleCloudPlatform:mainfrom
amcolin:add-speech-transcribe-word-level-confidence-beta
Nov 10, 2026
Merged

amcolin merged 1 commit into
GoogleCloudPlatform:mainfrom
amcolin:add-speech-transcribe-word-level-confidence-beta

Conversation

@amcolin

@amcolin amcolin commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes Internal b/575165562

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.
  • Tests pass: mvn clean verify required
  • Lint passes: mvn -P lint checkstyle:check required
  • Static Analysis: mvn -P lint clean compile pmd:cpd-check spotbugs:check advisory only

Compliance & Style

  • I have followed Sample Format Guide
  • pom.xml parent set to latest shared-configuration
  • Appropriate changes to README are included in PR
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample

Post-Approval Actions

  • Please merge this PR for me once it is approved

@product-auto-label product-auto-label Bot added api: speech Issues related to the Speech-to-Text API. samples Issues that are directly related to samples. labels Nov 10, 2026

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

Copy link
Copy Markdown
Contributor

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 introduces support for transcribing audio files with word-level confidence. It adds a new command-line option word-level-confidence and implements two new methods, transcribeWordLevelConfidence for local files and transcribeWordLevelConfidenceGcs for files stored in Google Cloud Storage. Additionally, corresponding integration tests have been added to verify the new functionality. I have no feedback to provide as the implementation is clean and well-tested.

@amcolin
amcolin force-pushed the add-speech-transcribe-word-level-confidence-beta branch from 61bdf98 to 837da70 Compare November 10, 2026 20:42
@amcolin
amcolin force-pushed the add-speech-transcribe-word-level-confidence-beta branch from 837da70 to 9941180 Compare November 10, 2026 20:49

@angelcaamal angelcaamal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@XrossFox XrossFox left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@amcolin
amcolin marked this pull request as ready for review November 10, 2026 23:51
@amcolin
amcolin requested review from a team and yoshi-approver as code owners November 10, 2026 23:51
@snippet-bot

snippet-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@amcolin
amcolin merged commit b281f5b into GoogleCloudPlatform:main Nov 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: speech Issues related to the Speech-to-Text API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants