Skip to content

Fix typos in the project - #3293

Merged
csukuangfj merged 4 commits into
k2-fsa:masterfrom
csukuangfj:fix-typos
Mar 12, 2026
Merged

csukuangfj merged 4 commits into
k2-fsa:masterfrom
csukuangfj:fix-typos

Conversation

@csukuangfj

@csukuangfj csukuangfj commented Mar 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Bug Fixes

    • Corrected spelling errors in error messages and user-facing text
    • Improved error handling in offline recognition functionality
  • Documentation

    • Fixed typos and grammar errors throughout code comments and docstrings
  • Tests

    • Corrected test suite naming for accuracy

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 12, 2026
@coderabbitai

coderabbitai Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d08ae6bb-5e45-4833-9476-a8f392efea2d

📥 Commits

Reviewing files that changed from the base of the PR and between d9fbecc and cc6e4bd.

📒 Files selected for processing (2)
  • cmake/onnxruntime.cmake
  • sherpa-onnx/csrc/features.h

📝 Walkthrough

Walkthrough

This PR systematically corrects typos and spelling errors across the codebase, including docstrings, user-facing error messages, comments, and string literals. Changes span multiple language implementations (C, C++, Java, Kotlin, Lazarus, Python, JavaScript) and core library files with minimal functional impact beyond string corrections.

Changes

Cohort / File(s) Summary
CHANGELOG & Documentation
CHANGELOG.md, sherpa-onnx/pascal-api/portaudio.pas
Corrected product names (OfflineRecongizer → OfflineRecognizer, HarmonyOs → HarmonyOS, etc.) and multiple spelling errors in documentation comments and descriptions.
C API Examples
c-api-examples/...
Fixed spelling errors in error messages ("occured" → "occurred") and comments ("Remeber" → "Remember") across multiple example files.
CMake Configuration
cmake/onnxruntime-linux-x86_64-gpu.cmake, cmake/onnxruntime.cmake
Corrected typos in comments and error messages ("Requres" → "Requires", "Unsupport" → "Unsupported", fixed variable reference).
Higher-Level Language Examples
java-api-examples/src/websocketsrv/AsrWebsocketServer.java, kotlin-api-examples/test_online_asr.kt, python-api-examples/spoken-language-identification.py, python-api-examples/web/js/*
Fixed comment and docstring typos ("recogizer" → "recognizer", "dowload" → "download", "languge" → "language", "occured" → "occurred").
Lazarus Application Examples
lazarus-examples/generate_subtitles/my_init.pas, lazarus-examples/generate_subtitles/unit1.pas
Corrected user-facing strings ("donwload" → "download", "succesfully" → "successfully") and fixed string-comparison condition that affects UI control flow.
Core Library Headers & Implementation
sherpa-onnx/csrc/features.h, sherpa-onnx/csrc/hypothesis.h, sherpa-onnx/csrc/online-conformer-transducer-model.h, sherpa-onnx/csrc/offline-ctc-model.cc, sherpa-onnx/csrc/offline-websocket-server-impl.cc, sherpa-onnx/csrc/online-recognizer-impl.cc, sherpa-onnx/csrc/session.cc, sherpa-onnx/csrc/utils.h
Corrected spelling in comments and error messages ("actuall" → "actual", "mofified" → "modified", "metadta" → "metadata", "recongizer" → "recognizer", "ony" → "only", "fasle" → "false", "suported" → "supported").
C++ Ascend Backend
sherpa-onnx/csrc/ascend/offline-whisper-model-ascend.cc
Fixed comment typo ("intialize" → "initialize").
Test Files
sherpa-onnx/csrc/transpose-test.cc
Corrected test suite name from "Tranpose" to "Transpose" in Google Test macros.
Python API & Scripts
sherpa-onnx/python/sherpa_onnx/cli.py, sherpa-onnx/python/sherpa_onnx/online_recognizer.py, sherpa-onnx/python/sherpa_onnx/utils.py, scripts/node-addon-api/lib/addon.js, scripts/paraformer/rknn/torch_model.py, scripts/sense-voice/rknn/torch_model.py, scripts/spleeter/convert_to_pb.py, scripts/text2token.py
Fixed typos in docstrings, comments, and error messages ("startting" → "starting", "remeber" → "remember", "dimenstion" → "dimension", "usefull" → "useful", "charater" → "character", "estiamation" → "estimation").
WASM Applications
wasm/asr/app-asr.js, wasm/kws/app.js, wasm/vad-asr/app-vad-asr.js, wasm/vad/app-vad.js
Corrected user-facing error and status messages ("recongizer" → "recognizer", "occured" → "occurred").

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Possibly related PRs

Poem

🐰 A rabbit hopped through typos galore,
With occurred and recognize and much more,
Fixed each misspelled word with care,
The codebase now clean, beyond compare! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix typos in the project' accurately summarizes the main objective of the changeset, which comprehensively addresses typo corrections across numerous files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the overall quality and professionalism of the project by meticulously correcting a wide array of typographical errors. The changes span across documentation, source code in multiple languages, build scripts, and web interfaces, ensuring consistency and improving clarity for both developers and users. This cleanup effort contributes to a more polished and reliable codebase.

Highlights

  • Documentation Clarity: Corrected numerous spelling errors and inconsistencies across the CHANGELOG.md file, improving the accuracy of release notes and feature descriptions. Key corrections include 'blinding' to 'binding', 'Recongizer' to 'Recognizer', 'pronounciation' to 'pronunciation', 'MatchTTS' to 'MatchaTTS', and 'HarmonyOs' to 'HarmonyOS'.
  • Code Readability: Addressed typos in comments, variable names, and string literals within C, C++, Java, Kotlin, Python, and Pascal source files, enhancing code readability and maintainability. Examples include 'occured' to 'occurred', 'remeber' to 'remember', 'dimenstion' to 'dimension', and 'suported' to 'supported'.
  • Build System and Script Accuracy: Fixed spelling mistakes in CMake scripts and Python utility scripts, such as 'Requres' to 'Requires', 'Unsupport' to 'Unsupported', and 'startting' to 'starting', ensuring correct execution and clearer messaging.
  • Web Interface Consistency: Standardized terminology in JavaScript files for web-based applications, changing 'recongizer' to 'recognizer' and 'occured' to 'occurred' for a more professional user experience.
Changelog
  • CHANGELOG.md
    • Corrected 'blinding' to 'binding' for Dart, Flutter, Go, C-API entries.
    • Fixed 'OfflineRecongizer' to 'OfflineRecognizer' in JavaScript async API entry.
    • Updated 'pronounciation' to 'pronunciation' for MeloTTS fix.
    • Changed 'MatchTTS' to 'MatchaTTS' for English and Chinese support.
    • Corrected 'identifcation' to 'identification' in Dart CI tests entry.
    • Fixed 'languge' to 'language' in various language bindings entry.
    • Updated 'HarmonyOs' to 'HarmonyOS' in log messages entry.
    • Changed 'Xipformer' to 'Zipformer' for CTC ASR support.
    • Corrected 'toghter' to 'together' in online-transducer reset entry.
    • Fixed 'homonphonic' to 'homophonic' in phrases replacement entry.
    • Updated 'identfication' to 'identification' in speaker identification demo entry.
    • Changed 'tex-to-speech' to 'text-to-speech' in HarmonyOS TTS demo entry.
    • Corrected 'exmaple' to 'example' for WebAssembly and Dart API entries.
    • Fixed 'driectly' to 'directly' for loading tokens and hotwords.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@csukuangfj
csukuangfj requested a review from Copilot March 12, 2026 02:57

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

Copy link
Copy Markdown

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 addresses numerous typos throughout the project, and the majority of the fixes are accurate. However, I've identified a couple of incorrect changes in scripts/supertonic/gen_calib_configs.py where French words were mistakenly 'corrected' to their English equivalents. Please see the detailed comments for specifics.

Comment thread scripts/supertonic/gen_calib_configs.py Outdated
Comment thread scripts/supertonic/gen_calib_configs.py Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
sherpa-onnx/csrc/utils.h (2)

35-53: ⚠️ Potential issue | 🟡 Minor

This keyword doc still says “hotword.”

In the EncodeKeywords comment, Lines 37-38 still describe the input as “one hotword for each line.” That looks like a leftover typo and could confuse users reading the header docs.

Suggested doc fix
- * `@param` is The input stream, it contains several lines, one hotword for each
+ * `@param` is The input stream, it contains several lines, one keyword for each
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@sherpa-onnx/csrc/utils.h` around lines 35 - 53, The comment for
EncodeKeywords uses the outdated term "hotword" and should be changed to
"keyword"; update the description lines that read "one hotword for each line" to
"one keyword per line" (and scan the EncodeKeywords comment block in utils.h for
any other "hotword" occurrences to replace), keeping the rest of the parameter
explanations unchanged so the docs correctly refer to keywords instead of
hotwords.

15-33: ⚠️ Potential issue | 🟡 Minor

There’s still a doc typo in this comment block.

Line 24 still uses @@param hotwords, which looks malformed and no longer matches the actual parameter name hotwords_id. Since this PR is already cleaning up typos, it’d be good to fix this block fully as well.

Suggested doc fix
- * @@param hotwords  The encoded ids to be written to.
+ * `@param` hotwords_id  The encoded ids to be written to.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@sherpa-onnx/csrc/utils.h` around lines 15 - 33, The doc comment for
EncodeHotwords has a malformed tag "@@param hotwords" and the name doesn't match
the actual parameter; update the comment for the function EncodeHotwords to use
"@param hotwords_id" (matching the parameter) and change the description to say
"The encoded ids to be written to" or similar so the parameter name and
description align with the signature (also verify boost_scores description if
present).
🧹 Nitpick comments (2)
java-api-examples/src/websocketsrv/AsrWebsocketServer.java (2)

161-161: Additional typo: variable name deocderTimeOut.

The variable name has a typo ("deocder" instead of "decoder"). While renaming variables is a slightly larger change than fixing comment typos, this may be worth addressing for consistency if this PR aims to fix typos comprehensively.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@java-api-examples/src/websocketsrv/AsrWebsocketServer.java` at line 161, The
variable name deocderTimeOut contains a typo; rename the identifier to
decoderTimeOut throughout the file (and update any references) while keeping the
config lookup key "deocder_time_out" unchanged unless you also intend to change
external config; ensure the line using cfgMap.getOrDefault remains functionally
identical (e.g., int decoderTimeOut =
Integer.valueOf(cfgMap.getOrDefault("deocder_time_out", "30000"))); update any
other usages of deocderTimeOut to decoderTimeOut.

37-37: Additional typo in this file: "deocdeing" → "decoding".

Since this PR is focused on fixing typos, consider also fixing the typo in the comment on this line.

📝 Suggested fix
-  //  Queue waiting for deocdeing, use websocket as the key
+  //  Queue waiting for decoding, use websocket as the key
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@java-api-examples/src/websocketsrv/AsrWebsocketServer.java` at line 37, In
the AsrWebsocketServer class comment that reads "Queue waiting for deocdeing,
use websocket as the key", correct the typo by changing "deocdeing" to
"decoding" so the comment reads "Queue waiting for decoding, use websocket as
the key"; locate this comment near the AsrWebsocketServer class declaration and
update it accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@cmake/onnxruntime.cmake`:
- Line 73: The fatal error message uses the wrong CMake variable syntax so
CMAKE_SYSTEM_PROCESSOR won't be expanded; update the message call that contains
message(FATAL_ERROR "Unsupported processor {CMAKE_SYSTEM_PROCESSOR} for Darwin")
to use the correct CMake variable interpolation for CMAKE_SYSTEM_PROCESSOR
(i.e., replace the braces around CMAKE_SYSTEM_PROCESSOR with the ${...} form) so
the actual processor value is printed at runtime.

In `@scripts/supertonic/gen_calib_configs.py`:
- Around line 89-93: Restore the correct French spellings in the calibration
strings: change "Le traitement du language naturel aide les machines à
comprendre." back to "Le traitement du langage naturel aide les machines à
comprendre." and change "La normalisation du texte est importante pour la
pronunciation." back to "La normalisation du texte est importante pour la
prononciation." so the French prompts in the list used for calibration are
correct (modify the two string literals shown in the diff).

In `@sherpa-onnx/csrc/features.h`:
- Line 24: Update the comment in features.h to fix the typo by changing "actual"
to the adverb "actually" so the sentence reads "The actual feature dimension is
actually num_ceps"; locate the comment near the Features-related declarations
(in features.h) and replace the existing wording accordingly.

In `@sherpa-onnx/csrc/transpose-test.cc`:
- Line 14: Rename the misspelled test names from "Tranpose01" (and the other
occurrence "Tranpose02") to "Transpose01" and "Transpose02" respectively so the
TEST suite "Transpose" and test names are consistent; update the TEST macros
(e.g., TEST(Transpose, Tranpose01) -> TEST(Transpose, Transpose01)) and any
references to those test names in the file to match the corrected identifiers.

---

Outside diff comments:
In `@sherpa-onnx/csrc/utils.h`:
- Around line 35-53: The comment for EncodeKeywords uses the outdated term
"hotword" and should be changed to "keyword"; update the description lines that
read "one hotword for each line" to "one keyword per line" (and scan the
EncodeKeywords comment block in utils.h for any other "hotword" occurrences to
replace), keeping the rest of the parameter explanations unchanged so the docs
correctly refer to keywords instead of hotwords.
- Around line 15-33: The doc comment for EncodeHotwords has a malformed tag
"@@param hotwords" and the name doesn't match the actual parameter; update the
comment for the function EncodeHotwords to use "@param hotwords_id" (matching
the parameter) and change the description to say "The encoded ids to be written
to" or similar so the parameter name and description align with the signature
(also verify boost_scores description if present).

---

Nitpick comments:
In `@java-api-examples/src/websocketsrv/AsrWebsocketServer.java`:
- Line 161: The variable name deocderTimeOut contains a typo; rename the
identifier to decoderTimeOut throughout the file (and update any references)
while keeping the config lookup key "deocder_time_out" unchanged unless you also
intend to change external config; ensure the line using cfgMap.getOrDefault
remains functionally identical (e.g., int decoderTimeOut =
Integer.valueOf(cfgMap.getOrDefault("deocder_time_out", "30000"))); update any
other usages of deocderTimeOut to decoderTimeOut.
- Line 37: In the AsrWebsocketServer class comment that reads "Queue waiting for
deocdeing, use websocket as the key", correct the typo by changing "deocdeing"
to "decoding" so the comment reads "Queue waiting for decoding, use websocket as
the key"; locate this comment near the AsrWebsocketServer class declaration and
update it accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ceddf593-8082-4a62-9250-6cbda4c57982

📥 Commits

Reviewing files that changed from the base of the PR and between 3595893 and d9fbecc.

📒 Files selected for processing (39)
  • CHANGELOG.md
  • c-api-examples/keywords-spotter-buffered-tokens-keywords-c-api.c
  • c-api-examples/speaker-identification-c-api.c
  • c-api-examples/streaming-ctc-buffered-tokens-c-api.c
  • c-api-examples/streaming-paraformer-buffered-tokens-c-api.c
  • c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c
  • cmake/onnxruntime-linux-x86_64-gpu.cmake
  • cmake/onnxruntime.cmake
  • java-api-examples/src/websocketsrv/AsrWebsocketServer.java
  • kotlin-api-examples/test_online_asr.kt
  • lazarus-examples/generate_subtitles/my_init.pas
  • lazarus-examples/generate_subtitles/unit1.pas
  • python-api-examples/spoken-language-identification.py
  • python-api-examples/web/js/offline_record.js
  • python-api-examples/web/js/streaming_record.js
  • scripts/node-addon-api/lib/addon.js
  • scripts/paraformer/rknn/torch_model.py
  • scripts/sense-voice/rknn/torch_model.py
  • scripts/spleeter/convert_to_pb.py
  • scripts/supertonic/gen_calib_configs.py
  • scripts/text2token.py
  • sherpa-onnx/csrc/ascend/offline-whisper-model-ascend.cc
  • sherpa-onnx/csrc/features.h
  • sherpa-onnx/csrc/hypothesis.h
  • sherpa-onnx/csrc/offline-ctc-model.cc
  • sherpa-onnx/csrc/offline-websocket-server-impl.cc
  • sherpa-onnx/csrc/online-conformer-transducer-model.h
  • sherpa-onnx/csrc/online-recognizer-impl.cc
  • sherpa-onnx/csrc/session.cc
  • sherpa-onnx/csrc/transpose-test.cc
  • sherpa-onnx/csrc/utils.h
  • sherpa-onnx/pascal-api/portaudio.pas
  • sherpa-onnx/python/sherpa_onnx/cli.py
  • sherpa-onnx/python/sherpa_onnx/online_recognizer.py
  • sherpa-onnx/python/sherpa_onnx/utils.py
  • wasm/asr/app-asr.js
  • wasm/kws/app.js
  • wasm/vad-asr/app-vad-asr.js
  • wasm/vad/app-vad.js

Comment thread cmake/onnxruntime.cmake Outdated
Comment thread scripts/supertonic/gen_calib_configs.py Outdated
Comment thread sherpa-onnx/csrc/features.h Outdated
//
// Note: for mfcc, this value is also for num_mel_bins.
// The actual feature dimension is actuall num_ceps
// The actual feature dimension is actual num_ceps

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Incomplete typo fix: "actual" should be "actually".

The typo fix changed "actuall" to "actual", but the grammatically correct word here is "actually" (adverb). The sentence should read: "The actual feature dimension is actually num_ceps".

📝 Proposed fix
-  // The actual feature dimension is actual num_ceps
+  // The actual feature dimension is actually num_ceps
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// The actual feature dimension is actual num_ceps
// The actual feature dimension is actually num_ceps
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@sherpa-onnx/csrc/features.h` at line 24, Update the comment in features.h to
fix the typo by changing "actual" to the adverb "actually" so the sentence reads
"The actual feature dimension is actually num_ceps"; locate the comment near the
Features-related declarations (in features.h) and replace the existing wording
accordingly.

namespace sherpa_onnx {

TEST(Tranpose, Tranpose01) {
TEST(Transpose, Tranpose01) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Rename the test cases to remove the remaining typo.

The suite name is fixed, but the test names still use Tranpose..., so this file remains inconsistent with the typo-cleanup goal and makes test output/searches a bit harder.

✏️ Proposed fix
-TEST(Transpose, Tranpose01) {
+TEST(Transpose, Transpose01) {
...
-TEST(Transpose, Tranpose12) {
+TEST(Transpose, Transpose12) {

Also applies to: 38-38

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@sherpa-onnx/csrc/transpose-test.cc` at line 14, Rename the misspelled test
names from "Tranpose01" (and the other occurrence "Tranpose02") to "Transpose01"
and "Transpose02" respectively so the TEST suite "Transpose" and test names are
consistent; update the TEST macros (e.g., TEST(Transpose, Tranpose01) ->
TEST(Transpose, Transpose01)) and any references to those test names in the file
to match the corrected identifiers.

csukuangfj and others added 2 commits March 12, 2026 11:02
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes a set of typos across multiple language bindings, examples, build scripts, and documentation/comments to improve clarity and professionalism of user-facing messages and internal docs.

Changes:

  • Corrected spelling in user-visible status/error strings across WASM/JS examples and add-on loader messaging.
  • Fixed typos in Python/C/C++/Pascal/Kotlin/Java examples and inline documentation/comments.
  • Cleaned up changelog and CMake messaging typos.

Reviewed changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
wasm/vad/app-vad.js Fix typo in getUserMedia error log text
wasm/vad-asr/app-vad-asr.js Fix recognizer/status typos and getUserMedia error log text
wasm/kws/app.js Fix typo in getUserMedia error log text
wasm/asr/app-asr.js Fix recognizer/status typos and getUserMedia error log text
sherpa-onnx/python/sherpa_onnx/utils.py Fix typos in CJK/non-CJK comment text
sherpa-onnx/python/sherpa_onnx/online_recognizer.py Fix typo in docstring (“estimation”)
sherpa-onnx/python/sherpa_onnx/cli.py Fix typos in CLI docstring (“starting”)
sherpa-onnx/pascal-api/portaudio.pas Fix multiple typos in PortAudio Pascal header comments
sherpa-onnx/csrc/utils.h Fix typo in comments (“false”)
sherpa-onnx/csrc/transpose-test.cc Renamed test suite name to correct spelling (“Transpose”)
sherpa-onnx/csrc/session.cc Fix typo in log message (“only”)
sherpa-onnx/csrc/online-recognizer-impl.cc Fix typo in comment (“supported”)
sherpa-onnx/csrc/online-conformer-transducer-model.h Fix typo in comment (“metadata”)
sherpa-onnx/csrc/offline-websocket-server-impl.cc Fix typo in error log (“recognizer”)
sherpa-onnx/csrc/offline-ctc-model.cc Fix typo in log message (“metadata”)
sherpa-onnx/csrc/hypothesis.h Fix typos in comments (“modified”)
sherpa-onnx/csrc/features.h Adjusted comment wording for feature dimension
sherpa-onnx/csrc/ascend/offline-whisper-model-ascend.cc Fix typo in comment (“initialize”)
scripts/text2token.py Fix typos in argparse help text (“starting”)
scripts/supertonic/gen_calib_configs.py Modified French calibration phrases
scripts/spleeter/convert_to_pb.py Fix typo in comment (“useful”)
scripts/sense-voice/rknn/torch_model.py Fix typo in docstring (“dimension”)
scripts/paraformer/rknn/torch_model.py Fix typos in docstrings (“dimension”)
scripts/node-addon-api/lib/addon.js Fix typo in user-facing guidance message (“remember”)
python-api-examples/web/js/streaming_record.js Fix typo in getUserMedia error log text
python-api-examples/web/js/offline_record.js Fix typo in getUserMedia error log text
python-api-examples/spoken-language-identification.py Fix typo in module docstring (“language”)
lazarus-examples/generate_subtitles/unit1.pas Fix typo in status matching text (“successfully”)
lazarus-examples/generate_subtitles/my_init.pas Fix typos in guidance/status strings (“download”, “successfully”)
kotlin-api-examples/test_online_asr.kt Fix typo in comment (“download”)
java-api-examples/src/websocketsrv/AsrWebsocketServer.java Fix typo in comment (“recognizer”)
cmake/onnxruntime.cmake Fix typo in fatal error message (“Unsupported”)
cmake/onnxruntime-linux-x86_64-gpu.cmake Fix typo in comment (“Requires”)
c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c Fix typo in file read error message (“occurred”)
c-api-examples/streaming-paraformer-buffered-tokens-c-api.c Fix typo in file read error message (“occurred”)
c-api-examples/streaming-ctc-buffered-tokens-c-api.c Fix typo in file read error message (“occurred”)
c-api-examples/keywords-spotter-buffered-tokens-keywords-c-api.c Fix typo in file read error message (“occurred”)
c-api-examples/speaker-identification-c-api.c Fix typo in comment (“Remember”)
CHANGELOG.md Fix multiple typos in changelog entries

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI Mar 12, 2026

Copy link

Choose a reason for hiding this comment

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

This introduces a French spelling error: in French it should be “langage” (not “language”). Please revert to the correct French word to keep the calibration text natural/grammatical.

Suggested change
"Le traitement du langage naturel aide les machines à comprendre.",

Copilot uses AI. Check for mistakes.

Copilot AI Mar 12, 2026

Copy link

Choose a reason for hiding this comment

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

This introduces an English word into a French sentence. It should be “prononciation” in French; otherwise the calibration phrase looks incorrect.

Suggested change
"La normalisation du texte est importante pour la prononciation.",

Copilot uses AI. Check for mistakes.
Comment thread sherpa-onnx/csrc/features.h Outdated
//
// Note: for mfcc, this value is also for num_mel_bins.
// The actual feature dimension is actuall num_ceps
// The actual feature dimension is actual num_ceps

Copilot AI Mar 12, 2026

Copy link

Choose a reason for hiding this comment

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

The updated comment reads ungrammatically (“actual … is actual …”). Consider changing the second “actual” to “actually”, or rephrasing to “The actual feature dimension is num_ceps” to avoid confusion.

Suggested change
// The actual feature dimension is actual num_ceps
// The actual feature dimension is num_ceps.

Copilot uses AI. Check for mistakes.
Comment thread cmake/onnxruntime.cmake Outdated
endif()
else()
message(FATAL_ERROR "Unsupport processor {CMAKE_SYSTEM_PROCESSOR} for Darwin")
message(FATAL_ERROR "Unsupported processor {CMAKE_SYSTEM_PROCESSOR} for Darwin")

Copilot AI Mar 12, 2026

Copy link

Choose a reason for hiding this comment

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

CMake won’t substitute {CMAKE_SYSTEM_PROCESSOR} in a string; this will print literally. Use ${CMAKE_SYSTEM_PROCESSOR} so users can see the actual detected processor in the fatal error message.

Suggested change
message(FATAL_ERROR "Unsupported processor {CMAKE_SYSTEM_PROCESSOR} for Darwin")
message(FATAL_ERROR "Unsupported processor ${CMAKE_SYSTEM_PROCESSOR} for Darwin")

Copilot uses AI. Check for mistakes.
namespace sherpa_onnx {

TEST(Tranpose, Tranpose01) {
TEST(Transpose, Tranpose01) {

Copilot AI Mar 12, 2026

Copy link

Choose a reason for hiding this comment

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

The test suite name is corrected to Transpose, but the test case names still use the misspelling TranposeXX. Renaming them to Transpose01 / Transpose12 would make test output and filtering consistent and easier to search.

Copilot uses AI. Check for mistakes.
}

TEST(Tranpose, Tranpose12) {
TEST(Transpose, Tranpose12) {

Copilot AI Mar 12, 2026

Copy link

Choose a reason for hiding this comment

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

The test suite name is corrected to Transpose, but the test case names still use the misspelling TranposeXX. Renaming them to Transpose01 / Transpose12 would make test output and filtering consistent and easier to search.

Copilot uses AI. Check for mistakes.
@csukuangfj
csukuangfj merged commit abaf286 into k2-fsa:master Mar 12, 2026
0 of 27 checks passed
@csukuangfj
csukuangfj deleted the fix-typos branch March 12, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants