Instant text to speech

rp-7

#1

Hi All,
I have integrated instant text to speech from user input using js library into Axure. Please check the below demo.

Untitled Document

ResponsiveVoice is a HTML5-based Text-To-Speech library designed to add voice features to web sites and apps across all smartphone, tablet and desktop devices. It supports 51 languages through 168 voices, no dependencies.

More information: ResponsiveVoice.JS

I hope it will be useful for all.

Thanks and Regard,
Vikram
Responsive_Voice.rp (60.8 KB)


#2

This is awesome. I can’t get it to work in Firefox, but it works in Chrome and the results are just what I needed.

I wonder if anyone has managed to integrate speech input (recognition) as simply and easily? There are a ton of API’s out there, but I haven’t seen anything as simple to integrate as this -

Tony


#3

Hello Vikram
I am not able to get this to help - i am using axure 8.0 could you kindly help>?
Ujwal


#4

Yeah, it doesn’t work for me either, Windows 10 with latest Chrome (nor Firefox, nor Edge, nor MSIE)

I did get it to work on AxShare here: Responsive Voice
and using this line in a plugin:

<script src='https://code.responsivevoice.org/responsivevoice.js'></script>

So, must be the way the javascript is injected in the OnPageLoad code…

javascript:var jsurl_one = document.createElement('script');
jsurl_one.setAttribute("type", "text/javascript");
jsurl_one.setAttribute("src", "https://code.responsivevoice.org/responsivevoice.js");
var head = document.getElementsByTagName('head')[0];
head.appendChild(jsurl_one);

Indeed, if I edit the generated Axure file directly and add the script to the head, it works. I usually inject javascript using Gregor’s Javascript Engine approach, but for some reason could not just add the this script and get it to work…


Nested Repeater Alternative?
#5

With a slight modification to this other method of injecting javascript (https://www.axure.com/c/forum/tips-tricks-examples/20739-improved-javascript-injection.html) --I was able to get this responsiveVoice to work in Axure.

See details in that thread, and here is a test rp file that works for me in Chrome and Firefox (but not Edge or MSIE).Javascript with External JS.rp (58.4 KB)


Voice command JS issue
unlisted #6

closed #7