Skip to content

docs: fix Japanese language tag in example.py comment#1722

Merged
aluminumbox merged 1 commit into
FunAudioLLM:mainfrom
majiayu000:fix/issue-1683-ja-language-tag
Dec 29, 2025
Merged

docs: fix Japanese language tag in example.py comment#1722
aluminumbox merged 1 commit into
FunAudioLLM:mainfrom
majiayu000:fix/issue-1683-ja-language-tag

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

Summary

  • Fixed incorrect Japanese language tag in example.py comment
  • Changed <|jp|> to <|ja|> to match the actual tokenizer implementation

Details

The comment at line 21 in example.py incorrectly documents the Japanese language tag as <|jp|>, but the actual LANGUAGES dict in cosyvoice/tokenizer/tokenizer.py defines it as "ja": "japanese" (line 19).

This mismatch can cause confusion and issues like #621 when users follow the documented tag.

Test Plan

  • Verified LANGUAGES dict in tokenizer.py uses ja for Japanese
  • No code changes, only comment fix

Fixes #1683

Changed <|jp|> to <|ja|> to match the actual tokenizer implementation.

The LANGUAGES dict in cosyvoice/tokenizer/tokenizer.py defines 'ja' for Japanese,
not 'jp'. This fixes the misleading comment that could cause issues like FunAudioLLM#621.

Fixes FunAudioLLM#1683
@aluminumbox aluminumbox merged commit a14e063 into FunAudioLLM:main Dec 29, 2025
@majiayu000 majiayu000 deleted the fix/issue-1683-ja-language-tag branch December 29, 2025 08:46
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.

日语语言标签为 <|ja|>,而非 <|jp|>,与example中的注释不符

2 participants