How to use Cloud Speech-to-Text with cURL
ใช้ REST interface and cURL command
ต้องมี GCP project ก่อน
ตั้งชื่อ – API service
set Authentification , click credential
ได้ private key – json
ใช้ terminal and set environment , path ของ json file
ถ้ายังไม่มี sdk google ให้หามา install
config ใน json , endocing – FLAC , sample rate hertz
และ audio เก็บไว้ใน url google cloud bucket
ใช้ cURL เพื่อดึง speech.googleapi.com
command นี้ specified กับ sync-request.json
