Code Monkey home page Code Monkey logo

speech-to-text-converter's Introduction

speech-to-text-converter

speech to text

This project is a web-based Speech To Text converter. Users can speak into their device's microphone, and the spoken words are transcribed into text. The interface includes language selection, a conversion button, a text area to display the result, and buttons to copy, download, and clear the text. The code is implemented using HTML, CSS, and JavaScript, and it provides a user-friendly interface for Speech To Text converter. Below, we will explain the code structure and functionality.

HTML File (index.html):

 - The HTML file sets up the structure of the web page for a Speech To Text converter.
 - Header with a logo and the main heading.
 - Speech To Text converter section with language selection, conversion button, result textarea, and action buttons.
 - External script references for language options (`languages-option.js`) and functionality (`script.js`).

CSS File (style.css):

 - Provides styles for the entire web page, optimizing for the project's design.
 - Uses the Poppins font from Google Fonts.
 - Defines color variables, background, and box shadow.
 - Styles for the main container, header, heading, and the Speech To Text section.

JavaScript File (script.js):

 - Implements the functionality of the Speech To Text converter using the Web Speech API.
 - `languagesOption()`: Populates the language selection dropdown.
 - `speechToText()`: Initiates speech recognition and converts speech to text.
 - `stopRecording()`: Stops speech recognition.
 - `hideBtns()`: Hides result-related buttons.
 - `download()`: Downloads the text result.
 - Event listeners for buttons to start/stop conversion, clear text, copy text, and download text.

JavaScript File (languages-option.js):

 - Contains an array of language options with codes, names, and native names.
 - `languages`: An array of objects representing different languages.

The web page uses HTML for structure, CSS for styling, and JavaScript for functionality. It incorporates the Web Speech API to convert spoken language to text. Users can choose a language, start/stop speech recognition, and perform actions like copying, downloading, and clearing the resulting text. The language options are stored in a separate JavaScript file for modularity.

In summary, the code integrates web technologies to create a user-friendly Speech To Text converter with a clean and visually appealing interface.

speech-to-text-converter's People

Contributors

cosaslearning avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.