I am using Node.js Alexa lib: alexa-sdk
I am trying to embed audio in the middle of an SSML response. I am able to add the audio tag at the end of the SSML response, but not in the middle.
For example:
<speak>
You did great!
<audio src='https://s3.amazonaws.com/ask-soundlibrary/human/amzn_sfx_crowd_applause_05.mp3'/>
I had a lot of fun, I hope you did too!
</speak>
When I send the above as the SSML to speak, Alexa simulator synthesizes "You did great!" and stops there.
Does anyone know what am I doing wrong or how I can make this work? Does embedding audio tag in the middle of the SSML text not work?
Even the alexa docs has an example with audio in the middle, and that does not work for me in the simulator.
thank you
P.S. I asked this question on the amazon forum almost 10 days ago and no reply, which is not uncommon (not the most active place for help)
I tried your SSML and it is working fine. I tested it in the Voice & Tone tab of the Alexa Test Simulator.
Both the mp3 files (one from the comment) are playing in the expected order.
<speak>
You did great!
<audio src='https://s3.amazonaws.com/ask-soundlibrary/home/amzn_sfx_door_open_01.mp3'/>
I had a lot of fun, I hope you did too!
<audio src='https://s3.amazonaws.com/ask-soundlibrary/human/amzn_sfx_crowd_applause_05.mp3'/>
</speak>
It doesn't matter where the <audio> tag is. It will work even if put it right after the <speak> tag
<speak>
<audio src='https://s3.amazonaws.com/ask-soundlibrary/human/amzn_sfx_crowd_applause_05.mp3'/>
You did great!
I had a lot of fun, I hope you did too!
</speak>
Related
I have a problem playing .pls live streaming channel on windows phone 7 media element. i asked this question before as well and someone said that you need to parse the address inside .pls becuase .pls is a playlist format and you have link to play audio inside it but when i parse: http:// 69.175.103.226:8540/listen.pls i get http:// 69.175.103.226:8540
you can check this by typing this on browser http:// 69.175.103.226:8540/listen.pls and download .pls and open with notepad and it is not being played by windows phone
any idea how to do this? kindly help me i am stuck
Thanks
From what I can tell it is a 48kbps MP3 stream. I don't see why it wouldn't work unless you do something wrong with the way you are setting the media source.
Should be:
mediaElement.Source = new Uri("URL_TO_STREAM",UriKind.Absolute);
mediaElement.Play();
I have a mp4 video that plays properly on iOS5 but not on iOS6. Here is a direct link to video for testing:
http://www.wordcafe.de/videos/test.mp4
All other videos in the website work on iOS6 and only this particular one can't be played on iOS6. I thought the problem is with my HTML5 video player, but then I saw that even a direct link to video as pasted above doesn't work. On my iPodTouch iOS6 I see the play icon crossed out by a diagonal line. Does anybody know why and how this problem can be fixed?
Thanks
Try setting the field order to progressive. Found on Apple Support communities
Currently in full development of a mobile application video sharing (based on PhoneGap), I hesitate about the method used to send / play videos on mobile. So I have a choice between using the HTML5 video tag (which apparently require an additional plugin so that there was no problem in android), and the establishment of an RTSP streaming server, which I think the native video player will be directly launch.
I want to know what would be the best solution to watch these videos without losing quality with the ability to navigate the time of the video.
Thank you,
Yeppao
Both streamed videos and embedded <video> elements will open in the native player (at the time of writing at least) and you won't be able to display video inline. See this recent question of mine.
So, at least to me, this boils down to the question if you can afford the streaming (both in terms of costs and maintenance) since a streamed video will always offer a better user experience (in case the streaming works properly...) than a downloaded one.
can i record the sound with microphone, with help of flash or silverlight??
Yes. Both technologies allow you to do this, though the methods for doing so differ. I can't give details on a Flash implementation of it, but Tim Heuer's video gives a good walkthrough of how can access both the webcam and the microphone in Silverlight.
http://www.silverlight.net/learn/videos/silverlight-4-videos/access-web-camera-microphone/
I'm not certain about flash but with silverlight I know that you can't.
Probably never will be able to do so. Think about browsing to a silverlight site that activates your microphone and records conversation in your office. Sounds like a bad idea to me!
I'm trying to make a small silverlight application but i became across a problem, playing videos from youtube.
I tried a method with a html conteiner to embed the youtube flash player, but with this method i need to activate the option windowsless, and thats is not a good ideia for my web site.
If anyone have a good ideia,I'm glad to hear
thanks
BasicSide
Silverlight actually supports the H.264 format so you can play videos directly within your application.
There's a tutorial here that outlines how to do this:
http://www.uxpassion.com/2009/08/silverlight-tutorial-play-hd-youtube-videos-silverlight/