목록라즈베리파이(Raspberry Pi)/Google STT, TTS를 활용한 LED 제어 (1)
JW's

먼저 Google STT / TTS를 사용하기위해 Google Cloud에서 계정을 만들고 API 설정해줍니다. import argparse from gpiozero import LED from time import sleep import os # 18번 LED이용 led = LED(18) # STT (Speech To Text를 위한 코드) def transcribe_file(speech_file): """Transcribe the given audio file.""" from google.cloud import speech import io client = speech.SpeechClient() # [START speech_python_migration_sync_request] # [START spe..
라즈베리파이(Raspberry Pi)/Google STT, TTS를 활용한 LED 제어
2022. 7. 3. 23:25