how to find short pause in a sentence ?

1 Ansicht (letzte 30 Tage)
Sony
Sony am 3 Jun. 2013
can any1 help me with matlab code for finding pause in a sentence!!! for example in the sentence She was dancing,singing ,laughing in the party. Pauses are found after dancing,singing and laughing.how do i find it with matlab code pls help.
  2 Kommentare
Daniel Shub
Daniel Shub am 3 Jun. 2013
What is your definition of when a pause occurs?
David Sanchez
David Sanchez am 4 Jun. 2013
Do you mean blank spaces?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Iain
Iain am 3 Jun. 2013
If you have the sentence as a string: eg.
Str = 'She was dancing, singing, laughing in the party.';
You can get the index of each comma (which I think you mean by pause), with:
pauses = find(Str == ',');
There are better ways, but that works.
  5 Kommentare
Sony
Sony am 4 Jun. 2013
yes lain,im dealing with recorded speech there varieties of recorded speech normal fast and slow
Iain
Iain am 4 Jun. 2013
Ok, in that case, if you threshold the audio stream, you should be able to find periods of below the threshold.
Pseudocode:
Loud = this is when people are talking
Quiet = this is when people are not talking
Threshold = (Loud + Quiet) / 2
Recorded_text = [Quiet Loud Quiet Loud Quiet Quiet Quiet Loud]
Thresholded_text = Recorded_text > +Threshold & Recorded_text < -Threshold
e.g. Thresholded = [false true false true false false false true]
Each pause, no matter how small will be recorded as a stream of "false", and depending how the recording is performed, you'll find "false" in the middle of speech as well.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Audio Processing Algorithm Design finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by