fix(sensevoice): stop rendering the Cough event as the Sneeze emoji - #3747
Merged
LauraGPT merged 1 commit intoOct 1, 2026
Merged
Conversation
rich_transcription_postprocess() maps SenseVoice event tags through event_dict, which used 🤧 for both <|Sneeze|> and <|Cough|>, so coughs were displayed as sneezes. emoji_dict and event_set already use 😷 for coughs; use it in event_dict too, in funasr and in the funasr_onnx and funasr_torch runtime copies.
LauraGPT
approved these changes
Oct 1, 2026
LauraGPT
left a comment
Collaborator
There was a problem hiding this comment.
Verified exact head 78c9301580c977945649549f545b980e8ae2d370 against current main. The prior mapping renders Cough and Sneeze identically; the patch aligns all three shipped postprocessors with the existing cough emoji convention. Exact head and clean synthetic merge pass 6/6 new regressions and the adjacent speaker/emotion coverage. No blocking finding.
This was referenced Oct 1, 2026
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
rich_transcription_postprocess()maps SenseVoice event tags viaevent_dict, which had"<|Cough|>": "🤧"— the same emoji as<|Sneeze|>— so coughs were displayed as sneezes.emoji_dictandevent_setin the same module already use 😷 for coughs (soformat_str_v2even strips 😷 spacing), which shows the intended mapping. This setsevent_dict["<|Cough|>"]to 😷 infunasr/utils/postprocess_utils.pyand in the identical copies shipped byfunasr_onnxandfunasr_torch.Reproduction (before):
Type of change
Validation
New
tests/test_rich_transcription_postprocess.py(checks all three copies): 3 Cough cases fail on main, 6 passed with the fix.pytest tests/test_speaker_emotion_docs.pystill passes.python -m compileallon the changed files; black (line-length 100) on the new test.python -m compileall funasr examples testsDocs or links checked
Runtime/deployment command tested
User impact
SenseVoice users displaying rich transcriptions (demo scripts, ONNX/libtorch runtimes, apps built on
rich_transcription_postprocess) can now tell coughs from sneezes.Notes for reviewers
One-line mapping change per copy; no other tags affected.