Speech To Text Javascript Library
npm install stt.js
https://play.codejs.co.kr/stt.js
- Chrome >= 33
- Edge >= 82
https://caniuse.com/mdn-api_speechrecognitionevent
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% ๋๋ก ๋ฌธ์ ์ธ์ ์ด๋ ค์
โป ์ด์ดํฐ ๋ง์ดํฌ๋ฅผ ์ฌ์ฉํ๋ฉด ๋ ๋์ ์ธ์๋ฅ ์ ๋ณด์ธ๋ค.