speech-recognition

Voice/Speech to text [closed]

断了今生、忘了曾经 提交于 2020-03-12 08:31:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I need an API or library (preferably free) that will convert voice/speech through a microphone, into text (string). Additionally, I will need an API or library that can do text-to-speech. I'd like to use C# and .NET, but other languages will suffice. Thanks. 回答1: You can use CMU Sphinx as it is pretty open and

AttributeError: __enter__ while trying to take input from microphone

假装没事ソ 提交于 2020-02-25 06:40:43
问题 I had been trying to take input from microphone in my python program using speech_recognition I try to run this code: - import speech_recognition as sr import pyaudio r = sr.Recognizer() with sr.Microphone as source: audio = r.listen(source) text = r.recognize_google(audio) print(text) But it does not run. It says: - "C:\Users\Bravo Six\AppData\Local\Programs\Python\Python37-32\python.exe" "D:/BROTEEN/Works/Python/VALINI/speech testing.py" Traceback (most recent call last): File "D:/BROTEEN

AttributeError: __enter__ while trying to take input from microphone

一个人想着一个人 提交于 2020-02-25 06:38:27
问题 I had been trying to take input from microphone in my python program using speech_recognition I try to run this code: - import speech_recognition as sr import pyaudio r = sr.Recognizer() with sr.Microphone as source: audio = r.listen(source) text = r.recognize_google(audio) print(text) But it does not run. It says: - "C:\Users\Bravo Six\AppData\Local\Programs\Python\Python37-32\python.exe" "D:/BROTEEN/Works/Python/VALINI/speech testing.py" Traceback (most recent call last): File "D:/BROTEEN

Android extras about speech recognition does not work

末鹿安然 提交于 2020-02-11 06:09:15
问题 I am currently busy with speech recognition, and I want speech recognizer to listen me continously, forever. The purpose of the app is, it is going to wait for speech of a specific keyword: when the user says this keyword, the service becomes ready to receive user voice commands After research I found that we can manupulate the time that the recognizer listens. By these constants: By the way the default recognizer service listens about 10 seconds. (The google api) String EXTRA_SPEECH_INPUT

Android extras about speech recognition does not work

那年仲夏 提交于 2020-02-11 06:08:19
问题 I am currently busy with speech recognition, and I want speech recognizer to listen me continously, forever. The purpose of the app is, it is going to wait for speech of a specific keyword: when the user says this keyword, the service becomes ready to receive user voice commands After research I found that we can manupulate the time that the recognizer listens. By these constants: By the way the default recognizer service listens about 10 seconds. (The google api) String EXTRA_SPEECH_INPUT

Scream detection

我的梦境 提交于 2020-02-08 09:49:47
问题 I'm working on a project that need to detect some voice patterns. for example "someone is screaming": since I do not know who is that person is,a child, men, women ... each have his own voice... etc. So, I'm looking for a way to detect a "screaming" by for example, save as many fingerprints of "screaming" as possible, then when I need to check if a voice is a "screaming" voice, I may create a fingerprint for it, then search and see if I can find a similarity on the list of "screaming"

Permissions for Voice search

喜你入骨 提交于 2020-02-03 04:19:47
问题 Running Google Voice Search on my ICS (Android 4.0.4) tablet yields strange behavior with the following warnings: W/PackageManager( 1571): Unknown permission com.google.android.voicesearch.SHORTCUTS_ACCESS in package com.google.android.googlequicksearchbox W/PackageManager( 1571): Unknown permission com.google.android.voicesearch.AUDIO_FILE_ACCESS in package com.google.android.gm W/RecognitionManagerService( 1571): no available voice recognition services found I/ActivityManager( 1571): Start

Python pocketsphinx recognition from the microphone

瘦欲@ 提交于 2020-02-02 16:40:00
问题 I have installed and setup both pocketsphinx and sphinxbase packages in python. I have also taken code of speech recognition for github and changed both data and mode directory as per requirement but still it is unable to stream by voice when I am trying to run it by "python test.py" Here is the code: #!/usr/bin/env python import os import sphinxbase as sb import pocketsphinx as ps MODELDIR = '/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' DATADIR='/usr/lib/python2.7

Python pocketsphinx recognition from the microphone

偶尔善良 提交于 2020-02-02 16:39:11
问题 I have installed and setup both pocketsphinx and sphinxbase packages in python. I have also taken code of speech recognition for github and changed both data and mode directory as per requirement but still it is unable to stream by voice when I am trying to run it by "python test.py" Here is the code: #!/usr/bin/env python import os import sphinxbase as sb import pocketsphinx as ps MODELDIR = '/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' DATADIR='/usr/lib/python2.7

Python pocketsphinx recognition from the microphone

你离开我真会死。 提交于 2020-02-02 16:38:11
问题 I have installed and setup both pocketsphinx and sphinxbase packages in python. I have also taken code of speech recognition for github and changed both data and mode directory as per requirement but still it is unable to stream by voice when I am trying to run it by "python test.py" Here is the code: #!/usr/bin/env python import os import sphinxbase as sb import pocketsphinx as ps MODELDIR = '/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' DATADIR='/usr/lib/python2.7