I'm interested in creating a Capsule for Bixby which will play audio files upon invocation - similar to the narrative news / flash briefing functions on Google Home & Alexa & their respective richMedia responses & AudioPlayer directives.
Is this possible with Bixby right now? The documentation does not mention an audio player & after googling, all I can find re: audio is that You can use Bixby to play audio from Spotify.
Has anyone built a capsule that plays dev supplied mp3/wav audio?
Not at the moment but the ability to play mp3 files will be coming shortly. Stay tuned!
Related
I've built an audioPlayer Capsule that retrieves and plays a playlist of audio from a remote endpoint.
In the simulator and on my Galaxy s9, I can invoke the Capsule & play audio. I can also use the navigation controls to skip forward / go back.
However, in both the simulator & the device, Next, Previous, Pause, Stop, and Resume commands are all interpreted as PlayPlaylist Actions (which passes my playlist to audioPlay.PlayAudio) and simply start playing the audio from the beginning.
Do I need to hook into or build new Actions to manually trigger these audio control functions? I figured these would be "free" or built-in.
Additionally, I'm trying to figure out how to identify which AudioItem index I'm playing, so I can update the result view.
Voice command such as play/stop/next/previous/resume are built-in for audio player (not the library, but in marketplace itself).
Thus, developer at current stage has no control over the audio player once start player and has to rely on the voice command.
As a result:
Developer should NOT add training for these voice command.
There is no way to test the voice command in IDE or on-device testing, but rest assured that once your capsule released to marketplace these voice command would work.
You can check any of the sleep sound capsule in market place and verify the feature. None of them has training for voice command.
I haven't seen that behavior. Since you have an S9, you can confirm in the Bixby Market place with an existing capsule that's using the audio player. For example, you can enable AudioBurst. Start the audio player, then click on the Bixby button and and say similar commands like...
Next, Previous, Pause, etc
I was getting the expected behavior. If you're not, it might be something related to your specific capsule. Please confirm at your convenience.
I have made a web video player using the Media Source Extension API. The video and audio my player downloads and plays is not secure. As in you can go to the Network in Google Chrome Inspect and download the video and audio and play it through a media player. I want to make my audio and video files to be played via my video player only.
A perfect secure video files example is here. The video player: http://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html. U can insert the source in the input: https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd. And when I download the files from Network in the Google Chrome Inspect, I cannot play the video file of .m4v in VLC or else where. So I think that this is secure. The files downloaded for playback can be found here: http://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps_1280x720_4000k.
Netflix has very very secured video files where the file try isn't even defined. So can someone advise me how to secure my video and audio files to be downloaded and played from else where. Thanks
A sample of my video player project: https://drive.google.com/file/d/156mDgIltBGMkXhx4LZfShxv3A8JrwkNP/view?usp=sharing
The m4v files can be played, you just need to append them to the initialization fragment. Netflix does not use Media Source Extensions directly. They use Encrypted Media Extensions along with a DRM provider such as widevine.
In short, I have to play RTSP on a Google TV device (Sony nsz-gs7). How can I do it?
Things I tried:
Use NDK to compile ffmpeg, then ffmpeg converts rtsp to udp etc. - Fails because NDK is not supported in Google TV (see: https://developers.google.com/tv/faq#ndk). This method uses ffmpeg as library.
Put ffmpeg executable (compiled with NDK) in an application, then call the app from command line. (see: http://gimite.net/en/index.php?Run%20native%20executable%20in%20Android%20App - first method). I can deploy executable and set its permissions, but cannot execute it; i get "not found" error (its path is correct). If only I could run an executable file in Google TV, the problem would be solved, I think.
Tried to display in VideoView, like Google TV VideoView playing YouTube rtsp videos, it didn't work either.
These approaches all work on Android phones, but I couldn't make them work on Google TV.
Any tips for displaying RTSP or running executable files? Or do I have to wait for NDK support?
Update: If there is an application which can play RTSP streams, we can also use it as a temporary fix.
The current version of Google TV is based on FFMpeg internally and is supposed to play RTSP content of course, if you try that example, you'll want to refresh the url for the RTSP content as YouTube doesn't keep them live long. Since RTSP is a transport format, not a codec, you might want to say what your encoding is.
That said, I've never made RTSP work myself - so I'm not speaking from experience, but I do trust my colleague Shawn who wrote the answer to the link above.
One of the features we announced at Google I/O 2012 was the ability to write your own transport stream and codec's in Java. That software is currently on the LG and will be on most of the others in the next few months.
If your need is urgent write me at Google or on Google+.
It has to work on IE8 and above, and the rest of the modern browsers (Firefox, Chrome, Opera).
Related question:
How to play a notification sound on websites?
I've tried using the Yahoo! Media Player, but it refuses to pick up on my .mp3 links despite them looking like:
<a id="wolf-blue" href="/Public/audio/wolf.mp3">a</a>
Assuming I have a .mp3 file and I want to play it when a timer reaches 0, what do you suggest I use to play this sound file? I do not want to show my users any sort of player UI, just play the sound.
You'll want to check out jPlayer. It's an HTML5 Audio player that has fallback to Flash for browsers that don't support HTML5.
You can use CSS to completely customize the player, including hiding it from view.
I am building an app for iphone and i need to record audio, the docs seem to be missing .3gp format for AVAudioRecorder. Please I need an answer.
Thanks in advance!
Hey #vincent for recording audio and saving them you have checkout these question, they have most of the details required for audio recording and stuff like that.
iPhone: how to download media files and save them on device
iPhone SDK:Saving a streamed audio file to Documents folder