Skip to content

voicepipe/get-voice-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-voice-site

Get human voice with http request

Based on fritx/get-voice

Current demo: http://voice.coding.io?q=check-it-out

API

GET {site}/?q=we-will-rock

Or: GET {site}/?q=we will rock

Or just safer: GET {site}/?q=we%20will%20rock

<audio controls type="audio/mp3" src="{site}/?q=bazinga"></audio>

Or with more fun:

function say(text){
  var query = encodeURIComponent(text)
  $('<audio autoplay type="audio/mp3">')
    .attr('src', '{site}/?q=' + query)
    .on('ended', function(){
      $(this).remove()
    })
    .appendTo(document.body)
}

About

Get human voice with http request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published