Results 1 to 4 of 4

Thread: Javascript SDK

  1. #1
    Administrator
    Join Date
    Mar 2011
    Posts
    85

    Post Javascript SDK

    Please see the iSpeech Text to Speech demo for an example.

    For example,

    http://www.ispeech.org/text.to.speech

  2. #2
    Junior Member
    Join Date
    Jul 2012
    Posts
    4
    How was the javascript sdk implemented? Can you provide some sample js code?

  3. #3
    Administrator
    Join Date
    Mar 2011
    Posts
    85
    Choose an audio player that's capable of playing mp3s from an http server. Put the iSpeech API text-to-speech request URL in the audio file field.

    For example,
    Code:
    <audio preload="auto" autoplay="autoplay"><source src="https://api.ispeech.org/api/rest?voice=usenglishfemale&action=convert&text=a&apikey=developerdemokeydeveloperdemokey&speed=0"></source></audio>
    Another example,
    Code:
    <iframe src="https://api.ispeech.org/api/rest?voice=usenglishfemale&action=convert&text=a&apikey=developerdemokeydeveloperdemokey&speed=0"></iframe>

    Another example,
    Code:
    <object type="application/x-shockwave-flash" data="/dewplayer.swf" width="1" height="1" id="dewplayer" name="dewplayer"> <param name="wmode" value="transparent" /><param name="movie" value="dewplayer.swf" /> <param name="flashvars" value="mp3='+encodeURIComponent('https://api.ispeech.org/api/rest?voice=usenglishfemale&action=convert&text=a&apikey=developerdemokeydeveloperdemokey&speed=0')+'&amp;autostart=1" /> </object>

  4. #4
    Junior Member
    Join Date
    Dec 2013
    Posts
    1
    I have been meaning to write something like this on my website and you have given me an idea. Your post will be rather good.
    sdcvc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •