{"id":20217674,"url":"https://github.com/ymzemre/spremic","last_synced_at":"2025-08-27T07:06:59.774Z","repository":{"id":221739153,"uuid":"746196370","full_name":"ymzEmre/spremic","owner":"ymzEmre","description":"A simple JavaScript speech recognition library.","archived":false,"fork":false,"pushed_at":"2024-02-09T18:32:59.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T23:17:20.199Z","etag":null,"topics":["speech-api","speech-recognition","speech-to-text"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ymzEmre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-21T11:09:31.000Z","updated_at":"2024-02-10T21:53:33.000Z","dependencies_parsed_at":"2024-02-09T19:46:57.277Z","dependency_job_id":null,"html_url":"https://github.com/ymzEmre/spremic","commit_stats":null,"previous_names":["ymzemre/spremic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymzEmre%2Fspremic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymzEmre%2Fspremic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymzEmre%2Fspremic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymzEmre%2Fspremic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymzEmre","download_url":"https://codeload.github.com/ymzEmre/spremic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241654831,"owners_count":19997940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["speech-api","speech-recognition","speech-to-text"],"created_at":"2024-11-14T06:35:04.886Z","updated_at":"2025-03-03T11:27:01.338Z","avatar_url":"https://github.com/ymzEmre.png","language":"TypeScript","readme":"# Spremic\n\n[![npm version](https://badge.fury.io/js/spremic.svg)](https://badge.fury.io/js/spremic)\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Motivation](#motivation)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contribution](#contribution)\n- [License](#mit-license)\n\n## Introduction\n\nSpremic is a simple speech recognition api that uses the JavaScript Web speech recognition api. It is designed to be easy to use and to be easily integrated into any project.\n\nSpremic equates to \"Speech Recognition Microphone\".\n\n## Motivation\n\nI like use to speech recognition api my projects. I am developing this api to make it eaiser to implement and to avoid\nhaving to adjust the inital configurations every time I start a new project.\n\n## Features\n\n- leightweight 4kb minified \u0026 gzipped\n- Easy to use\n- Simple to integrate\n- No dependencies\n- No need to adjust initial configurations\n- No magic\n\n## Installation\n\n```\nnpm install spremic\n```\n\n## Usage\n\n```JavaScript\nimport { Spremic } from 'spremic'\n\nconst Spremic = new Spremic()\n```\n\n##### `startRecognition()`\n\nThis method starts the speech recognition.\n\n```JavaScript\nSpremic.startRecognition()\n```\n\n##### `stopRecognition()`\n\nThis method stops the speech recognition.\n\n```JavaScript\nSpremic.stopRecognition()\n```\n\n##### `getRecognizedText()`\n\nThis method returns the recognized text.\n\n```JavaScript\nconst recognizedText = Spremic.getRecognizedText()\n```\n\n##### `textToSpeech()`\n\nThis method transforms the recognized text into speech.\n\n```JavaScript\nSpremic.textToSpeech('Hello World')\n```\n\n#### Sample Usage\n\n```JavaScript\n\nconst read = async (durationInMilliseconds?: number) =\u003e {\n  Spremic.startRecognition()\n\n  await new Promise\u003cvoid\u003e((resolve) =\u003e {\n    setTimeout(() =\u003e {\n      Spremic.stopRecognition()\n      resolve()\n    }, durationInMilliseconds || 5000)\n  })\n\n  const recognizedText = Spremic.getRecognizedText()\n\n  console.log('Recognized Text:', recognizedText)\n\n  Spremic.textToSpeech(recognizedText)\n}\n```\n\n## Contribution\n\nI am open to contributions. Please feel free to open an issue or a pull request.\n\n## License\n\nCopyright (c) 2024 Emre Yilmaz\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymzemre%2Fspremic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymzemre%2Fspremic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymzemre%2Fspremic/lists"}