2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.voice.googletts.internal.dto;
15 import java.util.List;
18 * Description of a voice supported by the TTS service.
20 * @author Wouter Born - Initial contribution
25 * The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").
27 private List<String> languageCodes;
30 * The name of this voice. Each distinct voice has a unique name.
35 * The natural sample rate (in hertz) for this voice.
37 private Long naturalSampleRateHertz;
40 * The gender of this voice.
42 private SsmlVoiceGender ssmlGender;
44 public List<String> getLanguageCodes() {
48 public void setLanguageCodes(List<String> languageCodes) {
49 this.languageCodes = languageCodes;
52 public String getName() {
56 public void setName(String name) {
60 public Long getNaturalSampleRateHertz() {
61 return naturalSampleRateHertz;
64 public void setNaturalSampleRateHertz(Long naturalSampleRateHertz) {
65 this.naturalSampleRateHertz = naturalSampleRateHertz;
68 public SsmlVoiceGender getSsmlGender() {
72 public void setSsmlGender(SsmlVoiceGender ssmlGender) {
73 this.ssmlGender = ssmlGender;