공부일지/etc
google cloud speech-to-text 사용하기
EUJU
2020. 7. 26. 14:17
https://webnautes.tistory.com/1247
http://hleecaster.com/google-cloud-speech-to-text-api/
두 티스토리를 참고하여 진행.
Google colab을 이용하여 진행.
유의할 사항
1. 코랩에서 google-cloud-speech 설치
!pip install google-cloud-speech
2. 코랩에서 환경변수 설정
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = '/content/drive/My Drive/My First Project-8084512d8249.json'
3. timestamp저장하고 싶을 때
config에서 "enable_word_time_offsets": True로 설정해줘야 함
https://cloud.google.com/speech-to-text/docs/async-time-offsets?hl=ko
https://ebbnflow.tistory.com/153