[EN] Speech to Text & Text to Speech

This article is an example of python implementation to call a speech-to-text service, then send a message to Google’s text-to-speech service to generate and return an mp3 audio file, and finally, use pygame to play the speech out of the speaker. It runs on the Windows operating system.

[TH] Speech to Text & Text to Speech

บทความนี้เป็นตัวอย่างการประยุกต์ใช้ภาษาไพธอนเพื่อเรียกใช้บริการการแปลงเสียงพูดเป็นข้อความหลังจากนั้นส่งข้อความไปให้บริการแปลงข้อความเป็นเสียงของ Google สร้างไฟเสียง mp3 กลับมา สุดท้ายใช้ pygame เล่นเสียงพูดออกทางลำโพง โดยทำงานบนระบบปฏิบัติการ Windows