speech-recognition

HTML5 Web Speech API not working locally

ぐ巨炮叔叔 提交于 2019-12-04 07:20:36
I am trying to make this code work and don't know why is it not working locally. I tried the same on CodePen.io and it works. <html> <head> <title>Voice API</title> </head> <body> <button onClick="func()">Click Me</button> <script> function func() { alert('Hello'); var recognition = new webkitSpeechRecognition(); recognition.continuous = true; recognition.interimResults = true; recognition.onresult = function(event) { alert(event.results[0][0].transcript); } recognition.start(); } </script> </body> Any suggestions? Code Uniquely You could try adding the following snippet to see what error is

Speech to text Conversion.?

空扰寡人 提交于 2019-12-04 06:57:16
问题 For My Iphone Application I need a speech to text library. Can any one suggest me a solution. After two days digging what i found is Google speech to text API and open source OpenEars Library. Can any one suggest one of these.?Which one is better.? 回答1: I don't think the Google APIs are intended for public use. They are services hosted by Google for Android and Chrome. People have reversed engineered the API and built some libraries to let people use it, but I wouldn't build a commercial

why javascript Speech Recognition api is not working without internet?

老子叫甜甜 提交于 2019-12-04 06:56:12
问题 I was working with javascript speech recognition api( new webkitSpeechRecognition() ) and i amazed why it is not working without internet since it is javascript code so it should work offline I checked the network section of chrome developer tools, it is even not making request to internet 回答1: On Chrome, using Speech Recognition on a web page involves a server-based recognition engine. Your audio is sent to a web service for recognition processing, so it won't work offline. 回答2: Looking at

How to convert speech to text during call with different text colors for caller and call receiver?

感情迁移 提交于 2019-12-04 06:50:43
I want to convert speech to text during call. I also want the text to display in different colors: the call initiator's in red and the call receiver's green. During my tests, I converted speech to text during call but was unable to distinguish between the voice of the call initiator and that of the call receiver. Thanks in advance Please Help me out... 来源: https://stackoverflow.com/questions/20964359/how-to-convert-speech-to-text-during-call-with-different-text-colors-for-caller

Android SpeechRecognizer should only be used from the application's main thread

邮差的信 提交于 2019-12-04 06:26:56
问题 I am trying to integrate some of Androids Speech APIS in my AndEngine based game. I placed my code within the BaseGame activity - however this error appears at runtime: 05-06 23:51:28.955: ERROR/AndroidRuntime(553): java.lang.RuntimeException: SpeechRecognizer should be used only from the application's main thread How do I access the applications main thread? And how can I ensure my Speech code runs in it. The setup is as follows: Main Class - BaseGameActivity SpeechClass Main Class

How to Reduce Noise in Sphinx4 application

╄→尐↘猪︶ㄣ 提交于 2019-12-04 06:00:50
问题 I am new to sphinx4 and speech recognition thing. I am creating a speech application by using sphinx4. The issue is noise, which results in recognition by program even without speech input by user ie it is converting speech to text even when there is no speech input by user, thus affecting accuracy. Main issue is how to implement noise reduction. This is because the system detects input even when I dont speak anything into the microphone. So I guess its because of noise. I checked online for

Voice Detection in C#

穿精又带淫゛_ 提交于 2019-12-04 03:34:00
I'm looking for a simple C# real-time voice detection library. The input should be an audio stream, and the output should be "human voice" or "not a human voice". I have no knowledge in speech recognition or signal processing, and I'll appreciate any kind of assistance. Kevin Junghans Take a look at the answer for " Detecting audio silence in WAV files using C# ". I am assuming the input is a WAV file. If not please provide the format of the audio stream, or if you are intending on taking input from the microphone directly. If you can measure the amount of silence in an audio stream and you

Web Speech API Custom Words

点点圈 提交于 2019-12-04 03:11:08
I read through the W3C docs on this and I'm thinking that custom words come from custom grammar, but I tried going to this demo and in the console entered the following javascript: recognition.grammars.addFromString('foo'); Which ran fine and recognition.grammars[0].src returns: "data:application/xml,foo" Note : 'foo' is not the word I'm interested in, but the word I'm interested in isn't an english word, using 'foo' for the example. When I speak my custom word normally, it thinks I'm saying something else (which makes sense). I'm using 'foo' here to protect my brand :) So what I want is to be

Setting up Pocketsphinx for Python in Windows

谁都会走 提交于 2019-12-04 02:21:57
问题 Can somebody help me in building pocketsphinx speech recognition in windows. I'm facing difficulty in understanding the instruction provided by sphinx in ths page. I want to develop a speech controlled computer automation application, and I'm using Python. I don't know how to install sphinx so that I can import it in the Python environment like this: import pocketsphinx as ps But can't make out anything from it. I was able to do it easily in Ubuntu using the sudo apt-get install sphinx* But,

How to add custom SR (Speech Recognition) to Microsoft SAPI

社会主义新天地 提交于 2019-12-04 02:19:42
问题 I have a Speech Recognition application for a Language X. This language is not supported by Microsoft SAPI. How can I add this SR for Language X to Microsoft SAPI so that I can use it via Microsoft SAPI ? So What I wonder is Can I add a custom SR to Microsoft SAPI? If so How? If It is a complex process, where to find details? 回答1: SAPI is just the application programming interface, it only provides the connector for the speech recognition engine. There could be multiple implementations of the