Separate words in a sentence.

I am doing speech recognition. I don't have any problem with classifying the words but I don't know how to separate the words in a sentence.
For eg: When I say "How are you?" I want to separate that to "how", "are" and "you" so that I proceed with the processing part (which is pattern recognition).
How would you separate the words in a sentence? I need the code for that.

댓글 수: 1

Daniel Shub
Daniel Shub 2011년 10월 19일
What language are you dealing with? What is the approximate SNR of the recordings. Is there substantial reverberation? It is natural speech or where the talkers instructed to speak clearly?

댓글을 달려면 로그인하십시오.

답변 (3개)

the cyclist
the cyclist 2011년 10월 19일

0 개 추천

The isspace() command might be good enough for what you need. If not, there is also the regexp() command, which you can use to do regular-expression matching.

댓글 수: 7

Daniel Shub
Daniel Shub 2011년 10월 19일
I think it is separate words in an audio stream and not a text stream (but I could be wrong).
the cyclist
the cyclist 2011년 10월 19일
Ah. Upon re-reading, I think you are correct.
i Venky
i Venky 2011년 10월 19일
As Daniel is saying, I am talking about audio streaming and not text streaming.
i Venky
i Venky 2011년 10월 19일
I am waiting for the answer. Only when I know this I can proceed further.
Jan
Jan 2011년 11월 4일
@i Venky: If you are waiting for an answer, it would be helpful if you reply to Daniels questions in the comment section above.
aya alofi
aya alofi 2018년 12월 29일
did you solve it ?
Image Analyst
Image Analyst 2018년 12월 29일
aya, did you click the link to the left: Search for tag "speech to text"
You'll probably find something in one of the other answers.

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2011년 10월 19일

0 개 추천

The solution depends upon the language involved. In "western" languages, word boundaries are marked by short pauses. There are, however, languages which do not use pauses for that purpose, and instead rely upon tone patterns or stress patterns. And watch out for "glottal stops" and clicks, as those may involve pauses that do not mark word boundaries.
Daniel Shub
Daniel Shub 2011년 10월 19일

0 개 추천

As a first stab you could look at the running RMS power averaged over a short (20 ms) time window. Periods of low power are more likely to be inter-word gaps.
Prms = sqrt(conv(x.^2, ones(Fs*0.01, 1)));
You could also look at the envelope of the speech waveform. You can get the envelope via the Hilbert transform.
Even better would be to use your speech identifier to help identify word boundaries. If the identifier is good, but fails on a chunk of speech, the boundary is probably in the wrong place.

카테고리

질문:

2011년 10월 19일

댓글:

2018년 12월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by