Break audio file into separate matrices depending on silence breaks

3 次查看(过去 30 天)
I have an audio file that has some speech like this: Hi (pause) How are you (pause)
Using wavread, I can sample this audio and transfer the sample data into a single matrix, however, I want to break it into 2 matrices as follows:
A= [data from hi]
B= [data from how are you]
Any ideas? Thanks!
  2 个评论
Image Analyst
Image Analyst 2017-10-4
You'd get more help if you attach your audio file. Basically, threshold the signal and throw out really short low signal stretches and keep only the longer silent areas, like a half second or whatever. Then use the indexed of those non-silent areas to crop them out. Very very easy if you have the Image Processing Toolbox (do you have that). I'll make you a demo if you need it and if you supply the audio file.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by