adding pause functionality to google speech to text api - android-studio

Hey guys I'm doing a project that requires google speech to text api and I got the code from
www.androidhive.info/2014/07/android-speech-to-text-tutorial/
But I would like to add some funcgiomalities such as pausing it and adding an icon to go to voice settings
Thanks in advance :)

Related

integration Buttons in Dialogflow Web demo Chatbot

i have a question about chatbots with dialogflow.
I am currently building a chatbot in Dialogflow. I would like to add this chatbot to my website. My problem is that this chatbot should also contain buttons, that the user can click on this. I have built some buttons,but I can't see the buttons in the Dialogflow web demo. There are buttons on dialogflow console, but it isn't shown on the web demo. Does anyone know what that could be?
I only found it as a source kommunicate.io, which didn't really help me either.
Thanks for answers..
Dialogflow Web Demo does not support rich responses (buttons, cards, images etc..). For integrating it to your webpage you can either use third-party solutions like Kommunicate or build your own web wedge.
Yeah, DialogFlow web demo does not provide rich responses like the card, quick replies & suggestion chips. But you can use Dialog Flow messenger(New Feature) to add buttons & images. You've to use Custom Payload for getting a rich response.

How to use Google Assistant voice as Text to Speech

Hi is there any way of using Google Assistant as a Text to Speech and output mp3 file.
I know of CLOUD TEXT-TO-SPEECH program, but I want to use Google assistant's new voice which is more clear and realistic
thanks in advance

Enabling the microphone in a browser using node.js and capturing the information spoken

I have been struggling for a while and have been looking through many examples on how to enable the mic in a browser with Node.js. I have seen several Javascript examples but, I can't get the spoken content out of them and store it in variables. How can I enable the mic using Node.js? Will I need a specific npm package? I am currently working with the IBM Watson Speech to Text api. Any help is appreciated! Thanks in advance!
You will need to enable the mic in the browser using a client side library.
Use the Speech-to-Text SDK here:
https://github.com/watson-developer-cloud/speech-javascript-sdk
And a working example here:
https://watson-speech.mybluemix.net/microphone-streaming.html
Please be aware that streaming microphone will not work on any version of Safari. You will need to use FireFox, Chrome or IE to use streaming microphone into Watson Speech to Text. There's a YouTube tutorial on building a simple Bluemix App using Speech to Text here: (see Chapter 3) Youtube TutorialThe supporting code is in a public git repo here: Zero To Cognitive Repo

Detect audio from the user and converte to text to command AI bots in Unity

I am making a game where I want to command the AI using word i speak.
Say for example I can say go and AI bot goes to certain distance.
Question is I am finding asset and no provider is giving me grantee that it is possible ?
What are the difficulties for doing it?
I am programmer so if some one suggest the way to handle it I can do it.
Should I make mic listener on all the time and read audio and then pass audio to some external sdk which can convert my voice to text ?
these are the asset provider i have contacted.
https://www.assetstore.unity3d.com/en/#!/content/73036
https://www.assetstore.unity3d.com/en/#!/content/45168
https://www.assetstore.unity3d.com/en/#!/content/47520
and few more !
If someone just explains the steps I need to follow then I can try it for sure.
I am currently using this external api for pretty much the same thing: https://api.ai/
It comes with a unity SDK that works quite well:
https://github.com/api-ai/api-ai-unity-sample#apiai-unity-plugin
You have to connect a audio source to the sdk, and tell it to start listening. It will then convert your voice audio to text, and even detect pre-selected intentions from your voice audio / text.
You can find all steps on how to integrate the unity plugin in the api.ai Unity SDK documentation on github.
EDIT: It's free too btw :)
If you want to recognize offline without sending data to the server, you need to try this plugin:
https://github.com/dimixar/unity3DPocketSphinx-android-lib
It uses open source speech recognition engine CMUSphinx

What is the best solutions for Speech To Text?

I want to build a web site. Everyone can run it from any browser. it have a function to Speech to text. Are there any solution for this ?
There are many solution to this if you search in google.
PHP SPEECH TO TEXT
This is a PHP script that uses Google Speech To Text API
You could definitely impliment this in your project.
Hope this helps!

Resources