Skip to content

Commit

Permalink
fix vad attributes not set
Browse files Browse the repository at this point in the history
  • Loading branch information
tyohan committed Sep 28, 2024
1 parent 8927452 commit 982118c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/interceptors/voiceactivedetector/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ func (v *Interceptor) BindRemoteStream(info *interceptor.StreamInfo, reader inte
return 0, nil, err
}

_ = v.processPacket(info.SSRC, header)
audioAttribute := v.processPacket(info.SSRC, header)

attr.Set(ATTRIBUTE_KEY, audioAttribute.Level)
attr.Set("isVoice", audioAttribute.Voice)

return i, attr, nil
})
Expand Down

0 comments on commit 982118c

Please sign in to comment.