spanification: automatically spanify .../speech/endpointer/endpointer_unittest.cc etc. [chromium/src : main]

0 views
Skip to first unread message

Evan Liu (Gerrit)

unread,
Jan 13, 2026, 8:20:35 PM (7 hours ago) Jan 13
to Bryan Enrique Gonzalez, Stephen Nusko, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres, Sergio Solano and Stephen Nusko

Evan Liu added 4 comments

File chrome/services/speech/soda_speech_recognizer_impl.cc
Line 229, Patchset 6 (Latest): CHECK_EQ(event_args.audio_data->data.size(),
static_cast<size_t>(event_args.audio_data->frame_count));
Evan Liu . unresolved

Is this always guaranteed to be true? What about for multi-channel audio?

File components/speech/audio_buffer.cc
Line 51, Patchset 6 (Latest):const int16_t* AudioChunk::SamplesData16() const {
Evan Liu . unresolved

Is this still used?

Line 57, Patchset 6 (Latest): // The only concern would be if the length is not multiple of sizeof(int16_t)
Evan Liu . unresolved

Is this a concern?

File components/speech/endpointer/endpointer.cc
Line 28, Patchset 6 (Latest): CHECK_GE(frame_size_, 0);
Evan Liu . unresolved

If sample_rate is low or kFrameRate is high, frame_size_ could truncate to 0

Open in Gerrit

Related details

Attention is currently required from:
  • Bryan Enrique Gonzalez
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Stephen Nusko
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I33b627b0ba4dc40e3f6dd3c69d3c80752ac33550
Gerrit-Change-Number: 7455508
Gerrit-PatchSet: 6
Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Daniel Angulo <angd...@google.com>
Gerrit-Reviewer: Evan Liu <ev...@google.com>
Gerrit-Reviewer: Roberto Torres <jr...@google.com>
Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Attention: Daniel Angulo <angd...@google.com>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Attention: Roberto Torres <jr...@google.com>
Gerrit-Comment-Date: Wed, 14 Jan 2026 01:20:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Evan Liu (Gerrit)

unread,
Jan 13, 2026, 8:29:58 PM (7 hours ago) Jan 13
to Bryan Enrique Gonzalez, Stephen Nusko, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres, Sergio Solano and Stephen Nusko

Evan Liu added 1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Evan Liu . resolved

FYI, you technically only need to add one OWNER as a reviewer for each of the files that you change in your CL. If you're collaborating with someone and want them to be aware of your change but you don't necessarily need them to review it, you can add them to the CC line.

https://chromium.googlesource.com/chromium/src/+/main/docs/code_reviews.md

Gerrit-Comment-Date: Wed, 14 Jan 2026 01:29:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Stephen Nusko (Gerrit)

unread,
12:39 AM (3 hours ago) 12:39 AM
to Bryan Enrique Gonzalez, Evan Liu, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres and Sergio Solano

Stephen Nusko voted and added 2 comments

Votes added by Stephen Nusko

Code-Review+1

2 comments

File chrome/services/speech/soda_speech_recognizer_impl.cc
Line 229, Patchset 6 (Latest): CHECK_EQ(event_args.audio_data->data.size(),
static_cast<size_t>(event_args.audio_data->frame_count));
Evan Liu . unresolved

Is this always guaranteed to be true? What about for multi-channel audio?

Stephen Nusko

Just chiming in here Bryan,

if you don't know you have three routes available.

1) Keep the behaviour using `event_args.audio_data->data.first(frame_count)` and don't add the CHECK
2) Research and determine if all cases are indeed equal in which case add this CHECK
3) If you aren't sure you can keep the behaviour by adding `first()` and then adding a CHECK that also passes NotFatal for a couple milestones to let it roll out and verify if you get any crash reports. Then after a couple milestones you can upgrade it to a full CHECK and remove the `first()` for readability.

File components/speech/audio_buffer.cc
Line 57, Patchset 6 (Latest): // The only concern would be if the length is not multiple of sizeof(int16_t)
Evan Liu . unresolved

Is this a concern?

Stephen Nusko
I think perhaps it should say
```
// The only concern would be if the length is not multiple of sizeof(int16_t), which we CHECK below.
```

? because yeah this isn't a concern at all given we've verified that this is the case.

Open in Gerrit

Related details

Attention is currently required from:
  • Bryan Enrique Gonzalez
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I33b627b0ba4dc40e3f6dd3c69d3c80752ac33550
    Gerrit-Change-Number: 7455508
    Gerrit-PatchSet: 6
    Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Reviewer: Daniel Angulo <angd...@google.com>
    Gerrit-Reviewer: Evan Liu <ev...@google.com>
    Gerrit-Reviewer: Roberto Torres <jr...@google.com>
    Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Attention: Daniel Angulo <angd...@google.com>
    Gerrit-Attention: Sergio Solano <sergio...@google.com>
    Gerrit-Attention: Roberto Torres <jr...@google.com>
    Gerrit-Comment-Date: Wed, 14 Jan 2026 05:39:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Evan Liu <ev...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages