Derives a BCP-47 language hint from a GCP voice name for listVoices / synthesize.
listVoices
Voice resource name such as es-US-Neural2-A or cmn-CN-Wavenet-A.
es-US-Neural2-A
cmn-CN-Wavenet-A
Language code hint, or undefined when the name is too short to parse.
Derives a BCP-47 language hint from a GCP voice name for
listVoices/ synthesize.