项目作者: NullEnt1ty

项目描述 :
Transcribe voice data to text using Google Cloud Speech-to-Text
高级语言: Shell
项目地址: git://github.com/NullEnt1ty/GCloudSpeech.git
创建时间: 2020-01-20T16:10:55Z
项目社区:https://github.com/NullEnt1ty/GCloudSpeech

开源协议:MIT License

下载


GCloudSpeech

Transcribe voice data from stdin to text using Google Cloud Speech-to-Text.

Introduction

GCloudSpeech is a small application that allows you to parse voice data quick
and easy using the command line.

This project can be used for Rhasspy,
an offline, multilingual voice assistant toolkit. It’s not an offline voice
assistant anymore when you’re using Google STT but it’s worth a shot if you need
good automatic speech recognition on a low-end device.

Installation

  1. Clone this repository

    1. $ git clone https://github.com/NullEnt1ty/GCloudSpeech
  2. Setup the virtual environment

    1. $ ./setup-venv.sh

Usage

You can transcribe voice data by piping it to run.sh. The transcription will
be printed on standard output.

For example:

  1. $ cat podcast.wav | ./run.sh --language en-US

Attention: Currently the only accepted format for voice data are
uncompressed 16-bit signed little-endian samples (Linear PCM) with a sample rate
of 16 kHz. This might be configurable in the future.

Integration into Rhasspy

Use the following configuration for your profile to integrate GCloudSpeech into
Rhasspy:

  1. "speech_to_text": {
  2. "command": {
  3. "program": "<path to run.sh>",
  4. "arguments": ["--language", "<your language code>"]
  5. },
  6. "system": "command"
  7. },