speech

Handle onActivityResult on a Service

牧云@^-^@ 提交于 2019-12-03 12:09:24
So i have a simple Question , it is Possible to Handle the Method onActivityResult() in a Service if this Activity was Started from the Same Service (Using Intent) ? In My Case , i want to start SpeechRegnition , Speak , and Get the Result on the Service , Everything on Background (Main Service Start from a Widget) , Thanks . Thanks for a recent downvoting, whoever it was. The previous answer I gave back in 2012 is a total nonsesnse so I decided to write a proper one. You can not handle Activity result in a Service, but you can pass any data retrieved from onActivityResult() to a Service. If

Continuous Speech Recognition Android - Without Gaps

十年热恋 提交于 2019-12-03 05:57:33
I have an activity that implements RecognitionListener . To make it continuous, every time onEndOfSpeech() I start the listener again: speech.startListening(recognizerIntent); But, it takes some time (around half a second) till it starts, so there is this half a second gap, where nothing is listening. Therefore, I miss words that were spoken in that time difference. On the other hand, when I use Google's Voice input, to dictate messages instead of the keyboard - this time gap does not exist. Meaning - there is a solution. What is it? Thanks try looking at a couple other api's.... speech demo :

Open source code for voice detection and discrimination

走远了吗. 提交于 2019-12-03 04:16:42
问题 I have 15 audio tapes, one of which I believe contains an old recording of my grandmother and myself talking. A quick attempt to find the right place didn't turn it up. I don't want to listen to 20 hours of tape to find it. The location may not be at the start of one of the tapes. Most of the content seems to fall into three categories -- in order of total length, longest first: silence, speech radio, and music. I plan to convert all of the tapes to digital format, and then look again for the

Google Speech Recognition API: timestamp for each word?

ぃ、小莉子 提交于 2019-12-03 01:48:56
It's possible to use Google's Speech recognition API to get a transcription for an audio file (WAV, MP3, etc.) by doing a request to http://www.google.com/speech-api/v2/recognize?... Example: I have said " one two three for five " in a WAV file. Google API gives me this: { u'alternative': [ {u'transcript': u'12345'}, {u'transcript': u'1 2 3 4 5'}, {u'transcript': u'one two three four five'} ], u'final': True } Question: is it possible to get the time (in seconds) at which each word has been said? With my example: ['one', 0.23, 0.80], ['two', 1.03, 1.45], ['three', 1.79, 2.35], etc. i.e. the

Open source code for voice detection and discrimination

99封情书 提交于 2019-12-02 17:33:48
I have 15 audio tapes, one of which I believe contains an old recording of my grandmother and myself talking. A quick attempt to find the right place didn't turn it up. I don't want to listen to 20 hours of tape to find it. The location may not be at the start of one of the tapes. Most of the content seems to fall into three categories -- in order of total length, longest first: silence, speech radio, and music. I plan to convert all of the tapes to digital format, and then look again for the recording. The obvious way is to play them all in the background while I'm doing other things. That's

How to control speech output on Bixby

≡放荡痞女 提交于 2019-12-02 08:05:48
I'm using Bixby Developer studio and I have my UI output created and it works. How do I create or control speech output? Bixby will automatically read the text in the UI - if that is sufficient, you are set. (Be careful here - In good VUX design, UI text and speech text are typically different. UI text is often longer, speech text often shorter and more expressive). To have speech different from the UI text, you should set the speech key of a template in a dialog. You can use all of the features of dialog like Bixby EL language here. Update: Bixby now supports SSML https://bixbydevelopers.com

VBA - Save SAPI speech to a GIVEN file type?

扶醉桌前 提交于 2019-12-02 07:06:21
My Task It's possible to use speech in Office applications. My goal to save MS SAPI speech to a given file type. AFAIK my code example saves to a WAV file. Problem I don't know, if it's possible to define the wanted file type extension only or if it's necessary to do some further setting. I didn't find an appropriate solution using VBA. Question Is there a code example how to precisely define a wanted file type, e.g. MP3, save a given text to this file type using the necessary settings (AudioStream)? Code In this code example I' m naming the output file directly as WAV with full uncertainty if

C# system.speech.recognition alternate words

感情迁移 提交于 2019-12-02 06:17:30
I am currently using the Microsoft.Speech API to dictate utterances into text, but what I really need is the alternative dictations the program could use. I am using this for my honours thesis, and for it I wish to know the top 10 interpretations of any utterance. A very similar, if not exact question was asked in 2011: C# system.speech.recognition alternates But was never answered. My question thus is: how does one get the alternatives to an interpretation of a dictation using the Microsoft.Speech API? This MSDN page handles what you're asking quite nicely. For reference, I'll post the

Automate speech input recording in Chrome

雨燕双飞 提交于 2019-12-01 23:57:06
问题 I'm trying to automate the recording of speech in Google's speech input (only works in Chrome). As it is, the user has to click the mic to start the recording but I'm working on an installation where the user won't interact with the computer. Thus I have to trigger the recording some other way. As far as it seems you can't access the speech input functionality by code, i.e. you can't call a function to start recording. So now I'm looking at simulating mouse click on the mic. I've tried using

Automate speech input recording in Chrome

拈花ヽ惹草 提交于 2019-12-01 23:28:38
I'm trying to automate the recording of speech in Google's speech input (only works in Chrome). As it is, the user has to click the mic to start the recording but I'm working on an installation where the user won't interact with the computer. Thus I have to trigger the recording some other way. As far as it seems you can't access the speech input functionality by code, i.e. you can't call a function to start recording. So now I'm looking at simulating mouse click on the mic. I've tried using javaScript but it seems only events and event handlers are affected (e.g. a simulated click on an input