Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoannchb-pro/chromespeechrecognition
Access chrome SpeechRecognition with puppeteer in headless mode
https://github.com/yoannchb-pro/chromespeechrecognition
chrome puppeteer speech-recognition speech-to-text
Last synced: 29 days ago
JSON representation
Access chrome SpeechRecognition with puppeteer in headless mode
- Host: GitHub
- URL: https://github.com/yoannchb-pro/chromespeechrecognition
- Owner: yoannchb-pro
- License: mit
- Created: 2023-03-31T23:51:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T00:30:38.000Z (almost 2 years ago)
- Last Synced: 2024-11-24T11:20:26.815Z (about 2 months ago)
- Topics: chrome, puppeteer, speech-recognition, speech-to-text
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chromeSpeechRecognition
Access chrome SpeechRecognition with puppeteer in headless mode
> NOTE: You will need to put chrome in the source directory
## Install
```
$ npm i chrome-speech-recognition
```## Import
```js
import chromeSpeechRecognition from "chrome-speech-recognition";
//or
const chromeSpeechRecognition = require("chrome-speech-recognition").default;
```## Example
```js
function callback(text) {
console.log("The user said: ", text);
}const chromePath = path.resolve(__dirname, "../chrome/chrome.exe");
const speechRecognitionOptions = {
lang: "en",
};const browser = await chromeSpeechRecognition(
callback,
chromePath,
speechRecognitionOptions
);//when you want to stop listening
setTimeout(() => browser.close(), 10000);
```