2 * Copyright (c) 2010-2024 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.pollytts.internal;
15 import java.util.Locale;
17 import org.openhab.core.voice.Voice;
20 * Implementation of the Voice interface for PollyTTS.
22 * @author Robert Hillman - Initial contribution
24 public class PollyTTSVoice implements Voice {
29 private final Locale locale;
34 private final String label;
37 * Constructs a PollyTTS Voice for the passed data
40 * The Locale of the voice
42 * The label of the voice
44 public PollyTTSVoice(Locale locale, String label) {
50 * Globally unique identifier of the voice.
52 * @return A String uniquely identifying the voice globally
55 public String getUID() {
56 return "pollytts:" + label;
60 * The voice label, used for GUI's or VUI's
62 * @return The voice label, may not be globally unique
65 public String getLabel() {
73 public Locale getLocale() {