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:
https://cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages
User | Count |
---|---|
12 | |
3 | |
1 | |
1 | |
1 |