Can google speech api convert aac audio files to text - encoding

I am working with integrating Facebook messenger api with bot (dialogflow). Here I receive customer speech from facebook messenger in the format of aac.
Is it possible to use google speech api to convert audio file (which is in aac format) to text?

AAC is a global type that contain MP3 or MP4 for example.
So try to use LINEAR16 as AudioFormat. If it doesn't work you have to transcode it before with AMR_WB for example

Related

can you load videos in flutter through an api?

I found this article to upload videos but it already has the urls of the videos written.
I need to pass the videos through an api.
Any ideas??
https://medium.com/#sanjeevmadhav03/preloading-videos-in-flutter-4b65cf0681c6
Check if your api endpoint Supports upload of binary files. If it does, check if you're given url of the location of the video

Post an mp3 to a users feed via the Feed Dialog

According to https://developers.facebook.com/docs/reference/dialogs/feed/ one can post mp3s to a users feed by constructing a URL like:
https://www.facebook.com/dialog/feed?+app_id=<APP-ID>+&display=popup&caption=<CAPTION>&redirect_uri=<REDIRECT>&picture=<PICTURE>&source=<MP3-FILE>&description=<DESCRIPTION>
This produces a share dialog, but when the source parameter is added, the file is not embedded on the page (nor is any link to the file given).
I had expected to be able to embed the mp3 like the documentation says. I seem to remember that facebook had it's own player to play embedded mp3 files from the feed - this is not showing up.
Has this functionality been disabled?
I think the API still allows you to attach audio data but Facebook's audio player was removed in 2011 -
To play music inline now, you need to specify a flash player which loads the desired audio as an attached 'video' ( via the same 'source' parameter of the feed dialog )
You could also use a third party like Soundcloud who have a flash player for the content uploaded there

Streaming video from Facebook

I want to stream a video from Facebook to my site and use my own custom video player (flowplayer for instance) to play it. Basicly I want to access the registered user's videos and play them in my application. is it possible? If it is, how can I achieve that?
Fairly easy, but there are a few steps to go thru.
Grab a list of their videos from the Graph API me/videos using their user access_token
Present user with list of their videos, let user select video to watch.
For the id of the video selected, call the Graph API and FQL the src or src_hq which gives you the link to the mp4 of the video
Point your custom player to the mp4 link.

Play MP3 on facebook wall making it impossible to download the file

I need a possibility to insert a flash mp3 player on a facebook wall entry. I know I can do this just by posting a mp3 URL or by using fb:mp3, but both make it possible for the user to download. Due to legal reasons this must not be possible.
Can anyone point me to a mp3-player-app that can do this, where the file URL is encrypded / hidden?
Flowplayer has an option to stream the audio so that it cannot be downloaded. See the section titled "Secure your audio files from direct download". This should work on Facebook.

Upload an audio file to Facebook and Twitter

Is it possible to upload an audio file to Facebook and Twitter?
I tried a lot and do googling but no success so far. So I just want to confirm:
Facebook API for upload audio file
Twitter API for upload audio file
What is the API link if it is supported?
No it is not. Twitter only supports text and Facebook only supports text, images, and video. You could consider using something like Amazon S3 to store the files and post links to Twitter/Facebook.
If you want to add audio to twitter, then you can use services like http://tvider.com/
Another method is, start your own Audio uploading and sharing website, and you can tweet the link from your website through Twitter API.
Example:
Hoorey!! This is my first audio tweet!!! http://aud.it/3yU2d
(2 minutes ago via Aud.it)
Where I just named it as "Aud.it" or http://aud.it/ thats all!
Some mathematics:
This audio tweets can be of a fixed length, say 15 seconds, and a constant bitrate of 8kbps (enough for speech voice recording).
So, total (8Kbps/8bits)*15s = 15KB for each recording.
In 1MB, you can have nearly 540 records, and in 1 GB, 70,000 recordings.
Also for delivering a single audio tweet, you need less than 1 second on a normal 40Kbps dial-up line.
I would recommend simply making an mp4 file without video, this is probably the closest you will get, and it has official support.