voice-recognition

doing actions after sound recognization in android

旧城冷巷雨未停 提交于 2019-11-28 02:29:09
please give me suggestion about this condition. is it possible in android that the device waits for special sound, and after it recognizes it, some actions happens. please tell me about your ideas.Thanks for your help! UPDATE i try pocket sphinx and do lots of searches about 'defining new keyword", but i can't do it. I use this code: public class PracticeActivity extends Activity implements RecognitionListener, edu.cmu.pocketsphinx.RecognitionListener { // private static final String KWS_SEARCH = "wakeup"; // private static final String KEYPHRASE = "listen"; //adjust this keyphrase! //3-

Continues Speech Recognition beep sound after Google Search update

对着背影说爱祢 提交于 2019-11-28 00:47:38
问题 I have an app that keeps on listening to voice and converting it to commands using Google Voice API. I have been using setStreamMute(AudioManager.STREAM_SYSTEM, true) to mute the beep and it worked until a couple of days ago before "Google Search" new update. Is there any workaround fix for it? I know I can use setRingerMode(AudioManager.RINGER_MODE_SILENT) , but maybe there is another method? 回答1: In the update they switched the output of the 'beep' to the media stream. So you'll need to

I can't install pyaudio on my python? How to do it?

Deadly 提交于 2019-11-27 22:27:55
I have a windows 10 pc and i want to install pyaudio to use it with my chatbot, powered by chatterbot, i try with 2 different ways to install pyaudio. The way is in writing on command prompt python -m pip install PyAudio That is the result: C:\Users\Waaberi>python -m pip install PyAudio Collecting PyAudio Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz Installing collected packages: PyAudio Running setup.py install for PyAudio ... error Complete output from command C:\Users\Waaberi\AppData\Local

Android: Voice Recording and saving audio

三世轮回 提交于 2019-11-27 22:23:57
I am working on application that will record the voice of the user and save the file on the SD card and then allow the user to listen to the audio again. I am able to allow the user to record his voice using the RecognizerIntent, but I cant figure out how to save the audio file and allow the user to hear the audio. I would appreciate it if someone could help me out. I have displayed my code below: // Setting up the onClickListener for Audio Button attachVoice = (Button) findViewById(R.id.AttachVoice_questionandanswer); attachVoice.setOnClickListener(new OnClickListener() { public void onClick

Android offline voice recognition with simple commands/vocabulary [closed]

元气小坏坏 提交于 2019-11-27 19:02:46
问题 I am looking for some library that would allow me to create an offline voice recognition inside my Android app. There will be simple vocabulary consisting of up to 15 short (one word) commands for my app. Response time is crucial in my case. Is there any viable offline option (free & paid)? I am aware of offline version of Sphinx but will it be the option with fastest response (again, I only need my app to recognize few commands not the whole speech-to-text functionality)? 回答1: I've had

Voice matching in Android [closed]

╄→гoц情女王★ 提交于 2019-11-27 18:56:57
问题 Is there any way we can do voice matching in Android? Take the below scenario. User "A" speak something in the app and record it in phone via the app. User "B" speak something in the app and record it in phone via the app. User "C" speak something in the app and record it in phone via the app. After all of these recordings, user "A" come and speak to the app. Since his voice is already recorded, app identifies this is user "A". Or else something like this.. User "A" speak the word "House" in

Voice command keyword listener in Android

守給你的承諾、 提交于 2019-11-27 14:14:42
I would like to add voice command listener in my application.Service should listen to predefined keyword and and if keyword is spoken it should call some method. Voice command recognition (activation command) should work without send request to Google voice servers. How can I do it on Android? Thanks for posting some useful resources. You can use Pocketsphinx to accomplish this task. Check Pocketsphinx android demo for example how to listen for keyword efficiently in offline and react on the specific commands like a key phrase "oh mighty computer". The code to do that is simple: you create a

Android speech Recognition App Without Pop Up

戏子无情 提交于 2019-11-27 12:11:25
I'm currently looking into getting a career with JAVA and have decided to start by building an app. I have this code right here that I am using to trigger Speech Recognition. public class MainActivity extends Activity implements OnClickListener{ private static final int VR_REQUEST = 999; private ListView wordList; private final String LOG_TAG = "SpeechRepeatActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button speechBtn = (Button) findViewById(R.id.speech_btn); wordList = (ListView)

How to mix Grammar (Rules) & Dictation (Free speech) with SpeechRecognizer in C#

好久不见. 提交于 2019-11-27 11:46:53
问题 I really like Microsofts latest speech recognition (and SpeechSynthesis) offerings. http://msdn.microsoft.com/en-us/library/ms554855.aspx http://estellasays.blogspot.com/2009/04/speech-recognition-in-cnet.html However I feel like I'm somewhat limited when using grammars. Don't get me wrong grammars are great for telling the speech recognition exactly what words / phrases to look out for, however what if I want it to recognise something i've not given it a heads up about? Or I want to parse a

Saving audio input of Android Stock speech recognition engine

左心房为你撑大大i 提交于 2019-11-27 05:15:18
问题 I am trying to save in a file the audio data listened by speech recognition service of android. Actually I implement RecognitionListener as explained here: Speech to Text on Android save the data into a buffer as illustrated here: Capturing audio sent to Google's speech recognition server and write the buffer to a Wav file, as in here. Android Record raw bytes into WAVE file for Http Streaming My problem is how to get appropriate audio settings to save in the wav file's headers. In fact when