Web Speech API

Wonjun Hwang
Wonjun HwangCEO @Kit Works Inc. à Kit Works inc.
Web Speech API
Web Speech API의 두가지 기능
음성 인식 (speech recognition)
음성 합성 (speech synthesis === TTS)
음성 인식 (speech recognition)
디바이스의 마이크로 들어오는 음성을
텍스트 문자열로 반환해준다.
SpeechRecognition 외 관련된 인터페이스
음성 합성 (speech synthesis ===
TTS)
텍스트를 받으면
디바이스의 스피커를 통해 플레이 된다.
SpeechSynthesis 외 관련된 인터페이스
react-speech-recognition
react-speech-kit
Web Speech API 기반의
음성인식과 음성합성을 사용할 수 있는
리액트 훅
Output state
transcript,
resetTranscript,
listening,
browserSupportsSpeech
Recognition,
isMicrophoneAvailable,
react-speech-recognition
transcript (string): 마이크로 들어오는 모든 말
resetTranscript (function) : transcript를 빈 문자열로 세팅
listening (bool) : web speech api가 듣고 있으면 true
browserSupportsSpeechRecognition (bool) :
브라우저가 web speech api를 서포트 하는지 여부
isMicrophoneAvailable (bool) : 마이크 권한 여부
SpeechRecognition
function
startListening,
stopListening
startListening (async) : 듣기 시작
옵션
continuous (bool) : 유저가 말을 멈출 때 계속 들을 지 말지 여부
langauge (string) : 언어 (en-US, ko)
SpeechRecognition function
stopListening (async) : 듣기 멈춤
SpeechRecognition function
react-speech-kit
인자
speak (function)
voices (arr)
react-speech-kit
활용 예시
출처
https://developer.mozilla.org/en-
US/docs/Web/API/Web_Speech_API
https://github.com/MikeyParton/react-speech-kit
https://github.com/JamesBrill/react-speech-recognition
https://platform.openai.com/docs/libraries/node-js-library
감사합니다!
1 sur 14

Recommandé

상속과 구현 par
상속과 구현상속과 구현
상속과 구현Wonjun Hwang
0 vue77 diapositives
오버라이딩 조금 더 알아보기 par
오버라이딩 조금 더 알아보기오버라이딩 조금 더 알아보기
오버라이딩 조금 더 알아보기Wonjun Hwang
0 vue22 diapositives
컴포넌트 설계 par
컴포넌트 설계컴포넌트 설계
컴포넌트 설계Wonjun Hwang
14 vues21 diapositives
성능 테스트 par
성능 테스트성능 테스트
성능 테스트Wonjun Hwang
13 vues13 diapositives
WebRTC par
WebRTCWebRTC
WebRTCWonjun Hwang
22 vues18 diapositives
Flutter & Firebase par
Flutter & FirebaseFlutter & Firebase
Flutter & FirebaseWonjun Hwang
18 vues16 diapositives

Contenu connexe

Plus de Wonjun Hwang

이미지 최적화 par
이미지 최적화이미지 최적화
이미지 최적화Wonjun Hwang
24 vues39 diapositives
프론트엔드 비동기 프로그래밍 par
프론트엔드 비동기 프로그래밍프론트엔드 비동기 프로그래밍
프론트엔드 비동기 프로그래밍Wonjun Hwang
28 vues15 diapositives
트렌디 앱 - ARC & OBSIDIAN par
트렌디 앱 - ARC & OBSIDIAN트렌디 앱 - ARC & OBSIDIAN
트렌디 앱 - ARC & OBSIDIANWonjun Hwang
29 vues21 diapositives
Floating Point par
Floating PointFloating Point
Floating PointWonjun Hwang
29 vues38 diapositives
차이나는 개발자 클라스 par
차이나는 개발자 클라스차이나는 개발자 클라스
차이나는 개발자 클라스Wonjun Hwang
6 vues25 diapositives
차이나는 개발자 클라스 par
차이나는 개발자 클라스차이나는 개발자 클라스
차이나는 개발자 클라스Wonjun Hwang
37 vues25 diapositives

Plus de Wonjun Hwang(20)

프론트엔드 비동기 프로그래밍 par Wonjun Hwang
프론트엔드 비동기 프로그래밍프론트엔드 비동기 프로그래밍
프론트엔드 비동기 프로그래밍
Wonjun Hwang28 vues
트렌디 앱 - ARC & OBSIDIAN par Wonjun Hwang
트렌디 앱 - ARC & OBSIDIAN트렌디 앱 - ARC & OBSIDIAN
트렌디 앱 - ARC & OBSIDIAN
Wonjun Hwang29 vues
차이나는 개발자 클라스 par Wonjun Hwang
차이나는 개발자 클라스차이나는 개발자 클라스
차이나는 개발자 클라스
Wonjun Hwang6 vues
차이나는 개발자 클라스 par Wonjun Hwang
차이나는 개발자 클라스차이나는 개발자 클라스
차이나는 개발자 클라스
Wonjun Hwang37 vues
잘못된 상속은 객체지향을 해친다 par Wonjun Hwang
잘못된 상속은 객체지향을 해친다잘못된 상속은 객체지향을 해친다
잘못된 상속은 객체지향을 해친다
Wonjun Hwang49 vues
2023 Baseline된 새로운 Web 기능 par Wonjun Hwang
2023 Baseline된 새로운 Web 기능2023 Baseline된 새로운 Web 기능
2023 Baseline된 새로운 Web 기능
Wonjun Hwang33 vues

Web Speech API