speech-to-text-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "speech-to-text-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "speech to text with google speech api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,12 @@ ## Installing | ||
``` | ||
## Config | ||
### 1 | ||
Enable the Cloud Speech API. [Cloud Platform Console](https://console.cloud.google.com) | ||
### 2 | ||
Initialize googleApiKey. [Google Cloud API](https://console.cloud.google.com/apis/dashboard) | ||
``` bash | ||
googleApiKey: "" | ||
``` | ||
## Example | ||
@@ -14,3 +23,6 @@ | ||
import SpeechApi from 'speech-to-text-api' | ||
const speechApi = new SpeechApi('google-cloud-api') | ||
// default { encoding: 'LINEAR16', sampleRateHertz: 44100, languageCode: 'th-TH' } | ||
const speechApi = new SpeechApi('google-cloud-api-key') | ||
// or https://cloud.google.com/speech-to-text/docs/reference/rest/v1/RecognitionConfig | ||
const speechApi = new SpeechApi('google-cloud-api-key', { encoding: 'LINEAR16', sampleRateHertz: 44100, languageCode: 'th-TH' }) | ||
@@ -17,0 +29,0 @@ // start speech |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16587
32