Advertisement
mhdew

word segmentation pseudocode

Apr 10th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. take source file
  2. take minimum silence period
  3. take silence thresh
  4. split whole audio into some chunks of length = minimum silence period
  5. for every chunk
  6. if dBFS of a chunk is less than minimum thresh
  7. store the starting time of silence
  8. endif
  9. if all chunks hav beed checked
  10. break
  11. endif
  12. endfor
  13. combine and store all the silence ranges
  14. find non-silence ranges using silence ranges
  15. split the main audio into final chunks using non-silence ranges
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement