开发者

Play Google TTS file in the same browser window

I am playing an audio file using Google TTS (Hello World Example) on a link's click in my website. Ri开发者_运维技巧ght now the target window is a new window. I want the playback to happen on the same window (with an embedded player maybe or just the audio file playing with no controls visible)

Can someone please help me on how to do this?

Thanks.


this is code if your site was asp.net(c#) use it on page load or button click

Response.Write("<EMBED runat='server' src='http://translate.google.com/translate_tts?tl=en&q=%22+" + your Text + "'" + " hidden='true' volume='100' loop='FALSE' autostart='true'></EMBED>");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜