speech-recognition

Speech to Text C# Train For Better Translation

心已入冬 提交于 2019-12-24 13:03:01
问题 I need to way to make the speech to text smarter as many of the words it is just getting incorrect in the translation. I cannot find much help on adding a list of words, not commands or grammar but words to help better translate audio recording. Here is the code I found on the web, and this works, but I need to way to train, or make the engine smarter. Any ideas? Thanks. static void Main(string[] args) { // Create an in-process speech recognizer for the en-US locale. using

SFSpeechRecognizer multiple languages

北城以北 提交于 2019-12-24 12:35:04
问题 I am building a search that supports voice recognition and transforms speech to text so I am using SFSpeechRecognizer . But the problem is that I need to support multiple languages at the same time such as (" en_US ", " fr ", vi , ar ). The main idea is that the user can speak for example 1 word in English and the other in French and I want the engine to detect this. Currently, I am using this to set my main language ENGLISH: private let speechRecognizer = SFSpeechRecognizer(locale: Locale

Ionic Speech Recognition - run time error Object(…) is not a function at hasPermission

人走茶凉 提交于 2019-12-24 11:39:10
问题 I'm trying to implement a simple speech recognition service (separately for now, to add it eventually in a bigger app). I'm getting a weird run-time error, that I couldn't get any answer to it online or in documentation. here's the code.... app.module.ts import { SpeechRecognition } from '@ionic-native/speech-recognition/ngx'; ..... providers: [ StatusBar, SplashScreen, SpeechRecognition, {provide: ErrorHandler, useClass: IonicErrorHandler}] home.ts import { SpeechRecognition } from '@ionic

Google speech to text: Extra language set to “kn” but not working

社会主义新天地 提交于 2019-12-24 10:48:04
问题 I am trying to use Google Speech to Text api for Kannada language and I am setting EXTRA_LANGUAGE to "kn" for the same but it is not working. Could somebody please help? Below is the code I am using. Locale locale = new Locale("kn"); //Locale.setDefault(locale); Log.e(TAG, "Locale " + locale.getLanguage() + " present: " + isLocalePresent(locale)); if (isLocalePresent(locale)) { //int randomInt = random.nextInt(allItemsLength); Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE

Is it possible to use Android API outside an Android project?

强颜欢笑 提交于 2019-12-24 09:28:22
问题 More specifically, is it possible for an non-android Java application to use android's speech recognition. I figured I could use cmu sphinx or something similar, but the whole sending voice input to a server that does the real recognition and returns an array of strings seems to be much easier to set up an reduces the size of the project. Also, if this is possible, the project will be able to use Google's (ginormous) speech corpus. 回答1: More specifically, is it possible for an non-android

Google speech to text API using C#

我是研究僧i 提交于 2019-12-24 08:34:14
问题 I'm using google speech recognition for speech to text of a audio file. Response i get as output shows only {"result":[]}. I don't see any output result. i have picked my code from How to use google speech recognition api in c#? and Google speech to text API in C# . i have tried almost every answer in above links still i am getting the error. My code is: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using

Twilio IBM Watson Speech To Text Addon Callback function not getting triggered

99封情书 提交于 2019-12-24 08:26:38
问题 My objective is to get transcribe (Caller's input - IVR Conversation) using IBM Watson Speech to Text Addon which is available on Twilio platform (Twilio Add-ons feature). IBM watson speech to text add-on is installed. Problem: Callback function which defined on Callback URL is not getting triggered. I have followed the guidelines mentioned on this link I have configured my Programmable voice application as web hook function. (Using NGROK) and Callback function is also configured as a web

ImportError: cannot import name 'enums'

≯℡__Kan透↙ 提交于 2019-12-24 08:04:06
问题 I am trying to use Google Speech API to recognize speech from mic input in real time. I have tried https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/cloud-client/transcribe_streaming_mic.py but this error came out. Anybody knows how to solve this? from google.cloud.speech import enums ImportError: cannot import name 'enums' Update: I have solved the problem by running the code in virtual environment as suggested by the official Cloud Speech API website. However, I

Speech to text and Text to speech at same time

旧巷老猫 提交于 2019-12-24 05:28:11
问题 INTRODUCTION I'm developing an app where I need to use booth SpeechRecognizer and TTS. But I'm facing some problems while trying this. The main one is that if I initialize TTS, SpeechRecgonizer seems not to work, and If I disable TTS, then SpeechRecognizer works fine. Next there is code snipet with the relevant code: CODE public class GameActivity extends Activity implements OnInitListener { private static TextToSpeech tts; @Override public void onCreate(Bundle savedInstanceState) { super

Speech Recognition Engine does not shut down - invalid operation exception

牧云@^-^@ 提交于 2019-12-24 03:58:15
问题 Decided to wire up a simple speech writing application as a test bed for learning Speech Recognition + F#. To allow the speech recognition to be started or stopped I wired up the following methods: let Activate () = sp.RecognizeAsync(RecognizeMode.Multiple) let Deactivate () = sp.RecognizeAsyncCancel() sp.RecognizeAsyncStop() I can start the engine fine with the default grammar dictionary. The problem comes whens I call the deactivate method. I often get the following exception: An unhandled