Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
osdodo committed Dec 25, 2023
1 parent f113c5b commit 28109d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/VoiceWaves/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const VoiceWaves = observer(
analyser.getByteTimeDomainData(dataArray);
const volume = Math.max(...dataArray);
// 判断声音大小是否低于阈值
console.log('volume=>', volume);
if (volume <= volumeThreshold) {
if (canSendRef.current) {
canSendRef.current = false;
Expand Down

0 comments on commit 28109d1

Please sign in to comment.