Effacer les filtres
Effacer les filtres

How to get starting and ending limits of each silence interval?

3 vues (au cours des 30 derniers jours)
ayesha jabeen
ayesha jabeen le 23 Août 2016
I have a code in which a Boolean vector(vad) the same length as the audio returns '1' for audio and '0' for silence. Now i want to get limits of each starting and ending silence interval... for example if silence bits start from 2 to 5 and 7 to 9 then i want to get this 2 to 5 and 7 to 9 limits. By using voicebox function activlev i get this logical array vad. http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/doc/voicebox/activlev.html
Can anyone help me?

Réponse acceptée

Walter Roberson
Walter Roberson le 23 Août 2016
There is a trick:
begin_positions = strfind(vad, [1 0])
end_positions = strfind(vad, [0 1])
you will probably need to adjust the boundary by + or - 1 for your purposes.
Beware the edge cases: plan ahead what you want to do if the data starts with silence (or starts with non-silence)
  33 commentaires
ayesha jabeen
ayesha jabeen le 3 Oct 2016
Sir i have hide data by using LSB method.Data covered successfully in audio but when video is reconstructed by using this audio and after that extract data there is no hidden data in file.I can not understand why this problem is happening?What could that compress the file and due to this compression data is exiting from audio?tell me how do I solve this problem?
Walter Roberson
Walter Roberson le 10 Juil 2017
How are you saving the audio data into the video ? How are you constructing the video object when you do that?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Audio Plugin Creation and Hosting dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by