func listChirpHDVoices()

in experiments/babel/main.go [308:336]


func listChirpHDVoices() ([]*texttospeechpb.Voice, error) {
	voices := []*texttospeechpb.Voice{}
	ctx := context.Background()

	client, err := texttospeech.NewClient(ctx)
	if err != nil {
		return voices, err
	}

	resp, err := client.ListVoices(ctx, &texttospeechpb.ListVoicesRequest{})
	if err != nil {
		return voices, err
	}

	for _, voice := range resp.Voices {
		/*
			if strings.Contains(voice.Name, "Chirp-HD") {
				voices = append(voices, voice)
			}
		*/

		if strings.Contains(voice.Name, "Chirp3-HD") {
			voices = append(voices, voice)
		}

	}

	return voices, nil
}