- Posts: 21
- Thank you received: 10
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
web speech api
- ddrmoscow
- Topic Author
- Offline
- Junior Member
Less
More
10 years 2 weeks ago #106180
by ddrmoscow
web speech api was created by ddrmoscow
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
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
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
10 years 2 weeks ago - 10 years 2 weeks ago #106182
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic 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 , plugin development .
I don't answer to private message.
Last edit: 10 years 2 weeks ago by DenisChenu.
The topic has been locked.
- ddrmoscow
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 10
10 years 2 weeks ago #106183
by ddrmoscow
Replied by ddrmoscow on topic 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
Yes, you're right , they could not manage this few years ago, untill i found page 14 especially where they declare textarea as well
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
10 years 2 weeks ago #106186
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic web speech api
Then:
$('input[type="text"],textarea', thisQuestion).attr('x-webkit-speech','x-webkit-speech');
$('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 , plugin development .
I don't answer to private message.
The following user(s) said Thank You: ddrmoscow
The topic has been locked.