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;
16 * Synthesizes speech synchronously: receive results after all text input has been processed.
18 * @author Wouter Born - Initial contribution
20 public class SynthesizeSpeechRequest {
23 * Required. The configuration of the synthesized audio.
25 private AudioConfig audioConfig = new AudioConfig();
28 * Required. The Synthesizer requires either plain text or SSML as input.
30 private SynthesisInput input = new SynthesisInput();
33 * Required. The desired voice of the synthesized audio.
35 private VoiceSelectionParams voice = new VoiceSelectionParams();
37 public SynthesizeSpeechRequest() {
40 public SynthesizeSpeechRequest(AudioConfig audioConfig, SynthesisInput input, VoiceSelectionParams voice) {
41 this.audioConfig = audioConfig;
46 public AudioConfig getAudioConfig() {
50 public SynthesisInput getInput() {
54 public VoiceSelectionParams getVoice() {
58 public void setAudioConfig(AudioConfig audioConfig) {
59 this.audioConfig = audioConfig;
62 public void setInput(SynthesisInput input) {
66 public void setVoice(VoiceSelectionParams voice) {