web speech api

Mehr
3 Jahre 3 Monate her #106180 von ddrmoscow
ddrmoscow erstellte das Thema web speech api
Hello,
Have anybody tried to add "Web speech API" feachure to enable speech recognition for text input fields?
I've succeed only with short text type questions, here's the script:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
var thisQuestion = $('#question{QID}');
$('input[type="text"]', thisQuestion).attr('x-webkit-speech','x-webkit-speech');
});

</script>

But it doesn't work for long and huge text fields, neither for comments.

Would be nice to have an option of speech input instead of typing long texts,
Cincerely,
Alex

Bitte Anmelden um der Konversation beizutretten.

Mehr
3 Jahre 3 Monate her - 3 Jahre 3 Monate her #106182 von DenisChenu
DenisChenu antwortete auf das Thema: web speech api
2 minute in google and :

The x-webkit-speech attribute can be used on any HTML5 input element with a type of text, number, tel, or search. Unfortunately, it’s not permitted on textarea fields. I suspect that’s to stop people using it for long dictations which could result in inaccurate results or high memory usage.


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Letzte Änderung: 3 Jahre 3 Monate her von DenisChenu.

Bitte Anmelden um der Konversation beizutretten.

Mehr
3 Jahre 3 Monate her #106183 von ddrmoscow
ddrmoscow antwortete auf das Thema: web speech api
Denis,Thank you for reply,
Yes, you're right , they could not manage this few years ago, untill i found page 14 especially where they declare textarea as well

Bitte Anmelden um der Konversation beizutretten.

Mehr
3 Jahre 3 Monate her #106186 von DenisChenu
DenisChenu antwortete auf das Thema: web speech api
Then:
$('input[type="text"],textarea', thisQuestion).attr('x-webkit-speech','x-webkit-speech');

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Folgende Benutzer bedankten sich: ddrmoscow

Bitte Anmelden um der Konversation beizutretten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten