Skip to content

Latest commit

 

History

History
61 lines (44 loc) ยท 1.23 KB

README.md

File metadata and controls

61 lines (44 loc) ยท 1.23 KB

stt.js

Speech To Text Javascript Library

Install

npm install stt.js

LiveDemo

https://play.codejs.co.kr/stt.js

Browser support

  • Chrome >= 33
  • Edge >= 82

https://caniuse.com/mdn-api_speechrecognitionevent

Quick Start

Please first prepare your microphone

import STT from 'stt.js';

const stt = new STT({
  continuous: true,
  interimResults: true,
});

stt.on('start', () => {
  // handle start event
});

stt.on('end', () => {
  // handle end event
});

stt.on('result', ({ finalTranscript, interimTranscript }) => {
  console.log('result :>> ', finalTranscript, interimTranscript);
  // handle recognition result
});

stt.on('error', (error) => {
  console.log('error :>> ', error);
  // no-speech|audio-capture|not-allowed|not-supported-browser
});

stt.start();
// stt.end();

์ธ์‹๋ฅ  ์ธก์ •

๋งฅ๋ถ ๋‚ด์žฅ ๋งˆ์ดํฌ ๋Œ€๋žต์ ์ธ ๊ฑฐ๋ฆฌ๋ณ„ ์ธ์‹ ํ…Œ์ŠคํŠธ (4 ~ 6์ธ ์†ŒํšŒ์˜์‹ค)
์กฐ์šฉํ•œ ํ™˜๊ฒฝ์—์„œ ๋ณดํ†ต์˜ ๋ชฉ์†Œ๋ฆฌ ํฌ๊ธฐ๋กœ ๊ธ€์„ ์ฝ์–ด๋ณธ ๊ฒฐ๊ณผ.
- 1m ์ด๋‚ด, ์ธ์‹๋ฅ  90% ์ด์ƒ
- 1.2m ์ด๋‚ด, ์ธ์‹๋ฅ  ์•ฝ 60 ~ 70%
- 1.5m ์ดˆ๊ณผ, ์ธ์‹๋ฅ  ์•ฝ 10% ๋Œ€๋กœ ๋ฌธ์ž ์ธ์‹ ์–ด๋ ค์›€

โ€ป ์ด์–ดํฐ ๋งˆ์ดํฌ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋” ๋‚˜์€ ์ธ์‹๋ฅ ์„ ๋ณด์ธ๋‹ค.