Chinese support (zh-CN) in Google STT V1 "latest_short" model in python doesn't work

Using the python API,
this code:

# google-cloud-speech==2.26.0
from google.cloud import speech_v1p1beta1 as speech

with
io.open(audio_file_path, "rb") as audio_file:
content = audio_file.read()

audio = speech.RecognitionAudio(content=content)

config = speech.RecognitionConfig(
language_code="zh-CN",
model="latest_short"
)

response = google_stt_client.recognize(config=config, audio=audio)

raises the error:

google.api_core.exceptions.InvalidArgument: 400 Invalid recognition 'config': The requested model is currently not supported for language : zh-CN.

And it does so for every variant of the Chinese language code I tried.
Even though the documentation states that Chinese is supposed to be supported:

soundsright_0-1714043898217.png 

https://cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages

0 0 55
0 REPLIES 0