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

speech-to-text-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speech-to-text-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"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

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