Browse Source

make qwen model configurable

make-qwen-llm-configurable
haixuantao 6 months ago
parent
commit
689595604e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      node-hub/dora-vad/dora_vad/main.py

+ 2
- 1
node-hub/dora-vad/dora_vad/main.py View File

@@ -36,6 +36,7 @@ def main():
threshold=THRESHOLD,
min_speech_duration_ms=MIN_SPEECH_DURATION_MS,
min_silence_duration_ms=MIN_SILENCE_DURATION_MS,
sampling_rate=sr,
)

# Check ig there is timestamp
@@ -48,8 +49,8 @@ def main():
node.send_output(
"timestamp_start",
pa.array([speech_timestamps[-1]["start"]]),
metadata={"sample_rate": sr},
)
continue
audio = audio[0 : speech_timestamps[-1]["end"]]
node.send_output("audio", pa.array(audio), metadata={"sample_rate": sr})
last_audios = [audio[speech_timestamps[-1]["end"] :]]


Loading…
Cancel
Save