Socket
Socket
Sign inDemoInstall

@readybytes/rb-speech-to-text

Package Overview
Dependencies
10
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

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.


Version published
0
Maintainers
5
Created
Weekly downloads
 

Readme

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

Last updated on 03 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc