]> git.basschouten.com Git - openhab-addons.git/blob
2cfece4db80804b23e554cddd3895c6c85d5e69d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.voice.googletts.internal.dto;
14
15 import java.util.List;
16
17 /**
18  * Description of a voice supported by the TTS service.
19  *
20  * @author Wouter Born - Initial contribution
21  */
22 public class Voice {
23
24     /**
25      * The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").
26      */
27     private List<String> languageCodes;
28
29     /**
30      * The name of this voice. Each distinct voice has a unique name.
31      */
32     private String name;
33
34     /**
35      * The natural sample rate (in hertz) for this voice.
36      */
37     private Long naturalSampleRateHertz;
38
39     /**
40      * The gender of this voice.
41      */
42     private SsmlVoiceGender ssmlGender;
43
44     public List<String> getLanguageCodes() {
45         return languageCodes;
46     }
47
48     public void setLanguageCodes(List<String> languageCodes) {
49         this.languageCodes = languageCodes;
50     }
51
52     public String getName() {
53         return name;
54     }
55
56     public void setName(String name) {
57         this.name = name;
58     }
59
60     public Long getNaturalSampleRateHertz() {
61         return naturalSampleRateHertz;
62     }
63
64     public void setNaturalSampleRateHertz(Long naturalSampleRateHertz) {
65         this.naturalSampleRateHertz = naturalSampleRateHertz;
66     }
67
68     public SsmlVoiceGender getSsmlGender() {
69         return ssmlGender;
70     }
71
72     public void setSsmlGender(SsmlVoiceGender ssmlGender) {
73         this.ssmlGender = ssmlGender;
74     }
75 }