# gav

> Google Assistant for Vietnamese

Latest version **1.0.0** (published 2019-04-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install gav
pnpm add gav
yarn add gav
bun add gav
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-04-09 |
| First published | 2019-04-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 18 |
| Unpacked size | 92.2 KB |
| Known vulnerabilities | 0 (+11 in 2 direct dependencies) |
| Install scripts | no |
| Author | Viet Tien |
| Maintainers | ttvtien |
| Keywords | gav |

## Links

- npm: https://www.npmjs.com/package/gav
- npm.io page: https://npm.io/package/gav

## Dependencies (18)

- [e](https://npm.io/package/e.md) 0.0.4
- [opn](https://npm.io/package/opn.md) ^6.0.0
- [boom](https://npm.io/package/boom.md) ^7.3.0
- [grpc](https://npm.io/package/grpc.md) ^1.19.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [needle](https://npm.io/package/needle.md) ^2.2.4
- [speaker](https://npm.io/package/speaker.md) ^0.4.1
- [readline](https://npm.io/package/readline.md) ^1.3.0
- [cryptiles](https://npm.io/package/cryptiles.md) ^4.1.3
- [protobufjs](https://npm.io/package/protobufjs.md) ^6.8.8
- [node-pre-gyp](https://npm.io/package/node-pre-gyp.md) ^0.12.0
- [node-wav-player](https://npm.io/package/node-wav-player.md) ^0.1.0
- [@ttvtien/snowboy](https://npm.io/package/@ttvtien/snowboy.md) ^1.3.3
- [node-audiorecorder](https://npm.io/package/node-audiorecorder.md) ^1.4.1
- [google-auth-library](https://npm.io/package/google-auth-library.md) ^3.1.2
- [@google-cloud/speech](https://npm.io/package/@google-cloud/speech.md) ^2.3.1
- [@ttvtien/google-assistant](https://npm.io/package/@ttvtien/google-assistant.md) ^0.5.5
- [@vitalets/google-translate-api](https://npm.io/package/@vitalets/google-translate-api.md) ^2.8.0

## Recent versions

- 1.0.0 (latest) — 2019-04-09

## README

**Edit a file, create a new file, and clone from Bitbucket in under 2 minutes**

When you're done, you can delete the content in this README and update the file with details for others getting started with your repository.

*We recommend that you open this README in another tab as you perform the tasks below. You can [watch our video](https://youtu.be/0ocf7u76WSo) for a full demo of all the steps in this tutorial. Open the video in a new tab to avoid leaving Bitbucket.*

---

## Microphone prepare

Linux packages:
sudo apt-get install python-pyaudio python3-pyaudio sox

Mac OS packages:
Brew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install portaudio sox

Pip package:
Pip: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | python get-pip.py
pip install pyaudio 

Test:
rec temp.wav

## Node js prepare

Nodejs: https://nodejs.org/dist/v10.15.3/node-v10.15.3.pkg

# OAuthen2 key & Service Account:

Enable Google Cloud API: 
Speech to text API: https://console.cloud.google.com/apis/api/speech.googleapis.com/overview?project=mysmarthome-206a3

Assistant API: https://console.cloud.google.com/apis/api/embeddedassistant.googleapis.com/overview?project=mysmarthome-206a3


Create & download credential: 1 OAuth2 ID & Service Account (2 JSON files )
https://console.cloud.google.com/apis/api/embeddedassistant.googleapis.com/credentials?project=mysmarthome-206a3

# Configure Google keys:
WARNING: should rebuild grpc for compatibility with Pi Zero
$ npm rebuild --build-from-source grpc

Assistant: find and modity OAuth2.json path
Test: node google_assistant.js

Google Speech: 
Test: node google_speech.js

Google translate:
Test: node google_translate.js

## Speaker Configure
Mac os speaker:
npm install speaker --mpg123-backend=openal

Linux:
sudo apt-get install libasound2-dev
---

## Setup on Raspberry

Next, you’ll add a new file to this repository.

1. Click the **New file** button at the top of the **Source** page.
2. Give the file a filename of **contributors.txt**.
3. Enter your name in the empty file space.
4. Click **Commit** and then **Commit** again in the dialog.
5. Go back to the **Source** page.

Before you move on, go ahead and explore the repository. You've already seen the **Source** page, but check out the **Commits**, **Branches**, and **Settings** pages.

---

## Clone a repository

Use these steps to clone from SourceTree, our client for using the repository command-line free. Cloning allows you to work on your files locally. If you don't yet have SourceTree, [download and install first](https://www.sourcetreeapp.com/). If you prefer to clone from the command line, see [Clone a repository](https://confluence.atlassian.com/x/4whODQ).

1. You’ll see the clone button under the **Source** heading. Click that button.
2. Now click **Check out in SourceTree**. You may need to create a SourceTree account or log in.
3. When you see the **Clone New** dialog in SourceTree, update the destination path and name if you’d like to and then click **Clone**.
4. Open the directory you just created to see your repository’s files.

Now that you're more familiar with your Bitbucket repository, go ahead and add a new file locally. You can [push your change back to Bitbucket with SourceTree](https://confluence.atlassian.com/x/iqyBMg), or you can [add, commit,](https://confluence.atlassian.com/x/8QhODQ) and [push from the command line](https://confluence.atlassian.com/x/NQ0zDQ).

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