# vue-utter-content

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

Latest version **0.1.0** (published 2021-07-27) · 0 weekly downloads

## Install

```sh
npm install vue-utter-content
pnpm add vue-utter-content
yarn add vue-utter-content
bun add vue-utter-content
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-07-27 |
| First published | 2021-07-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 169.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Neha Soni |
| Maintainers | nehasoni988 |
| Keywords | vue2, speech-to-text, voice-to-text |

## Links

- npm: https://www.npmjs.com/package/vue-utter-content
- Repository: https://github.com/Nehasoni988/vue-utter-content
- Homepage: https://github.com/Nehasoni988/vue-utter-content#readme
- Issues: https://github.com/Nehasoni988/vue-utter-content/issues
- npm.io page: https://npm.io/package/vue-utter-content

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.6.11

## Recent versions

- 0.1.0 (latest) — 2021-07-27

## README

# vue-utter-content

## Demo

![Demo](./src/assets/demo.gif)

#### [Codesandbox Example](https://codesandbox.io/s/vue-utter-content-uqfct)

## Installation

```
npm install --save vue-utter-content
```

or

```
yarn add vue-utter-content
```

## Declaration

#### Global Import (In main.js file)

```
import VUC from "vue-utter-content";
import "vue-utter-content/dist/vuc.css";
Vue.component("VUC", VUC);
```

#### Local Import (In any component)

```
<script>
import VUC from "vue-utter-content";
import "vue-utter-content/dist/vuc.css";

export default {
  components: {
    VUC
  }
}
<script>
```

## Basic Usage

#### Example-1

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

#### Example-2

```
<template>
  <div>
    <textarea v-model="body"></textarea>
    <VUC
      :text="body"
      lang="fr-FR"
      header_title="Commencer à parler"
      placeholder="le texte parlé sera ici..."
      quit_label="Fermer"
      clear_label="Effacer le texte"
      start_label="Début"
      stop_label="Arrêter"
      save_label="sauver"
      @speechend="body = $event.text"
    ></VUC>
  </div>
<template>
<script>
export default {
  name: "MyComponent",
  data() {
		return {
			body: "Bonjour le monde",
		};
	},
}
</script>
```
## Properties

  | Name | Type | Required | Default Value | Support Values |
  | ---- | ---- |--------- |------------ |--------------- |
  | text | String | Yes | - | any string|
  | lang | String | No | "en-US" | [BCP-47 Languages Codes](https://cloud.google.com/speech-to-text/docs/languages) (go to this link and scroll down for language codes)|
  | header_title | String | No | "Speech To Text" | any string|
  | placeholder | String | No | "start speaking and text will display here..." | any string |
  | quit_label | String | No | "Quit" | any string |
  | clear_label | String | No | "Clear" | any string |
  | start_label | String | No | "Start Speaking" | any string |
  | stop_label | String | No | "Stop" | any string |
  | save_label | String | No | "Save & Exit"  | any string |

## Events
- `speechend`

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

  ```
   <template>
    <VUC :text="text" @speechend="onSpeechEnd"></VUC>
   </template>

   <script>
    export default {
      methods:{
        onSpeechEnd(event) {
          console.log(event)
        }
      }
    }
   </script>

---
_Source: https://npm.io/package/vue-utter-content · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
