docs(cn): fix basic usage example to match English README#990
Open
Br1an67 wants to merge 2 commits into2noise:devfrom
Open
docs(cn): fix basic usage example to match English README#990Br1an67 wants to merge 2 commits into2noise:devfrom
Br1an67 wants to merge 2 commits into2noise:devfrom
Conversation
Sync the Chinese README basic usage code with the English version: - Save all generated wavs in a loop instead of only the first one - Handle torchaudio version compatibility with try/except Fixes 2noise#866
fumiama
requested changes
Mar 6, 2026
Member
fumiama
left a comment
There was a problem hiding this comment.
Please do not change other codes but doc only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #866
The Chinese README (
docs/cn/README.md) basic usage code example was out of sync with the English README:wavs[0]) instead of all wavs in a looptry/exceptfor torchaudio version compatibility (unsqueeze(0)needed in some versions)Changes
docs/cn/README.md: Updated basic usage code to loop over all generated wavs with torchaudio version compatibility handling, matching the English READMEVerification
Compared with the English README to confirm the fix matches.