Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@readybytes/rb-speech-to-text

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readybytes/rb-speech-to-text

This is a speech to text converter build in Vue2. It provides speech translations in almost all languages.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
5
Weekly downloads
 
Created
Source

rb-text-to-speech

Demo

Demo

See live demo here at codesandbox.

Installation

npm install --save rb-speech-to-text

or

yarn add rb-speech-to-text

Declaration

<script>
import RBSpeechToText from "@readybytes/rb-speech-to-text";

export default {
  components: {
    RBSpeechToText
  }
}
<script>

Basic Usage

Example-1
<template>
  <div>
    <textarea v-model="body"></textarea>
    <RBSpeechToText
      :text="body"
      @speechend="body = $event.text"
    ></RBSpeechToText>
  </div>
<template>

<script>
export default {
  name: "MyComponent",
  data() {
		return {
			body: "Hello World",
		};
	},
}
</script>
Example-2
<template>
  <div>
    <textarea v-model="body"></textarea>
    <RBSpeechToText
      :text="body"
      lang="fr-FR"
      @speechend="body = $event.text"
    ></RBSpeechToText>
  </div>
<template>

<script>
export default {
  name: "MyComponent",
  data() {
		return {
			body: "Bonjour le monde",
		};
	},
}
</script>

Properties

NameTypeRequiredDefault ValueSupport Values
textStringYes-any string
langStringNo"en-US"<languageCode-countryCode>.
BCP-47 Languages Codes (Go to this link and search for BCP-47 language codes)

Events

  • speechend

    This event will fire when user stop speaking and save the content. i.e-

     <template>
      <RBSpeechToText
        :text="text"
        @speechend="onSpeechEnd"
      >
      </RBSpeechToText>
     </template>
    
     <script>
      export default {
        methods:{
          onSpeechEnd(event) {
            console.log(event)
          }
        }
      }
     </script>
    
    

Keywords

FAQs

Package last updated on 03 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc