Audio file to speech-to-text android engine - android

I would the android speech-to-text system analyze an audio file instead a normal microphone flow, is it possible?

It is ofcourse possible. Take a look at Google Cloud Speech, it accepts a local audio file or better, an URL to that audio file.
Here is offical docs.

Related

Speech-to-Text from audio file (Android)

I am implementing a Voice-Recognition recording feature in my app which saves the recording as a.gp3 audio file using MediaRecorder library. I now want to apply Speech-to-Text conversion on the audio file, does anyone know a way to do it? (Not using SpeechRecognizer) because the voice input needs to arrive from an audio file
Thanks everyone in advance! :)

AudioTrack and Google cast / Chrome cast

I am trying to enable Google Cast / Chromecast support to my audio app which decodes audio and writes the bytes to AudioTrack and play it.
I know that using audio files, it is very simple as I can just provide the url for the file and it works; but what about situations like mine? I could not find an example for this. Where can I find more information or do you have any experience with this kind of thing? (Adding Google Cast support to your live audio streaming app)
The Cast media player needs a media source served over HTTP. You will need to provide a web server to access your audio data.

Playing audio from variable in React Native

I'm new to react native and I'm trying to code a POC where I use the text-to-speech feature from Watson-IBM.
This service, from IBM, has an HTTP REST interface that I provide the text and it returns to me the .wav (for example) file with the audio of that text.
So, in a way, I have the "audio" saved in a variable.
Now I need to play this audio.
I've looked for some libraries that would play this audio. However, most of them need a "real file", with a path, to be able to play the audio.
However, in my case, I do not have a "real file" (by "real file", I mean a file in the folder of the project, for example). I have only a variable with this information.
I could save this variable to a file and then read from this file, but I am not sure if this is the best way to go.
So, can anyone suggest to me a library (or a better approach) to play this audio that came from Watson text-to-speech in my react native app?
(I need it to work only on Android. No need for iOS support.)
Thank you in advance.
You could use react-native-audio-toolkit for playing network resources.
For Watson API Authentication, you could get authentication token then use it via watson-token query parameter.
import { Player } from 'react-native-audio-toolkit';
new Player('https://stream.watsonplatform.net/text-to-speech/api/v1/synthesize?watson-token=TOKEN').play();
Watson API Doc: https://www.ibm.com/watson/developercloud/text-to-speech/api/v1/

Android: Where is Speech Recognition temp audio file saved?

When I press and hold the search key on my Droid it starts the built in Android voice recognition.
While it is listening, if I speak the words "Note to self" and then keep talking, when done I get an email ready to send complete with the STT translation and the amr encoded audio file as an attachment.
I want to include this same functionality in my own program. More specifically, I need access to the audio file that is (or appears to be) created by speechrecognizer.
How do I access this audio file?
I am using api level 7. If I try to record and use speechrecognizer at same time it fails.
Any help appreciated.
I don't think the com.google.android.voicesearch application provides access to the recorded audio files. The files are temporarily stored in /data/data/com.google.android.voicesearch/files after the user makes a recording, but I'm not sure how you would get read access to those files.

Search for all video or audio files in Android

I made a project like video/audio player in android.
I want to search all video and audio files available on the device, how can I do this?
Use the content provider to query the media store, see the documentation at
https://developer.android.com/reference/android/provider/MediaStore.html
https://developer.android.com/guide/topics/providers/content-providers.html

Categories

Resources