Setup Google Speech-to-Text API

(in main.py)

26  # Instantiates a client
27  # [START migration_client]
28  client = speech.SpeechClient()
29  # [END migration_client]
30  
31  config = types.RecognitionConfig(
32      encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
33      sample_rate_hertz=16000,
34      language_code='cmn-Hant-TW')

Setup System Environment

Create Client and Configuration

Recognize

Response and its format

results matching ""

    No results matching ""