Google Streaming Speech Recognition on an Audio Stream Java - Example App - java

I need do following with my web app.
1.Stream audio from webpage & submit to google cloud speech API & get the result. For that I want to know following?
1.how can i get the audio stream from webpage (access microphone) & submit to
speech API by using web socket or javasdk.
There is a sample for streaming api in java sdk samples but it loading file
from local files. Not real time reading from microphone.
2.How can i do text-to-speech using google cloud API.
Any help would be appreciated.
Thanks,
Pradeep

Related

Google Speech to Text not working with large files

I am trying to convert an audio file into text using Google speech api. If audio is 30 sec or less its working fine, but when audio file is longer then 30 seconds then its not converting audio file into text.
please help me, what should i do?
You should use asynchronous speech recognition, and also upload the audio file to Google Cloud Storage.
Here the audio limit of Speech API

How to send a Wowza Stream to Google Cloud Speech API?

Wowza gives me rtsp://, rtmp:// and m3u8 streams. I want to send this to Google Cloud Speech API, so it transcribes the streaming on the fly.
This API seems to be able to receive only pure byte representation, and the samples on Github show how to do it with a file.
How can I achieve this with the Wowza links?
EDIT: My question is different. In the other question I ask for services that offer that functionality and in this I'm talking of Google Cloud Speech specifically, and how to do it with that API.
One way to get the raw data from a RTSP/RTMP stream would be to use FFMPEG as a client piping the data into your app (FFMPEG providing the transcoding as necessary)
https://ffmpeg.org/ffmpeg-protocols.html
rtmp://[username:password#]server[:port][/app][/instance][/playpath]

How can I stream in android with ftp server?

I can upload and download files on my android app. However, I wish to stream video and audio over 3g/4g like an 'ES File Explorer'. But the problem is I couldn't approach it.
Could anybody tell me a method about ES File Explorer's streaming skill?

Streaming Live TV channel from m3u play list

I am trying to develop an app for live channels streaming
But getting trouble when try to play from m3u play list .
http://jan.newmarch.name/android/StreamingAudio.html
This above link describe Streaming Audio from m3u play list . But I want to
Streaming Video from m3u play list .
Look into VLC as it has strong streaming capabilities, and support for probably any video/audio format. You will need to integrate libvlc in your app and pass command-line options to the libvlc.
If i understood your question correctly, you want to set up a video streaming server. The mostly common video streaming format for internet is HLS, which uses m3u8 playlists. You can start with ffmpeg using this tutorial (or any of tens of the others):
http://www.bogotobogo.com/VideoStreaming/ffmpeg_http_live_streaming_hls.php
However there are a lot of possible approaches depending on your project scale and requirements.
Finally I got the answer
You can parse m3u play list Using by m3u playlist parser Library in java or U Can create custom m3u play list parser also.
I would like share the link one of the m3u playlist parser Library

Upload feature from Google drive & local

Is there a way to upload a file from Google Drive to Blobstore using a Google Appengine Form.
In have a user form which require attachment feature . The attachment can be a file from local or from google Drive .
It Would be nice if any Google Developer post a Java reference code
You can use the Google Docs Picker to select a file on disk or on Google Drive : https://developers.google.com/picker/docs/?hl=fr
For Google Drive files, you can download its on App Engine and then store into the Blobstore or Google Cloud Storage : https://developers.google.com/drive/web/manage-downloads
It's just reading file input stream and write file output stream where you want (but not on file system because it's impossible on App Engine for security reasons)
Relative to Google, there is no good reasons to use blobstore anymore so I advise you to use Cloud Storage.

Categories

Resources