speech-recognition

C# return speech phonetic without recognize it

纵饮孤独 提交于 2019-12-05 20:49:47
I'm trying to make a human like dictionary (db) of Persian speech, so I tried to speak and have c# produce it phonetically, but the problem is I cant find any event to find what I spoke. For example, we have SpeechRecognized event but it fired after recognizing the speech. Here is my code sample: <pre> <code> SpeechRecognizer rec = new SpeechRecognizer(); public Form1(){ InitializeComponent(); rec.SpeechRecognized += rec_SpeechRecognized(rec_SpeechRecognized); // this will fire after recognize rec.SpeechDetected +=new EventHandler(rec_SpeechDetected); // this will fired each time but with no

Speech Recognizer on HTC One M7

故事扮演 提交于 2019-12-05 19:54:07
I wrote a speech recognition app using android's built-in speech recognition classes. The following exception shows up in my developer console when the startListening function is called on the speech recognizer object obtained using createSpeechRecognizer(context) function. SecurityException: java.lang.SecurityException: Not allowed to bind to service Intent { act=android.speech.RecognitionService cmp=com.htc.android.voicedictation/.VoiceDictationService } Any ideas why this is happening and how to fix this? Tested working on Nexus 7 & HTC ONE X. Failed on HTC ONE M7 (4.2.2) Found the root

Text to speech not working on android device

天大地大妈咪最大 提交于 2019-12-05 19:33:52
Below is my code.I am unable to hear the voice in my kitkat device.Toast is appearing but voice is not playing.I am following this tutorial https://www.tutorialspoint.com/android/android_text_to_speech.htm package com.example.insert; import android.os.Parcelable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.app.Activity; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android.view.View; import android.widget.Button; import android.widget.EditText; import java.util.Locale; import android.widget.Toast; import android.util.Log;

CMUSphinx live speech recognition too slow?

淺唱寂寞╮ 提交于 2019-12-05 18:56:07
CMU Sphinix is toooo Slow for recognizing live speech.I don't know if you have any idea for boost it? This is my configuration: configuration.setAcousticModelPath("WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz"); configuration.setDictionaryPath("cmudict.0.6d"); configuration.setLanguageModelPath("en-us.lm.dmp"); We are currently working on speedup, but for now sphinx4 is not realtime for large vocabulary. It's actually not a trivial task. If you want a fast and not very accurate transcription you can edit default.config.xml in sphinx4 sources and recompile: <property name="absoluteBeamWidth" value=

For Watson's Speech-To-Text Unity SDK, how can you specify keywords?

旧城冷巷雨未停 提交于 2019-12-05 18:46:09
I am trying to specify keywords in Watson's Speech-To-Text Unity SDK , but I'm unsure how to do this. The details page doesn't show an example (see here: https://www.ibm.com/watson/developercloud/doc/speech-to-text/output.shtml ), and other forum posts are written for Java applications (see here: How to specify phonetic keywords for IBM Watson speech2text service? ). I've tried hard-coding these values in the RecognizeRequest class created in the "Recognize" function like so, but without success: **EDIT - this function never gets called -- ** public bool Recognize(AudioClip clip, OnRecognize

How do you recognize speech with the Python module Dragonfly?

∥☆過路亽.° 提交于 2019-12-05 17:49:11
问题 I have been trying to figure out how to use the Dragonfly module. I have taken a look at the documentation, but I can't seem to figure out how to use it. I just want to be able to recognize a few phrases and act upon those phrases. 回答1: That's correct, this example will terminate. I've seen this particular example quite a bit, and it is missing a number of key features. The first thing is that pythoncom is not imported. This provides a main loop for the program. The above from dragonfly.all

Training sapi : Creating transcripted wav files and adding file paths to registry

谁说胖子不能爱 提交于 2019-12-05 16:20:06
We are trying to do acoustic training but we are unable to create the transcripted audio files, how to create it? Also we are using GetTranscript and Appendtranscript but we are unable to get the ISpTranscript interface for the ISpStream if we open the stream in READWRITE mode, so how do you create the transcript wav files. hr = SPBindToFile(L"e:\\file1.wav", SPFM_OPEN_READONLY, &cpStream); hr = cpStream.QueryInterface(&cpTranscript); // We get a error here for as E_NONINTERFACE if SPFM_OPEN_READWRITE hr = cpTranscript->AppendTranscript(sCorrectText); hr = cpTranscript->GetTranscript(

Microsoft Speech Recognition: Alternate results with confidence score?

落花浮王杯 提交于 2019-12-05 14:45:38
I'm new to working with the Microsoft.Speech recognizer (using Microsoft Speech Platform SDK Version 11) and I'm trying to have it output the n-best recognition matches from a simple grammar, along with the confidence score for each. According to the documentation (and as mentioned in the answer to this question ), one should be able to use e.Result.Alternates to access the recognized words other than the top-scoring one. However, even after resetting the confidence rejection threshold to 0 (which should mean nothing is rejected), I still only get one result, and no alternates (although the

Android Speech Recognition API does not work in Android 7 Nougat

拜拜、爱过 提交于 2019-12-05 14:07:51
问题 I am using the android.speech.SpeechRecognizer API for speech. I works great in Android 4-5, In Android 6 it now has a bunch of bugs, like the chime that occurs when the mic turns on is detected as speech, so it exists (and loops indefinitely when it restarts because to speech was detected, we have a hack workaround for this that sets the volume to 0 before the chime is played...) In Android 6 the speech also dies with no error or anything after 5 seconds. We have another hack workaround for

How to hide toast“ Your audio will be sent to google to provide speech recognition service.” in Speech Recognizer?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 13:19:28
I am using google speech recognizer for integrating voice services in Android but while pressing on mic buttong this annoying toast message is showing.please suggest me a way to hide this. Thanks If your device is rooted you can hide the notification, but not prevent the audio from being sent to Google. Install Xposed framework and module UnToaster Xposed, then add: com.google.android.googlequicksearchbox So what you can do is to customize your speech recognizer by building it by your own. I wrote this code on xamarin.android so it should be pretty similar. Public class CustomRecognizer : Java