Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
269 views
in Technique[技术] by (71.8m points)

c# - How to recognize a phrase from a voice file

How to get the engine to successfully recognize a phrase from a voice file (wav/mp3/etc..)?

For example, if I'll have a voice file and a written text of the context of the same file, so to make it recognize the written words in the voice file.

I tried to play around with the SpeechRecognitionEngine, but without success so far.

I'll appreciate ideas, since this is my first time dealing with Speech Recognition techniques.

I've seen examples of speech-to-text using dictionaries, but I'm not sure how it can be useful here. I was thinking of maybe converting the all voice file to text, and then simply look for the specific phrase in that text, but I don't think it's the right way. Doesn't seem to make sense to convert for example 5hrs voice to text.... or maybe to use the specific phrase as a "dictionary" and to look for this item in the voice file.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It seems you need to look for a specific word in a long file. This technique is called "Keyword Spotting", it's quite different from speech recognition, way more efficient. Obviosly you do not need to transcribe the whole file to search a word in it, you can quickly scan through the file. Microsoft Speech Recognition engine have very limited support for keyword spotting.

Open source engines like CMUSphinx could be used to implement the keyword spotting efficiently. See for the further references the information on how to implement wake-up listening with pocketsphinx.

For the more information on the underlying algorithms see ACOUSTIC KEYWORD SPOTTING IN SPEECH WITH APPLICATIONs TO DATA MINING


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...