An open API service indexing awesome lists of open source software.

https://github.com/mastashake08/ocrtts

Javascript package that uses the TextDetector API and Speech Synthesis to recognize and read text aloud.
https://github.com/mastashake08/ocrtts

shape-detection speech-synthesis text-detection text-to-speech textdetection

Last synced: 5 months ago
JSON representation

Javascript package that uses the TextDetector API and Speech Synthesis to recognize and read text aloud.

Awesome Lists containing this project

README

        

# ocrtts

[![NPM](https://nodei.co/npm/@mastashake08/ocrtts.png)](https://nodei.co/npm/ocrtts/)

[![NPM version](https://img.shields.io/npm/v/@mastashake08/ocrtts.svg)](https://www.npmjs.com/package/ocrtts)

## Installation

```sh
npm install @mastashake08/ocrtts
```

## Usage

```javascript
import { OcrTTS } from '@mastashake08/ocrtts'

const ocrtts = new OcrTTS()

ocrtts.readText(image) //image can come from stream or uploaded file , etc

```

## Support

- [Patreon](https://patreon.com/mastashake08)

## License

[MIT](https://github.com/mastashake08/ocrtts/blob/master/LICENSE)

# API Reference

## Classes


OcrTTS


## Functions



readText(image)VoidFunction


## OcrTTS
**Kind**: global class

## readText(image) ⇒ VoidFunction
**Kind**: global function

| Param | Type | Description |
| --- | --- | --- |
| image | Blob \| ImageData \| HTMLElement | ImageSource to perform OCR on. |