{
  "_id": "sonix-speech-recognition",
  "maintainers": [
    {
      "name": "enigmadalio7",
      "email": "ilia.kruglov@raftds.com"
    }
  ],
  "keywords": [
    "sonix",
    "speech",
    "recognition",
    "translation",
    "sdk",
    "api"
  ],
  "dist-tags": {
    "latest": "2.1.1"
  },
  "author": {
    "name": "Aleksandr Konstantinov",
    "email": "a.konstantinov@raftds.com",
    "url": "https://github.com/konstantinov-raft"
  },
  "_rev": "3-3ccbf908a7ae379e100a130c03134f77",
  "description": "A library that produces audio transcriptions and translations using the Sonix.AI service.",
  "readme": "# sonix-speech-recognition\n\nA library for producing audio transcriptions and translations using the Sonix AI service https://sonix.ai/.\n\n## Getting started\n\n1. Create an account on https://sonix.ai/\n2. Obtain the auth key from https://my.sonix.ai/api page\n\n## Install\n\n```bash\nnpm install sonix-speech-recognition\n```\n\n## Usage\n\nTranscribe a publicly available file\n\n```ts\nimport { SonixSpeechRecognitionService } from 'sonix-speech-recognition';\n\nconst recognitionService = new SonixSpeechRecognitionService(AUTH_KEY);\nconst { jobId, text, status, error } = await recognitionService.speechToText({\n  audioUrl: audioPublicUrl,\n  fileName,\n  language: 'en',\n});\n\nif (status === 'failed') {\n  // handle error\n}\n```\n\nTranscribe a local file\n\n```ts\nimport { SonixSpeechRecognitionService } from 'sonix-speech-recognition';\n\nconst recognitionService = new SonixSpeechRecognitionService(AUTH_KEY);\nconst { jobId, text, status, error } = await recognitionService.speechToText({\n  audioFilePath,\n  fileName,\n  language: 'en',\n});\n\nif (status === 'failed') {\n  // handle error\n}\n```\n\nTranscribe and translate a local file\n\n```ts\nimport { SonixSpeechRecognitionService } from 'sonix-speech-recognition';\n\nconst recognitionService = new SonixSpeechRecognitionService(AUTH_KEY);\nconst { jobId, text } = await recognitionService.speechToText({\n  audioFilePath,\n  fileName,\n  language: 'en',\n});\n\nconst {\n  text: translatedText,\n  status,\n  error,\n} = await sonixSpeechKitService.translateTranscription({\n  transcriptionJobId: jobId,\n  language: 'fr',\n});\n\nif (status === 'failed') {\n  // handle error\n}\n```\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/RaftDigiAI/sonix-speech-recognition.git"
  },
  "bugs": {
    "url": "https://github.com/RaftDigiAI/sonix-speech-recognition/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "sonix-speech-recognition",
      "version": "1.0.0",
      "description": "A library that produces audio transcriptions using the Sonix.AI service.",
      "main": "./lib/index.js",
      "scripts": {
        "build": "tsc --project tsconfig.build.json",
        "clean": "rm -rf ./lib/",
        "cm": "cz",
        "lint": "eslint ./src/ --fix",
        "prepare": "husky install",
        "semantic-release": "semantic-release",
        "test:watch": "jest --watch",
        "test": "jest --coverage --passWithNoTests",
        "typecheck": "tsc --noEmit"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/RaftDigiAI/sonix-speech-recognition.git"
      },
      "license": "MIT",
      "author": {
        "name": "Aleksandr Konstantinov",
        "email": "a.konstantinov@raftds.com",
        "url": "https://github.com/konstantinov-raft"
      },
      "engines": {
        "node": ">=12.0"
      },
      "keywords": [
        "sonix",
        "speech",
        "recognition",
        "translation",
        "sdk",
        "api"
      ],
      "bugs": {
        "url": "https://github.com/RaftDigiAI/sonix-speech-recognition/issues"
      },
      "homepage": "https://github.com/RaftDigiAI/sonix-speech-recognition#readme",
      "dependencies": {
        "axios": "^1.4.0"
      },
      "devDependencies": {
        "@ryansonshine/commitizen": "^4.2.8",
        "@ryansonshine/cz-conventional-changelog": "^3.3.4",
        "@types/jest": "^27.5.2",
        "@types/node": "^12.20.11",
        "@types/qs": "^6.9.7",
        "@types/uuid": "^9.0.2",
        "@typescript-eslint/eslint-plugin": "^4.22.0",
        "@typescript-eslint/parser": "^4.22.0",
        "conventional-changelog-conventionalcommits": "^5.0.0",
        "eslint": "^7.25.0",
        "eslint-config-prettier": "^8.3.0",
        "eslint-plugin-node": "^11.1.0",
        "eslint-plugin-prettier": "^3.4.0",
        "husky": "^6.0.0",
        "jest": "^27.2.0",
        "lint-staged": "^13.2.1",
        "prettier": "^2.2.1",
        "semantic-release": "^21.0.1",
        "ts-jest": "^27.0.5",
        "ts-node": "^10.2.1",
        "typescript": "^4.2.4"
      },
      "config": {
        "commitizen": {
          "path": "./node_modules/@ryansonshine/cz-conventional-changelog"
        }
      },
      "lint-staged": {
        "*.ts": "eslint --cache --cache-location .eslintcache --fix"
      },
      "release": {
        "branches": [
          "main"
        ],
        "plugins": [
          [
            "@semantic-release/commit-analyzer",
            {
              "preset": "conventionalcommits",
              "releaseRules": [
                {
                  "type": "build",
                  "scope": "deps",
                  "release": "patch"
                }
              ]
            }
          ],
          [
            "@semantic-release/release-notes-generator",
            {
              "preset": "conventionalcommits",
              "presetConfig": {
                "types": [
                  {
                    "type": "feat",
                    "section": "Features"
                  },
                  {
                    "type": "fix",
                    "section": "Bug Fixes"
                  },
                  {
                    "type": "build",
                    "section": "Dependencies and Other Build Updates",
                    "hidden": false
                  }
                ]
              }
            }
          ],
          "@semantic-release/npm",
          "@semantic-release/github"
        ]
      },
      "types": "./lib/index.d.ts",
      "gitHead": "6a99bd59f821f35c512bbe9754ed7681ac9a175c",
      "_id": "sonix-speech-recognition@1.0.0",
      "_nodeVersion": "18.16.1",
      "_npmVersion": "9.6.5",
      "dist": {
        "integrity": "sha512-QhNXycsOC/6h3wJ26IXSNxo0xUxYB6PzuA7ldMvycNburFBaC5N+7CUcK41e9Kt6GcF9CahhMtwzhKkEkbzDdw==",
        "shasum": "d6d50400e85aa5f821a2bc4c1f7d10df57f10b5e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/sonix-speech-recognition/-/sonix-speech-recognition-1.0.0.tgz",
        "fileCount": 11,
        "unpackedSize": 11618,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCZpVSxrFoAFkpZOCmKFmXFEwqHFcOKwzqM6jvmTXS/OwIgRTGKdwdqqBmsuJLj+LKyyNY22URrPuVutPnYq1tfa20="
          }
        ]
      },
      "_npmUser": {
        "name": "enigmadalio7",
        "email": "ilia.kruglov@raftds.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "enigmadalio7",
          "email": "ilia.kruglov@raftds.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/sonix-speech-recognition_1.0.0_1688466142480_0.3174006552781843"
      },
      "_hasShrinkwrap": false
    },
    "2.0.0": {
      "name": "sonix-speech-recognition",
      "version": "2.0.0",
      "description": "A library that produces audio transcriptions using the Sonix.AI service.",
      "main": "./lib/index.js",
      "scripts": {
        "build": "tsc --project tsconfig.build.json",
        "clean": "rm -rf ./lib/",
        "cm": "cz",
        "lint": "eslint ./src/ --fix",
        "prepare": "husky install",
        "semantic-release": "semantic-release",
        "test:watch": "jest --watch",
        "test": "jest --coverage --passWithNoTests",
        "typecheck": "tsc --noEmit"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/RaftDigiAI/sonix-speech-recognition.git"
      },
      "license": "MIT",
      "author": {
        "name": "Aleksandr Konstantinov",
        "email": "a.konstantinov@raftds.com",
        "url": "https://github.com/konstantinov-raft"
      },
      "engines": {
        "node": ">=12.0"
      },
      "keywords": [
        "sonix",
        "speech",
        "recognition",
        "translation",
        "sdk",
        "api"
      ],
      "bugs": {
        "url": "https://github.com/RaftDigiAI/sonix-speech-recognition/issues"
      },
      "homepage": "https://github.com/RaftDigiAI/sonix-speech-recognition#readme",
      "dependencies": {
        "axios": "^1.4.0",
        "form-data": "^4.0.0"
      },
      "devDependencies": {
        "@ryansonshine/commitizen": "^4.2.8",
        "@ryansonshine/cz-conventional-changelog": "^3.3.4",
        "@types/form-data": "^2.5.0",
        "@types/jest": "^27.5.2",
        "@types/node": "^12.20.11",
        "@types/qs": "^6.9.7",
        "@types/uuid": "^9.0.2",
        "@typescript-eslint/eslint-plugin": "^4.22.0",
        "@typescript-eslint/parser": "^4.22.0",
        "conventional-changelog-conventionalcommits": "^5.0.0",
        "eslint": "^7.25.0",
        "eslint-config-prettier": "^8.3.0",
        "eslint-plugin-node": "^11.1.0",
        "eslint-plugin-prettier": "^3.4.0",
        "husky": "^6.0.0",
        "jest": "^27.2.0",
        "lint-staged": "^13.2.1",
        "prettier": "^2.2.1",
        "semantic-release": "^21.0.1",
        "ts-jest": "^27.0.5",
        "ts-node": "^10.2.1",
        "typescript": "^4.2.4"
      },
      "config": {
        "commitizen": {
          "path": "./node_modules/@ryansonshine/cz-conventional-changelog"
        }
      },
      "lint-staged": {
        "*.ts": "eslint --cache --cache-location .eslintcache --fix"
      },
      "release": {
        "branches": [
          "main"
        ],
        "plugins": [
          [
            "@semantic-release/commit-analyzer",
            {
              "preset": "conventionalcommits",
              "releaseRules": [
                {
                  "type": "build",
                  "scope": "deps",
                  "release": "patch"
                }
              ]
            }
          ],
          [
            "@semantic-release/release-notes-generator",
            {
              "preset": "conventionalcommits",
              "presetConfig": {
                "types": [
                  {
                    "type": "feat",
                    "section": "Features"
                  },
                  {
                    "type": "fix",
                    "section": "Bug Fixes"
                  },
                  {
                    "type": "build",
                    "section": "Dependencies and Other Build Updates",
                    "hidden": false
                  }
                ]
              }
            }
          ],
          "@semantic-release/npm",
          "@semantic-release/github"
        ]
      },
      "types": "./lib/index.d.ts",
      "gitHead": "266e32793edbabe5c01249f5aee91dbb43324f48",
      "_id": "sonix-speech-recognition@2.0.0",
      "_nodeVersion": "18.16.1",
      "_npmVersion": "9.6.5",
      "dist": {
        "integrity": "sha512-oTLQAm8lWUtrwGQj9gBfERxcEHPuiaT/M9gS/CezyUrYWDWwj3x0BYDM/gANApdg4AomtkJrVsMzSN5mngCsjA==",
        "shasum": "34ad733370d60ed562b212ccab7f14c02c0be03b",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/sonix-speech-recognition/-/sonix-speech-recognition-2.0.0.tgz",
        "fileCount": 11,
        "unpackedSize": 12923,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGfMYMgcEZkS4vyHdRAYULcsSo4uC/Cnpv5Rnuqw92bjAiEAmFGsVwW7mEpqXv4NpIve1w+SzyoJMxEoaqlaiESWUZo="
          }
        ]
      },
      "_npmUser": {
        "name": "enigmadalio7",
        "email": "ilia.kruglov@raftds.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "enigmadalio7",
          "email": "ilia.kruglov@raftds.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/sonix-speech-recognition_2.0.0_1688471915910_0.75212547834302"
      },
      "_hasShrinkwrap": false
    },
    "2.1.0": {
      "name": "sonix-speech-recognition",
      "version": "2.1.0",
      "description": "A library that produces audio transcriptions and translations using the Sonix.AI service.",
      "main": "./lib/index.js",
      "scripts": {
        "build": "tsc --project tsconfig.build.json",
        "clean": "rm -rf ./lib/",
        "cm": "cz",
        "lint": "eslint ./src/ --fix",
        "prepare": "husky install",
        "semantic-release": "semantic-release",
        "test:watch": "jest --watch",
        "test": "jest --coverage --passWithNoTests",
        "typecheck": "tsc --noEmit"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/RaftDigiAI/sonix-speech-recognition.git"
      },
      "license": "MIT",
      "author": {
        "name": "Aleksandr Konstantinov",
        "email": "a.konstantinov@raftds.com",
        "url": "https://github.com/konstantinov-raft"
      },
      "engines": {
        "node": ">=12.0"
      },
      "keywords": [
        "sonix",
        "speech",
        "recognition",
        "translation",
        "sdk",
        "api"
      ],
      "bugs": {
        "url": "https://github.com/RaftDigiAI/sonix-speech-recognition/issues"
      },
      "homepage": "https://github.com/RaftDigiAI/sonix-speech-recognition#readme",
      "dependencies": {
        "axios": "^1.4.0",
        "form-data": "^4.0.0"
      },
      "devDependencies": {
        "@ryansonshine/commitizen": "^4.2.8",
        "@ryansonshine/cz-conventional-changelog": "^3.3.4",
        "@types/form-data": "^2.5.0",
        "@types/jest": "^27.5.2",
        "@types/node": "^12.20.11",
        "@types/qs": "^6.9.7",
        "@types/uuid": "^9.0.2",
        "@typescript-eslint/eslint-plugin": "^4.22.0",
        "@typescript-eslint/parser": "^4.22.0",
        "conventional-changelog-conventionalcommits": "^5.0.0",
        "eslint": "^7.25.0",
        "eslint-config-prettier": "^8.3.0",
        "eslint-plugin-node": "^11.1.0",
        "eslint-plugin-prettier": "^3.4.0",
        "husky": "^6.0.0",
        "jest": "^27.2.0",
        "lint-staged": "^13.2.1",
        "prettier": "^2.2.1",
        "semantic-release": "^21.0.1",
        "ts-jest": "^27.0.5",
        "ts-node": "^10.2.1",
        "typescript": "^4.2.4"
      },
      "config": {
        "commitizen": {
          "path": "./node_modules/@ryansonshine/cz-conventional-changelog"
        }
      },
      "lint-staged": {
        "*.ts": "eslint --cache --cache-location .eslintcache --fix"
      },
      "release": {
        "branches": [
          "main"
        ],
        "plugins": [
          [
            "@semantic-release/commit-analyzer",
            {
              "preset": "conventionalcommits",
              "releaseRules": [
                {
                  "type": "build",
                  "scope": "deps",
                  "release": "patch"
                }
              ]
            }
          ],
          [
            "@semantic-release/release-notes-generator",
            {
              "preset": "conventionalcommits",
              "presetConfig": {
                "types": [
                  {
                    "type": "feat",
                    "section": "Features"
                  },
                  {
                    "type": "fix",
                    "section": "Bug Fixes"
                  },
                  {
                    "type": "build",
                    "section": "Dependencies and Other Build Updates",
                    "hidden": false
                  }
                ]
              }
            }
          ],
          "@semantic-release/npm",
          "@semantic-release/github"
        ]
      },
      "types": "./lib/index.d.ts",
      "gitHead": "d5edcce244924574a58bd41c3dad861da39d4ce6",
      "_id": "sonix-speech-recognition@2.1.0",
      "_nodeVersion": "18.16.1",
      "_npmVersion": "9.6.5",
      "dist": {
        "integrity": "sha512-0xkzko1k9Drcq8OO8R49MNGjEJYrz9hYGlzfBKqDGrnpByMswPu1/LerUsZ2+RuRUiO0igGsnGiYza2NP/Dh3w==",
        "shasum": "c1380c15b868188d9dfcb259f00e80f60eaccff2",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/sonix-speech-recognition/-/sonix-speech-recognition-2.1.0.tgz",
        "fileCount": 11,
        "unpackedSize": 15945,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIE6Gddjz+gqwtRVdwAZzjJcHrzm/diMoSCz+ujcYbFyxAiEAtV5wo81rUMHQRuw3fx7/yrb2o0g8yATULwH/uPW7yQI="
          }
        ]
      },
      "_npmUser": {
        "name": "enigmadalio7",
        "email": "ilia.kruglov@raftds.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "enigmadalio7",
          "email": "ilia.kruglov@raftds.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/sonix-speech-recognition_2.1.0_1688474554011_0.3701655515191338"
      },
      "_hasShrinkwrap": false
    },
    "2.1.1": {
      "name": "sonix-speech-recognition",
      "version": "2.1.1",
      "description": "A library that produces audio transcriptions and translations using the Sonix.AI service.",
      "main": "./lib/index.js",
      "scripts": {
        "build": "tsc --project tsconfig.build.json",
        "clean": "rm -rf ./lib/",
        "cm": "cz",
        "lint": "eslint ./src/ --fix",
        "prepare": "husky install",
        "semantic-release": "semantic-release",
        "test:watch": "jest --watch",
        "test": "jest --coverage --passWithNoTests",
        "typecheck": "tsc --noEmit"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/RaftDigiAI/sonix-speech-recognition.git"
      },
      "license": "MIT",
      "author": {
        "name": "Aleksandr Konstantinov",
        "email": "a.konstantinov@raftds.com",
        "url": "https://github.com/konstantinov-raft"
      },
      "engines": {
        "node": ">=12.0"
      },
      "keywords": [
        "sonix",
        "speech",
        "recognition",
        "translation",
        "sdk",
        "api"
      ],
      "bugs": {
        "url": "https://github.com/RaftDigiAI/sonix-speech-recognition/issues"
      },
      "homepage": "https://github.com/RaftDigiAI/sonix-speech-recognition#readme",
      "dependencies": {
        "axios": "^1.4.0",
        "form-data": "^4.0.0"
      },
      "devDependencies": {
        "@ryansonshine/commitizen": "^4.2.8",
        "@ryansonshine/cz-conventional-changelog": "^3.3.4",
        "@types/form-data": "^2.5.0",
        "@types/jest": "^27.5.2",
        "@types/node": "^12.20.11",
        "@types/qs": "^6.9.7",
        "@types/uuid": "^9.0.2",
        "@typescript-eslint/eslint-plugin": "^4.22.0",
        "@typescript-eslint/parser": "^4.22.0",
        "conventional-changelog-conventionalcommits": "^5.0.0",
        "eslint": "^7.25.0",
        "eslint-config-prettier": "^8.3.0",
        "eslint-plugin-node": "^11.1.0",
        "eslint-plugin-prettier": "^3.4.0",
        "husky": "^6.0.0",
        "jest": "^27.2.0",
        "lint-staged": "^13.2.1",
        "prettier": "^2.2.1",
        "semantic-release": "^21.0.1",
        "ts-jest": "^27.0.5",
        "ts-node": "^10.2.1",
        "typescript": "^4.2.4"
      },
      "config": {
        "commitizen": {
          "path": "./node_modules/@ryansonshine/cz-conventional-changelog"
        }
      },
      "lint-staged": {
        "*.ts": "eslint --cache --cache-location .eslintcache --fix"
      },
      "release": {
        "branches": [
          "main"
        ],
        "plugins": [
          [
            "@semantic-release/commit-analyzer",
            {
              "preset": "conventionalcommits",
              "releaseRules": [
                {
                  "type": "build",
                  "scope": "deps",
                  "release": "patch"
                }
              ]
            }
          ],
          [
            "@semantic-release/release-notes-generator",
            {
              "preset": "conventionalcommits",
              "presetConfig": {
                "types": [
                  {
                    "type": "feat",
                    "section": "Features"
                  },
                  {
                    "type": "fix",
                    "section": "Bug Fixes"
                  },
                  {
                    "type": "build",
                    "section": "Dependencies and Other Build Updates",
                    "hidden": false
                  }
                ]
              }
            }
          ],
          "@semantic-release/npm",
          "@semantic-release/github"
        ]
      },
      "types": "./lib/index.d.ts",
      "gitHead": "07b37c7ea02a9e848abc1dabf6d79a06c336a983",
      "_id": "sonix-speech-recognition@2.1.1",
      "_nodeVersion": "18.16.1",
      "_npmVersion": "9.6.5",
      "dist": {
        "integrity": "sha512-SZVVMpoEGCHCEcvu5jRk4W7WfFWDuQMeaMSpZhI7g53Z3r8Lq7Y/xFRnnpOx2jDag4BqDlhbNgYuDoOer0TojQ==",
        "shasum": "0950d1b9f64272945590b05a8f50bcf42c4fd4ea",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/sonix-speech-recognition/-/sonix-speech-recognition-2.1.1.tgz",
        "fileCount": 11,
        "unpackedSize": 18195,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIFYI5eX+sPQ8IifFAPzkLWgERy8I/M3oVoxTairtGg2qAiEA/psTAqxGPbidgAFOuJFObucrOBKBWj5PC+F/n1ATkWM="
          }
        ]
      },
      "_npmUser": {
        "name": "enigmadalio7",
        "email": "ilia.kruglov@raftds.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "enigmadalio7",
          "email": "ilia.kruglov@raftds.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/sonix-speech-recognition_2.1.1_1688545134508_0.5986284799745978"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "sonix-speech-recognition",
  "time": {
    "created": "2023-07-04T10:22:22.478Z",
    "1.0.0": "2023-07-04T10:22:22.713Z",
    "modified": "2026-05-23T07:03:16.575Z",
    "2.0.0": "2023-07-04T11:58:36.101Z",
    "2.1.0": "2023-07-04T12:42:34.192Z",
    "2.1.1": "2023-07-05T08:18:54.661Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/RaftDigiAI/sonix-speech-recognition#readme"
}