I want a MATLAB code for removing silence from a speech signal..
5 次查看(过去 30 天)
显示 更早的评论
I need a short and simple code..
0 个评论
回答(1 个)
Walter Roberson
2016-9-27
Suppose that your signal is stored in S. Then
newS = S( any(S,2), :);
This will create newS that has only the places where at least one of the sound channels is non-zero. For this purpose, I have defined "silence" as a sample value exactly equal to 0, of any duration.
Short and simple (and simplistic)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation, Tuning, and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!