var canvas = document.createElement('canvas'); var cxt = canvas.getContext('2d'); var W = canvas.width = 500; var H = canvas.height = 200; var str = 'Grewer,点击此处'; cxt.textBaseline = 'hanging'; cxt.font = '60px 宋体' var sw = cxt.measureText(str).width…
使用百度语音接口,实现文字转化成语音播放 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=U…