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

github.com/xshoji/google-cloud-text-to-speech-cli

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/xshoji/google-cloud-text-to-speech-cli

  • v0.0.2
  • Source
  • Go
  • Socket score

Version published
Created
Source

google-cloud-text-to-speech-cli

Command line interface for google-cloud-text-to-speech-api.

Cloud Text-to-Speech Client Libraries  |  Cloud Text-to-Speech API  |  Google Cloud
https://cloud.google.com/text-to-speech/docs/reference/libraries?hl=ja

How to use

Export environment value

export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credential.json
Google Service Account

Credential file of Google Service Account ( /path/to/credential.json ) is required. If you don't have account, you need create it.

Execute

Download latest application based on your platform.

Releases · xshoji/google-cloud-text-to-speech-cli
https://github.com/xshoji/google-cloud-text-to-speech-cli/releases

$ ./google-cloud-text-to-speech-cli --help
Usage:
  google-cloud-text-to-speech-cli [OPTIONS]

Application Options:
  -t, --text=          [required] Text content.
  -l, --language=      LanguageCode. (default: en)
  -g, --gender=        SsmlGender. (default: FEMALE)
  -v, --voice=         Voice type ( see --listvoicetype ). (default: en-AU-Standard-A)
  -s, --rate=          SpeakingRate. [ 0.25 <= rate <= 4.0 ] (default: 1.0)
  -p, --pitch=         Pitch. [ -20.0 <= pitch <= 20.0 ]  (default: 0.0)
  -o, --output=        Output file path. (default: out/output.mp3)
      --listvoicetype  Display voice types.

Help Options:
  -h, --help           Show this help message
  

$ ./google-cloud-text-to-speech-cli --text="Thank you download my apps. This is Command line interface for google-cloud-text-to-speech-api." --rate=1.5 --pitch=-5.0

Development

  • dep
  • go 1.12 ( or later )
dep ensure
dep ensure

googleapis/google-cloud-go: Google Cloud Client Libraries for Go.
https://github.com/googleapis/google-cloud-go

Create Service Account Key

Cloud Text-to-Speech Client Libraries  |  Cloud Text-to-Speech API  |  Google Cloud
https://cloud.google.com/text-to-speech/docs/reference/libraries?hl=ja

Then, download credential json.

2019/09/23 20:00:08 rpc error: code = PermissionDenied desc = Cloud Text-to-Speech API has not been used in project xxxxxx before or it is disabled. Enable it by visiting https://console.cloud.google.com/apis/api/texttospeech.googleapis.com/overview?project=xxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

And enable API account ( register your credit card info ).

References

サポートされているすべての音声の一覧表示  |  Cloud Text-to-Speech Documentation  |  Google Cloud
https://cloud.google.com/text-to-speech/docs/list-voices?hl=ja

FAQs

Package last updated on 23 Sep 2019

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