Socket
Socket
Sign inDemoInstall

yandex-speech-promise

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.2.0

index.d.ts

1

dist/stt.js

@@ -16,3 +16,2 @@ "use strict";

var querystring_1 = require("querystring");
// eslint-disable-next-line @typescript-eslint/no-var-requires
var _a = require("../package.json"), name = _a.name, version = _a.version;

@@ -19,0 +18,0 @@ var apiUrl = "https://stt.api.cloud.yandex.net/speech/v1/stt:recognize";

@@ -52,3 +52,2 @@ "use strict";

var querystring_1 = require("querystring");
// eslint-disable-next-line @typescript-eslint/no-var-requires
var _a = require("../package.json"), name = _a.name, version = _a.version;

@@ -73,3 +72,3 @@ var apiUrl = "https://tts.api.cloud.yandex.net/speech/v1/tts:synthesize";

_a));
return [2 /*return*/, new Promise(function (resolve, reject) {
return [2, new Promise(function (resolve, reject) {
var req = https_1.request(apiUrl, {

@@ -87,6 +86,4 @@ method: "POST",

var data = "";
var isError = false;
res.setEncoding("binary");
res.on("data", function (chunk) {
// console.log(chunk);
data += chunk;

@@ -93,0 +90,0 @@ });

{
"name": "yandex-speech-promise",
"version": "1.0.1",
"version": "1.2.0",
"description": "Promise based implementation of Yandex Speech Kit API",

@@ -21,3 +21,5 @@ "main": "index.js",

"files": [
"dist/"
"dist/",
"index.d.ts",
"index.js"
],

@@ -24,0 +26,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc