Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8267759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:38:55+00:00 2026-06-08T05:38:55+00:00

I am using a Speech-to-Text software to type in a field, since there is

  • 0

I am using a Speech-to-Text software to type in a field, since there is no screen or mouse or keyboard, I need to send this form after 3 seconds of no typing (actually talking) in this field but the field shouldn’t be empty

I am using PHP but I guess the solution is JavaScript or jQuery, I dont know much in these two so I’d appreciate if you could explain how to use it too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:38:56+00:00Added an answer on June 8, 2026 at 5:38 am
    $(function() {
        var time = 0;
        $("textarea").keyup(function() {
            time = 0;
        });
    
        var int = self.setInterval(function() {
            var s = $("textarea").val();
            if (time++ == 3) {
                if (s != "") alert(s);
                time = 0;
            }
        }, 1000);
    });​
    

    DEMO

    UPDATE:

    As @Tim Down has said,

    The keypress event is designed for handling the a character typed by the user 
    rather than detecting keyboard activity and the delete and backspace keys 
    do not generate characters. Some browsers blur this line somewhat but 
    the general principle is that the keyup and keydown events are there to detect 
    any key being pressed and telling you about which key it is while keypress is 
    for detecting an actual character being typed.
    

    So that would be better if you use keyup instead of keypress, then your timer clear works for any key.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started using .NET speech-to-text library (SpeechRecognizer) While googling and searching this site i
I am using JavaScript for changing text to speech. For this purpose I use
Is there any way, by which we can convert speech to Text using iPhone
I am using Microsoft.Speech SDK (11.0) for converting text to speech. I have a
i am using text to speech, starting audio works fine, but i cant stop
I am designing an app that needs text to speech. I am using the
I am trying to implement text to speech by following this article on the
I can covert the speech that a user spokes to text using Open ears
I am creating an application which converts text to speech using silverlight 4.0. Two
I'm trying to call the text to speech API from Python using win32com.client. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.