Skip to content
Discussion options

You must be logged in to vote

Yes for clip-level detection, but not as a native event-level timestamp.

SenseVoiceSmall can emit the raw event tag <|Laughter|>. Check result["text"] before calling rich_transcription_postprocess, because the postprocessor turns that tag into an emoji. For example:

from funasr import AutoModel

model = AutoModel(
    model="iic/SenseVoiceSmall",
    trust_remote_code=True,
    device="cuda:0",  # use "cpu" if needed
)

result = model.generate(
    input="audio.wav",
    language="auto",
    use_itn=False,
    output_timestamp=True,
)[0]

print(result["text"])
print("laughter detected:", "<|Laughter|>" in result["text"])
print(result.get("words"), result.get("timestamp"))

The important li…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LauraGPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants