Welcome, Guest
Username: Password: Remember me

TOPIC: web speech api

web speech api 7 months 1 week ago #106180

  • ddrmoscow
  • ddrmoscow's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

web speech api 7 months 1 week ago #106182

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6429
  • Thank you received: 839
  • Karma: 249
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.
Last Edit: 7 months 1 week ago by DenisChenu.
The administrator has disabled public write access.

web speech api 7 months 1 week ago #106183

  • ddrmoscow
  • ddrmoscow's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

web speech api 7 months 1 week ago #106186

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6429
  • Thank you received: 839
  • Karma: 249
Then:
$('input[type="text"],textarea', thisQuestion).attr('x-webkit-speech','x-webkit-speech');
The administrator has disabled public write access.
The following user(s) said Thank You: ddrmoscow
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image