Skip to content

Conversation

@TonikaReddyT
Copy link
Contributor

This PR consists of following updates

  • Added real-time audio chunking using FFmpeg (silence-based segmentation).
  • Implemented live microphone streaming and dynamic chunk creation.
  • Added /devices endpoint to list available audio input devices for frontend dropdown.

stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL
)
silences = detect_silences(segment_file)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The silence detection points seems to be based on segment file, however in process audio segment full file is send. this probably isn't spliting the file correctly.

end_time = get_closest_silence(silences, ideal_end) or min(ideal_end, duration)
if end_time <= current_time:
end_time = min(ideal_end, duration)
cut_by_silence = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't be removed

Copy link
Contributor

@unarayan unarayan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in Silence Detection for Audio Stream is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants