🧤Speech to Text with Google API
Requirement
Get Started
เข้าไปที่หน้าเว็บ https://cloud.google.com/speech-to-text/docs/quickstart-gcloud แล้วคลิก Set up a project

ทำการ Create project คลิก Next แล้วคลิก Download private key a JSON

ทำการติดตั้ง Google Cloud SDK แล้วกำหนดค่า Environment Variable
ทำการรัน Google Speech to Text API โดยขึ้นอยู่กับ Audio Encoding ที่ Support
ทำการรัน Google Speech to Text API โดยทำการ Upload ไฟล์ไปไว้ใน Google Cloud Storage ของตัวเอง เมื่อรันคำสั่งจะ Return ค่า Operation ID กรณีที่ไฟล์มีความยาวเกิน 1 นาทีให้ใช้คำสั่ง recognize-long-running
ทำการแสดง Metadata ของ Operation ID
ทำการแสดง Result ของ Operation ID
อ่านเพิ่มเติม : https://bit.ly/312fabR
Last updated
Was this helpful?