2019. 12. 4. 13:13ㆍ실천해본것들
안드로이드에서 오디오 파일을 음성인식해서 텍스트로 출력하는 기능을 만들고 싶다.
하지만 많은 예제들은 음성을 실시간으로 짧게 인식한다.
https://dsnight.tistory.com/15
[안드로이드] Activity전환 없이 구글 음성인식(STT) 사용하기
안드로이드에서 음성인식 기능을 구현하기 위해서는 구글의 Speech-To-Text(이하 STT)기능을 사용하면 됩니다. SST기능을 사용하는 방법은 2가지가 있습니다. 구글에서 지원하는 UI를 사용하거나, 나만의 커스텀 U..
dsnight.tistory.com
안드로이드 구글 음성API[SpeechRecognizer tutorial]
구글 음성 API 흔히 적혀있는 SPEECH TO TEXT에 대한 Tutorial 파일입니다. Gradle에 다른 특별한 셋팅은 없네요. 필요한 권한은 인터넷과 오디오 부분입니다. kwon8999.tistory.com
https://medium.com/wasd/creating-an-android-google-stt-application-4cea24ee97af
Creating an Android Google STT application
STT(Speech to Text)로 음성인식 어플을 만들기
medium.com
이런 예제도 있다.
나는 여러 문장들로 이루어져 있으면서 문장간 호흡이 긴 음성을 글자로 만드는 것을 생각하고 있는데, 음성인식은 한 호흡만을 바로 문장으로 만들고 기능을 종료하는 것 같았다. 공짜기능을 쓰기 때문에 그런것 같다.
https://blog.naver.com/skelentom/10167064677
[안드로이드]SpeechRecognizer 클래스
음성 인식은 마이크로 들리는 소리를 바탕으로 단어를 만들어 인터넷 검색 등에 사용할 수 있도록 기술입니...
blog.naver.com
근데 여기선 speech recognizer를 이용해 값을 여러번 받고 그것을 나중에 합치는 사람이 있는것 같았다. asynctask를 통해 한다고 했다.
https://stackoverflow.com/questions/6989981/speech-to-text-from-own-sound-file
Speech to Text from own sound file
As you probably know, implementing speech-to-text is pretty easy with the Android API. All you have to do is just call up the API's intent and it will return text for you. My case is a bit differen...
stackoverflow.com
http://blog.naver.com/PostView.nhn?blogId=skelentom&logNo=10167054858
SpeechRecognizer를 이용한 음성인식 프로젝트 파일
음성인식 기능은 안드로이드에서 기본적으로 제공되는 시스템 서비스를 이용할 수 있습니다. 가장 간단한 ...
blog.naver.com
이것은 여러 결과물을 보여주는 예제다. 한 문장을 음성인식 해서 가능한 결과물들을 여러개 출력하는 것.
Configuring the length of utterance and pauses in Android's speech recognizer
I have android's Speech To Text API to speak something to the phone and convert it into text. By default, if one stops speaking to the microphone, the API assumes that the user is done talking and
stackoverflow.com
여기서 내가 고민하는 문장간 호흡이 길때 어떻게 해야하는지에 대해서 방법을 2가지 제시 했다.
1. 음성인식이 끝날때 다시 음성인식을 시작하는것.
2. 연속 음성인식 라이브러리를 사용하는것
https://stackoverflow.com/questions/30281651/continuous-speech-recognition-android-without-gaps
Continuous Speech Recognition Android - Without Gaps
I have an activity that implements RecognitionListener. To make it continuous, every time onEndOfSpeech() I start the listener again: speech.startListening(recognizerIntent); But, it takes some t...
stackoverflow.com
2번의 연속 음성인식 라이브러리는 CMU sphinx다
https://sourceforge.net/projects/cmusphinx/
아쉬운것은 한국어를 직접적으로 지원하지 않는다는거. language model을 직접 만들어야 하는데, 시간이 없다.
https://github.com/sachinvarma/Speech-Recognizer
sachinvarma/Speech-Recognizer
This is a sample project which is having a continuous speech recognizer which will work as a background service. - sachinvarma/Speech-Recognizer
github.com
요게 있었다. 이사람 것은 continuous speech recognition을 speech recognizer로 구현한 것
다만 26 이전 버전이라서 26 이상 상위버전의 앱에서는 service의 background 실행제한이 걸린다.
https://www.youtube.com/watch?v=FbpD5RZtbCc
forground 실행하기 위해서 notification 설정을 해주고....
https://www.sitepoint.com/a-step-by-step-guide-to-building-an-android-audio-player-app/
A Step by Step Guide to Building an Android Audio Player App — SitePoint
Valdio Veliu presents an in-depth and step by step guide to building your very own Android audio player app.
www.sitepoint.com
manifest에도 service 등록을 해준다.
나는 manifest등록 안해준 것을 깜박해서 개 고생했다.
검색어
android voice recognition
speechrecognizer stt
continuous speech recognition android
continuous speech recognition speechrecognizer
'실천해본것들' 카테고리의 다른 글
install PyQt designer (0) | 2020.07.24 |
---|---|
GCP - Kubernetes 예시 사용해보기(GKE) (0) | 2020.07.17 |
(legacy-170720) Google Speech API quick start (0) | 2020.07.14 |
안드로이드 진동 감지, 가속도계, 진동 발생 (0) | 2020.03.08 |
리사이클러 뷰에 크롤링한 결과 표시하기 (0) | 2019.12.09 |